Hi,
A simple fix for this is to search for "-lmysqlclient" in
PHP_DIR/config_vars.mk and replace it with
"-lmysqlclient -lz"
After that, you will need to run make again & make install.
Regards,
Jorge
For technical support contracts, visit https://order.mysql.com/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Jorge del Conde <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Mexico City, Mexico
<___/ www.mysql.com
-----Original Message-----
From: Tom Cruickshank [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: make problems
Hello,
I am not sure if this is the right mailing list but since it's a
mysql related problem,
I thought I'd give it a shot..
I am installing apache on my linux box with php4 capabilities. When I
configured php4
I added the mysql option...in short..something like this...
gunzip apache_1.3.x.tar.gz
tar xvf apache_1.3.x.tar
gunzip php-x.x.x.tar.gz
tar xvf php-x.x.x.tar
cd apache_1.3.x
./configure --prefix=/www
cd ../php-x.x.x
./configure --with-mysql=../mysql --with-apache=../apache_1.3.x
--enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --activate-module=src/modules/php4/libphp4.a
make
unfortunately, when I try make in apache, I get to this error
gcc -c -I./os/unix -I./include -DLINUX=22 -I/usr/share/apps/php-4.0.6
-I/usr/share/apps/php-4.0.6/main -I/usr/share/apps/php-4.0.6/main
-I/usr/share/apps/php-4.0.6/Zend -I/usr/share/apps/php-4.0.6/Zend
-I/usr/share/apps/php-4.0.6/TSRM -I/usr/share/apps/php-4.0.6/TSRM
-I/usr/share/apps/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
`./apaci` modules.c
gcc -c -I./os/unix -I./include -DLINUX=22 -I/usr/share/apps/php-4.0.6
-I/usr/share/apps/php-4.0.6/main -I/usr/share/apps/php-4.0.6/main
-I/usr/share/apps/php-4.0.6/Zend -I/usr/share/apps/php-4.0.6/Zend
-I/usr/share/apps/php-4.0.6/TSRM -I/usr/share/apps/php-4.0.6/TSRM
-I/usr/share/apps/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
`./apaci` buildmark.c
gcc -DLINUX=22 -I/usr/share/apps/php-4.0.6
-I/usr/share/apps/php-4.0.6/main -I/usr/share/apps/php-4.0.6/main
-I/usr/share/apps/php-4.0.6/Zend -I/usr/share/apps/php-4.0.6/Zend
-I/usr/share/apps/php-4.0.6/TSRM -I/usr/share/apps/php-4.0.6/TSRM
-I/usr/share/apps/php-4.0.6 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
`./apaci` \
-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/share/apps/mysql/lib
-rdynamic -L/usr/share/apps/mysql/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lpam -ldl -lmysqlclient -lcrypt
-lresolv
-lm -ldl -lnsl -lresolv -lm -lcrypt
/usr/share/apps/mysql/lib/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/share/apps/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[2]: Leaving directory `/usr/share/apps/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/share/apps/apache_1.3.20'
make: *** [build] Error 2
[root@test apache_1.3.20]#
Would anyone have any ideas! Thanks!
Sincerely,
Tom Cruickshank
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php