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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 > |
|
|||
|
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 |
|
|||
|
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 > |
|
|||
|
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 |
|
|||
|
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 > |