running the makefile i got the error message .....

This is a discussion on running the makefile i got the error message ..... within the Linux Security forums, part of the System Security and Security Related category; i run in REDHAT 9.0, mysql5.0.27, php5, how to tackle the error [root@localhost unix]# make -f ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2007
yogesh
 
Posts: n/a
Default running the makefile i got the error message .....

i run in REDHAT 9.0, mysql5.0.27, php5,

how to tackle the error

[root@localhost unix]# make -f Makefile_adm
g++ -o adm.cgi -O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL4
-DNOTHREAD -DCASINO_TWIST -L/usr/local/lib/mysql -L/usr/local/lib
-lmysqlclient ../src/adm/mCgiMain.o ../src/adm/mSSIService.o
.../src/adm/mMain.o
/usr/bin/ld: warning: libm.so.2, needed by
/usr/local/lib/mysql/libmysqlclient.so, not found (try using -rpath or
-rpath-link)
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__stdoutp'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__inet_addr'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__stderrp'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`h_errno'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__error'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__inet_ntoa'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__isthreaded'
/usr/local/lib/mysql/libmysqlclient.so: undefined reference to
`__swbuf'
collect2: ld returned 1 exit status
make: *** [index] Error 1


please help me

Reply With Quote
  #2 (permalink)  
Old 01-05-2007
Phil Sherman
 
Posts: n/a
Default Re: running the makefile i got the error message .....

It looks like libm.so.2 wasn't found. It's needed by libmysqlclient.

Try doing a "whereis libm.so" and then "ls -l ....." to trace the links
to the file you have installed. You may need to install an older version
RPM to get the specific module that's needed.

Phil Sherman


yogesh wrote:
> i run in REDHAT 9.0, mysql5.0.27, php5,
>
> how to tackle the error
>
> [root@localhost unix]# make -f Makefile_adm
> g++ -o adm.cgi -O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL4
> -DNOTHREAD -DCASINO_TWIST -L/usr/local/lib/mysql -L/usr/local/lib
> -lmysqlclient ../src/adm/mCgiMain.o ../src/adm/mSSIService.o
> ../src/adm/mMain.o
> /usr/bin/ld: warning: libm.so.2, needed by
> /usr/local/lib/mysql/libmysqlclient.so, not found (try using -rpath or
> -rpath-link)
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__stdoutp'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__inet_addr'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__stderrp'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `h_errno'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__error'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__inet_ntoa'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__isthreaded'
> /usr/local/lib/mysql/libmysqlclient.so: undefined reference to
> `__swbuf'
> collect2: ld returned 1 exit status
> make: *** [index] Error 1
>
>
> please help me
>

Reply With Quote
  #3 (permalink)  
Old 01-06-2007
yogesh
 
Posts: n/a
Default Re: running the makefile i got the error message .....

its allreadu is there in the path
/usr/lib/libVFlib.so.2
#locate libmysqlclient.so
/usr/local/lib/mysql/libmysqlclient.so.14
/usr/local/lib/mysql/libmysqlclient.so

all the file in the system , but the error occurs , if we need to
install the lower version , but higher version is allready is installed
.....
if we install the lower version any problem occurs .......

can u tell , how to uninstall the mysql5.0.27 ... and install the
mysql4.1.7

Reply With Quote
  #4 (permalink)  
Old 01-07-2007
Phil Sherman
 
Posts: n/a
Default Re: running the makefile i got the error message .....

I don't see any location for libm.so.2, the "missing" module. Make
scripts sometimes call for a specific level of a piece of software and
will not accept a higher level. Usually, when this occurs, you can
install both the old and the new versions of the module because they
have different file names.

Try the command "man rpm" to find out how to use the RPM package
manager. The "erase" option will remove installed software.

I'd also look at the -rpath and -rpath-link options of your g++ command
that failed. You may be able to use one of them to locate the missing
libm.so.2. A google search on that module's name will give you
additional information.

libm.so is part of the glibc standard shared libraries. You should have
some version of it installed but probably not at the appropriate level.
Make sure the directory path to libm.so is part of the environment
variable LD_LIBRARY_PATH. If you have libm.so.6 available but not
libm.so.2, you can try navigating to the directory containing the file
and issuing the command (using root):
ln -s libm.so.6 libm.so.2
This will use the .6 library for the .2 library. This assumes that any
functions called in the library take the same arguments and yield the
same result types. issue the command "ls -l libm.so.*" to see more about
the files than the "ls" command gives.

Phil Sherman


yogesh wrote:
> its allreadu is there in the path
> /usr/lib/libVFlib.so.2
> #locate libmysqlclient.so
> /usr/local/lib/mysql/libmysqlclient.so.14
> /usr/local/lib/mysql/libmysqlclient.so
>
> all the file in the system , but the error occurs , if we need to
> install the lower version , but higher version is allready is installed
> ....
> if we install the lower version any problem occurs .......
>
> can u tell , how to uninstall the mysql5.0.27 ... and install the
> mysql4.1.7
>

Reply With Quote
  #5 (permalink)  
Old 01-08-2007
yogesh
 
Posts: n/a
Default Re: running the makefile i got the error message .....


thx , the error gone ... but a new lot of error produce do to this
........

what can i do ...

[root@localhost unix]# make -f Makefile_adm
g++ -o adm.cgi -O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL5
-DNOTHREAD -DCASINO_TWIST -L/usr/lib/mysql -L/usr/local/lib
-lmysqlclient../src/adm/mSSIService.o ../src/adm/mMain.o

.../lib/sql/mMySQL.o(.text+0x1ed): In function
`m_classes::TMySqlConnect::getErrorMsg()':
.../lib/sql/mMySQL.cpp:138: undefined reference to `mysql_error'
.../lib/sql/mMySQL.o(.text+0x22b): In function
`m_classes::TMySqlConnect::connect()':
.../lib/sql/mMySQL.cpp:144: undefined reference to `mysql_init'
.../lib/sql/mMySQL.o(.text+0x28e):../lib/sql/mMySQL.cpp:156: undefined
reference to `mysql_real_connect'
.../lib/sql/mMySQL.o(.text+0x2a6):../lib/sql/mMySQL.cpp:165: undefined
reference to `mysql_error'
.../lib/sql/mMySQL.o(.text+0x335): In function
`m_classes::TMySqlConnect::disconnect()':
.../lib/sql/mMySQL.cpp:173: undefined reference to `mysql_close'
.../lib/sql/mMySQL.o(.text+0x3fe): In function
`m_classes::TMySqlQuery::~TMySqlQuery [not-in-charge]()':
.../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x452): In function
`m_classes::TMySqlQuery::~TMySqlQuery [in-charge]()':
.../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x4a6): In function
`m_classes::TMySqlQuery::~TMySqlQuery [in-charge deleting]()':
.../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x4f1): In function
`m_classes::TMySqlQuery::close()':
.../lib/sql/mMySQL.cpp:196: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x554): In function
`m_classes::TMySqlQuery::exec()':
.../lib/sql/mMySQL.cpp:207: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x60f):../lib/sql/mMySQL.cpp:217: undefined
reference to `mysql_query'
.../lib/sql/mMySQL.o(.text+0x621):../lib/sql/mMySQL.cpp:218: undefined
reference to `mysql_affected_rows'
.../lib/sql/mMySQL.o(.text+0x770): In function
`m_classes::TMySqlQuery::open()':
.../lib/sql/mMySQL.cpp:232: undefined reference to `mysql_free_result'
.../lib/sql/mMySQL.o(.text+0x7a5):../lib/sql/mMySQL.cpp:238: undefined
reference to `mysql_query'
.../lib/sql/mMySQL.o(.text+0x7c7):../lib/sql/mMySQL.cpp:240: undefined
reference to `mysql_store_result'
.../lib/sql/mMySQL.o(.text+0x7dd):../lib/sql/mMySQL.cpp:242: undefined
reference to `mysql_use_result'
.../lib/sql/mMySQL.o(.text+0x801):../lib/sql/mMySQL.cpp:244: undefined
reference to `mysql_fetch_row'
.../lib/sql/mMySQL.o(.text+0x815):../lib/sql/mMySQL.cpp:245: undefined
reference to `mysql_num_fields'
.../lib/sql/mMySQL.o(.text+0xa37): In function
`m_classes::TMySqlQuery::recordCount()':
.../lib/sql/mMySQL.cpp:260: undefined reference to `mysql_num_rows'
.../lib/sql/mMySQL.o(.text+0xac7): In function
`m_classes::TMySqlQuery::fieldCount()':
.../lib/sql/mMySQL.cpp:267: undefined reference to `mysql_num_fields'
.../lib/sql/mMySQL.o(.text+0xb5a): In function
`m_classes::TMySqlQuery::fieldName(int)':
.../lib/sql/mMySQL.cpp:275: undefined reference to `mysql_field_seek'
.../lib/sql/mMySQL.o(.text+0xb6b):../lib/sql/mMySQL.cpp:276: undefined
reference to `mysql_fetch_field'
.../lib/sql/mMySQL.o(.text+0xc74): In function
`m_classes::TMySqlQuery::fieldSize(int)':
.../lib/sql/mMySQL.cpp:287: undefined reference to `mysql_field_seek'
.../lib/sql/mMySQL.o(.text+0xc85):../lib/sql/mMySQL.cpp:288: undefined
reference to `mysql_fetch_field'
.../lib/sql/mMySQL.o(.text+0xf3a): In function
`m_classes::TMySqlQuery::next()':
.../lib/sql/mMySQL.cpp:319: undefined reference to `mysql_fetch_row'

.../src/adm/mCommon.cpp:153: undefined reference to
`mysql_escape_string'
collect2: ld returned 1 exit status
make: *** [index] Error 1
[root@localhost unix]#


