UCSPI Problem after apply ucspi-tcp-0.88-mysql3+rss.patch

Started by alexandre, March 30, 2004, 12:41:32 PM

Previous topic - Next topic

alexandre

After i apply the patch ucspi-tcp-0.88-mysql3+rss.patch ,
i can't compile it.

I'm using RedHat 9.0 .

I get the following messages:

rm -f trylsock.o trylsock
./load tcpserver rules.o db.o remoteinfo.o timeoutconn.o cdb.a \
dns.a time.a unix.a byte.a  `cat socket.lib`
db.o(.text+0x15): In function `open_db':
: undefined reference to `mysql_init'
db.o(.text+0x55): In function `open_db':
: undefined reference to `mysql_real_connect'
db.o(.text+0x6e): In function `open_db':
: undefined reference to `mysql_error'
db.o(.text+0x8d): In function `open_db':
: undefined reference to `mysql_close'
db.o(.text+0xdf): In function `check_db':
: undefined reference to `mysql_query'
db.o(.text+0xed): In function `check_db':
: undefined reference to `mysql_store_result'
db.o(.text+0xfb): In function `check_db':
: undefined reference to `mysql_affected_rows'
db.o(.text+0x109): In function `check_db':
: undefined reference to `mysql_free_result'
db.o(.text+0x15e): In function `check_db':
: undefined reference to `mysql_error'
db.o(.text+0x1af): In function `check_db':
: undefined reference to `mysql_query'
db.o(.text+0x1d9): In function `db_close':
: undefined reference to `mysql_close'
db.o(.text+0x275): In function `db_ping':
: undefined reference to `mysql_ping'
collect2: ld returned 1 exit status
make: *** [tcpserver] Error 1
./load tcpserver rules.o db.o remoteinfo.o timeoutconn.o cdb.a \
dns.a time.a unix.a byte.a  `cat socket.lib`
db.o(.text+0x15): In function `open_db':
: undefined reference to `mysql_init'
db.o(.text+0x55): In function `open_db':
: undefined reference to `mysql_real_connect'
db.o(.text+0x6e): In function `open_db':
: undefined reference to `mysql_error'
db.o(.text+0x8d): In function `open_db':
: undefined reference to `mysql_close'
db.o(.text+0xdf): In function `check_db':
: undefined reference to `mysql_query'
db.o(.text+0xed): In function `check_db':
: undefined reference to `mysql_store_result'
db.o(.text+0xfb): In function `check_db':
: undefined reference to `mysql_affected_rows'
db.o(.text+0x109): In function `check_db':
: undefined reference to `mysql_free_result'
db.o(.text+0x15e): In function `check_db':
: undefined reference to `mysql_error'
db.o(.text+0x1af): In function `check_db':
: undefined reference to `mysql_query'
db.o(.text+0x1d9): In function `db_close':
: undefined reference to `mysql_close'
db.o(.text+0x275): In function `db_ping':
: undefined reference to `mysql_ping'
collect2: ld returned 1 exit status
make: *** [tcpserver] Error 1

matt

Most likely the path to your MySQL libraries needs to be altered in one of the conf-* files. That's be cause MySQL doesn't get installed in the same place on RedHat as FreeBSD.

Matt

alexandre

The paths looks like correct

conf-cc

gcc -O2 -I/usr/local/include/mysql



conf-ld

gcc -s  -I/usr/local/include/mysql -L/usr/local/lib/mysql -Imysqlclient


Alexandre