PHP 4.0 Bug #6216: error in the linking phase
| From: | zapzap at zwf dot net | Date: | Thu, 17 Aug 2000 14:19:24 +0000 |
| Subject: | PHP 4.0 Bug #6216: error in the linking phase | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29277@lists.php.net to get a copy of this message | ||
From: zapzap@zwf.net
Operating system: Redhat Linux 6.2
PHP version: 4.0.1pl2
PHP Bug Type: Compile Failure
Bug description: error in the linking phase
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