can u tell me what are the changes should be done

Reply With Quote
  #6 (permalink)  
Old 01-08-2007
Phil Sherman
 
Posts: n/a
Default Re: running the makefile i got the error message .....

Try taking this to a c++ programming group. You are having difficulties
with the compile/link process and this is really the wrong discussion
group for this thread.

You should also check among prople you know to see if anyone is or knows
an experienced c++ programmer that can spend some time explaining the
process to you.

Phil Sherman


yogesh wrote:
> thx , the error gone ... but a new lot of error produce do to this
> .......
>
> what can i do ...
>
> [root@localhost unix]# make -f Makefile_adm
> g++ -o adm.cgi -O0 -g -pthread -DCASINO_TWIST -DTARGET_UNIX -DMYSQL5
> -DNOTHREAD -DCASINO_TWIST -L/usr/lib/mysql -L/usr/local/lib
> -lmysqlclient../src/adm/mSSIService.o ../src/adm/mMain.o
>
> ../lib/sql/mMySQL.o(.text+0x1ed): In function
> `m_classes::TMySqlConnect::getErrorMsg()':
> ../lib/sql/mMySQL.cpp:138: undefined reference to `mysql_error'
> ../lib/sql/mMySQL.o(.text+0x22b): In function
> `m_classes::TMySqlConnect::connect()':
> ../lib/sql/mMySQL.cpp:144: undefined reference to `mysql_init'
> ../lib/sql/mMySQL.o(.text+0x28e):../lib/sql/mMySQL.cpp:156: undefined
> reference to `mysql_real_connect'
> ../lib/sql/mMySQL.o(.text+0x2a6):../lib/sql/mMySQL.cpp:165: undefined
> reference to `mysql_error'
> ../lib/sql/mMySQL.o(.text+0x335): In function
> `m_classes::TMySqlConnect::disconnect()':
> ../lib/sql/mMySQL.cpp:173: undefined reference to `mysql_close'
> ../lib/sql/mMySQL.o(.text+0x3fe): In function
> `m_classes::TMySqlQuery::~TMySqlQuery [not-in-charge]()':
> ../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x452): In function
> `m_classes::TMySqlQuery::~TMySqlQuery [in-charge]()':
> ../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x4a6): In function
> `m_classes::TMySqlQuery::~TMySqlQuery [in-charge deleting]()':
> ../lib/sql/mMySQL.cpp:190: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x4f1): In function
> `m_classes::TMySqlQuery::close()':
> ../lib/sql/mMySQL.cpp:196: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x554): In function
> `m_classes::TMySqlQuery::exec()':
> ../lib/sql/mMySQL.cpp:207: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x60f):../lib/sql/mMySQL.cpp:217: undefined
> reference to `mysql_query'
> ../lib/sql/mMySQL.o(.text+0x621):../lib/sql/mMySQL.cpp:218: undefined
> reference to `mysql_affected_rows'
> ../lib/sql/mMySQL.o(.text+0x770): In function
> `m_classes::TMySqlQuery::open()':
> ../lib/sql/mMySQL.cpp:232: undefined reference to `mysql_free_result'
> ../lib/sql/mMySQL.o(.text+0x7a5):../lib/sql/mMySQL.cpp:238: undefined
> reference to `mysql_query'
> ../lib/sql/mMySQL.o(.text+0x7c7):../lib/sql/mMySQL.cpp:240: undefined
> reference to `mysql_store_result'
> ../lib/sql/mMySQL.o(.text+0x7dd):../lib/sql/mMySQL.cpp:242: undefined
> reference to `mysql_use_result'
> ../lib/sql/mMySQL.o(.text+0x801):../lib/sql/mMySQL.cpp:244: undefined
> reference to `mysql_fetch_row'
> ../lib/sql/mMySQL.o(.text+0x815):../lib/sql/mMySQL.cpp:245: undefined
> reference to `mysql_num_fields'
> ../lib/sql/mMySQL.o(.text+0xa37): In function
> `m_classes::TMySqlQuery::recordCount()':
> ../lib/sql/mMySQL.cpp:260: undefined reference to `mysql_num_rows'
> ../lib/sql/mMySQL.o(.text+0xac7): In function
> `m_classes::TMySqlQuery::fieldCount()':
> ../lib/sql/mMySQL.cpp:267: undefined reference to `mysql_num_fields'
> ../lib/sql/mMySQL.o(.text+0xb5a): In function
> `m_classes::TMySqlQuery::fieldName(int)':
> ../lib/sql/mMySQL.cpp:275: undefined reference to `mysql_field_seek'
> ../lib/sql/mMySQL.o(.text+0xb6b):../lib/sql/mMySQL.cpp:276: undefined
> reference to `mysql_fetch_field'
> ../lib/sql/mMySQL.o(.text+0xc74): In function
> `m_classes::TMySqlQuery::fieldSize(int)':
> ../lib/sql/mMySQL.cpp:287: undefined reference to `mysql_field_seek'
> ../lib/sql/mMySQL.o(.text+0xc85):../lib/sql/mMySQL.cpp:288: undefined
> reference to `mysql_fetch_field'
> ../lib/sql/mMySQL.o(.text+0xf3a): In function
> `m_classes::TMySqlQuery::next()':
> ../lib/sql/mMySQL.cpp:319: undefined reference to `mysql_fetch_row'
>
> ../src/adm/mCommon.cpp:153: undefined reference to
> `mysql_escape_string'
> collect2: ld returned 1 exit status
> make: *** [index] Error 1
> [root@localhost unix]#
>
>
> can u tell me what are the changes should be done
>

Reply With Quote
  #7 (permalink)  
Old 01-13-2007
yogesh
 
Posts: n/a
Default ..

thankyou to every one my error is solved to me

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0