php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6216 error in the linking phase
Submitted: 2000-08-17 10:19 UTC Modified: 2000-10-28 23:43 UTC
From: zapzap at zwf dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: Redhat Linux 6.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zapzap at zwf dot net
New email:
PHP Version: OS:

 

 [2000-08-17 10:19 UTC] zapzap at zwf dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-18 13:21 UTC] zapzap at zwf dot 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-24 11:28 UTC] zapzap at zwf dot 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-10-12 09:21 UTC] sniper@php.net
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
 [2000-10-28 23:43 UTC] sniper@php.net
No feedback.

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 00:00:01 2026 UTC