PHP 4.0 Bug #6216 Updated: error in the linking phase

From: Date: Thu, 12 Oct 2000 13:21:31 +0000
Subject: PHP 4.0 Bug #6216 Updated: error in the linking phase
Groups: php.dev 
Request: Send a blank email to php-dev+get-34793@lists.php.net to get a copy of this message
ID: 6216 Updated by: sniper Reported By: zapzap@zwf.net Status: Feedback Bug Type: Compile Failure Assigned To: Comments: Please try PHP 4.0.3 and report back whether this problem still exists with it. And it's --enable-ftp (not --with-ftp) --Jani Previous Comments: --------------------------------------------------------------------------- [2000-08-24 11:28:52] zapzap@zwf.net hi, i try to make the same thing on an over machine and everything work fine the only but perhaps big difference between the 2 machine is : * on the machine where it work fine i have MySQL 3.22.32-1 (rpm version) * on the machine where i got the error i have MySQL 3.23.22-1 (RPM version) Is it a Mysql Prob or a PHP4 ? thanks patrick --------------------------------------------------------------------------- [2000-08-18 13:21:45] zapzap@zwf.net my configure line is when i have the first error message : ./configure --with-mysql --with-apache=../apache_1.3.12 --enable-track-vars --with-config-file-path=/etc/Configuration/php/Conf --with-ftp --enable-trans-sid --disable-debug --enable-safe-mode --with-exec-dir=/etc/Configuration/php/Bin then i change the configure line to : ./configure --with-mysql=/usr --with-apache=../apache_1.3.12 --enable-track-vars --with-config-file-path=/etc/Configuration/php/Conf --with-ftp --enable-trans-sid --disable-debug --enable-safe-mode --with-exec-dir=/etc/Configuration/php/Bin and now i got : /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x97): undefined reference to `uncompress' /usr/lib/mysql/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 make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/apache_1.3.12/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/apache_1.3.12' make: *** [build] Error 2 thanks zapzap --------------------------------------------------------------------------- [2000-08-17 10:19:24] zapzap@zwf.net hi, i try to compil Apache 1.3.12 with PHP 4.0.1pl2 whith Zend optimizer (last version) with support for MySQL everything is good until the link : gcc -I/usr/include/mysql -DLINUX=2 -DMOD_SSL=206106 -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2 -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/main -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/main -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/Zend -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/Zend -I/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2 -DEAPI -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci -L/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/openssl-0.9.5a -o httpd buildmark.o modules.o modules/auth_mysql/libauth_mysql.a modules/standard/libstandard.a modules/ssl/libssl.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -L/usr/lib/mysql -lmysqlclient -lcrypt -rdynamic -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lgdbm -lpam -ldl -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -lssl -lcrypto /usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x0): multiple definition of `ctype_latin1' modules/php4/libphp4.a(ctype-latin1.o)(.data+0x0):/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/ext/mysql/libmysql/ctype-latin1.c: first defined here /usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x101): multiple definition of `to_lower_latin1' modules/php4/libphp4.a(ctype-latin1.o)(.data+0x101):/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/ext/mysql/libmysql/ctype-latin1.c: first defined here /usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x201): multiple definition of `to_upper_latin1' modules/php4/libphp4.a(ctype-latin1.o)(.data+0x201):/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/ext/mysql/libmysql/ctype-latin1.c: first defined here /usr/lib/mysql/libmysqlclient.a(ctype.o)(.data+0x301): multiple definition of `sort_order_latin1' modules/php4/libphp4.a(ctype-latin1.o)(.data+0x301):/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/php-4.0.1pl2/ext/mysql/libmysql/ctype-latin1.c: first defined here collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/apache_1.3.12/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/tmp/APACHE/Apache1312-php400-Zend-SSL/BUILD/apache_1.3.12' make: *** [build] Error 2 thanks zapzap --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6216

« previous php.dev (#34793) next »