3 messages in com.mysql.lists.bugsRe: Problems compiling apache_1.3.14 ...
FromSent OnAttachments
Roland Paltiel20 Dec 2000 05:59 
Thimble Smith20 Dec 2000 06:26 
Sasha Pachev20 Dec 2000 06:26 
Subject:Re: Problems compiling apache_1.3.14 with PHP-4.03pl1 and mySQL-3.23.29]
From:Thimble Smith (ti@mysql.com)
Date:12/20/2000 06:26:37 AM
List:com.mysql.lists.bugs

On Wed, Dec 20, 2000 at 02:59:55PM +0100, Roland Paltiel wrote:

gcc -DLINUX=2 -I/usr/local/php-4.0.3pl1 -I/usr/local/php-4.0.3pl1/main -I/usr/local/php-4.0.3pl1/main -I/usr/local/php-4.0.3pl1/Zend -I/usr/local/php-4.0.3pl1/Zend -I/usr/local/php-4.0.3pl1/TSRM -I/usr/local/php-4.0.3pl1/TSRM -I/usr/local/php-4.0.3pl1 -DUSE_EXPAT -I./lib/expat-lite `./apaci` -rdynamic \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/mysql/lib -rdynamic -L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lmysqlclient -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -ldl *!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!*!* /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x97): undefined reference to `uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12b): undefined reference to `compress' collect2: ld returned 1 exit status

MySQL uses libz for compression. The Apache build needs to add -lz to the link line.

There is a script called mysql_config that will print out the libs needed for linking with MySQL. It should be used in the Apache configuration.

Tim