PHP 4.0 Bug #8852: undefined reference to `compress'
| From: | artem at osp dot ru | Date: | Tue, 23 Jan 2001 08:47:03 +0000 |
| Subject: | PHP 4.0 Bug #8852: undefined reference to `compress' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44793@lists.php.net to get a copy of this message | ||
From: artem@osp.ru
Operating system: Linux 2.2.18
PHP version: 4.0.4pl1
PHP Bug Type: Compile Failure
Bug description: undefined reference to `compress'
Can't complile apache when use static php & mysql
There are like bug :5651
need patch src/Makefile in apache
add -lz to end of LIBS1
<=== src/modules/php4
<=== src/modules
gcc -c -I./os/unix -I./include -DLINUX=2 -DRUSSIAN_APACHE -DNO_DBM_REWRITEMAP
-I/usr3/home/artem/download/php-4.0.4pl1 -I/usr3/home/artem/download/php-4.0.4p
l1/main -I/usr3/home/artem/download/php-4.0.4pl1/main -I/usr3/home/artem/downloa
d/php-4.0.4pl1/Zend -I/usr3/home/artem/download/php-4.0.4pl1/Zend -I/usr3/home/a
rtem/download/php-4.0.4pl1/TSRM -I/usr3/home/artem/download/php-4.0.4pl1/TSRM -I
/usr3/home/artem/download/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite
./apaci
modules.c
gcc -c -I./os/unix -I./include -DLINUX=2 -DRUSSIAN_APACHE -DNO_DBM_REWRITEMAP
-I/usr3/home/artem/download/php-4.0.4pl1 -I/usr3/home/artem/download/php-4.0.4p
l1/main -I/usr3/home/artem/download/php-4.0.4pl1/main -I/usr3/home/artem/downloa
d/php-4.0.4pl1/Zend -I/usr3/home/artem/download/php-4.0.4pl1/Zend -I/usr3/home/a
rtem/download/php-4.0.4pl1/TSRM -I/usr3/home/artem/download/php-4.0.4pl1/TSRM -I
/usr3/home/artem/download/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite ./apaci
buildmark.c
gcc -DLINUX=2 -DRUSSIAN_APACHE -DNO_DBM_REWRITEMAP -I/usr3/home/artem/download/
php-4.0.4pl1 -I/usr3/home/artem/download/php-4.0.4pl1/main -I/usr3/home/artem/do
wnload/php-4.0.4pl1/main -I/usr3/home/artem/download/php-4.0.4pl1/Zend -I/usr3/h
ome/artem/download/php-4.0.4pl1/Zend -I/usr3/home/artem/download/php-4.0.4pl1/TS
RM -I/usr3/home/artem/download/php-4.0.4pl1/TSRM -I/usr3/home/artem/download/php
-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite ./apaci -rdynamic \
-o httpd buildmark.o modules.o modules/extra/libextra.a modules/standard/l
ibstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a -Wl,-rpath,/usr2/mysql/lib/mysql -rdynamic -L/usr2/
mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
-lpam -ldl -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcry
pt -ldl
/usr2/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompres
s':
my_compress.o(.text+0x97): undefined reference to `uncompress'
/usr2/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_
alloc':
my_compress.o(.text+0x123): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Âûõîä èç êàòàëîã `/usr3/home/artem/download/apache_1.3.12rusPL29.7/src'
make[1]: *** [build-std] Error 2
make[1]: Âûõîä èç êàòàëîã `/usr3/home/artem/download/apache_1.3.12rusPL29.7'
make: *** [build] Error 2
--
Edit Bug report at: http://bugs.php.net/?id=8852&edit=1