Bug #12420: lmysqlclient: no reference for compress and uncompress
| From: | ivo at nzol dot net dot nz | Date: | Fri, 27 Jul 2001 12:34:35 +0000 |
| Subject: | Bug #12420: lmysqlclient: no reference for compress and uncompress | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-61202@lists.php.net to get a copy of this message | ||
From: ivo@nzol.net.nz
Operating system: mandrake 7.1
PHP version: 4.0.6
PHP Bug Type: Compile Failure
Bug description: lmysqlclient: no reference for compress and uncompress
I tried to install php as static module to apache.
But there was a problem in the libmysqlclient.
How can I fix it?
If you tell me: "add -lz last when linking with lmysqlclient", can you
tell me then where to add -lz?
command-line history:
$ tar -vxzf apache_1.3.20.tar.gz
$ cd apache_1.3.20
$ ./configure
$ cd ..
$ tar -vxzf php-4.0.6.tar.gz
$ cd php-4.0.6
$ ./configure --with-mysql=/usr/local/mysql
--with-apache=../apache_1.3.x --enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.20
$ ./configure --prefix=/usr/local/apache\
--activate-module=src/modules/php4/libphp4.a
$ make
Error-Message
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress': my_compress.o(.text+0x9a): undefined reference
to
`uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o):
In
function `my_compress_alloc': my_compress.o(.text+0x12a):
undefined
reference to `compress' collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2
kind regards
ivo
--
Edit bug report at: http://bugs.php.net/?id=12420&edit=1