PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #31182 compile fails when using mysql 4.1.x and imap c-client 2004a
Submitted:18 Dec 2004 5:27pm UTC Modified: 20 Dec 2004 2:44pm UTC
From:sdolgy-php at squigly dot net Assigned to:
Status:Bogus Category:Compile Failure
Version:5.0.3 OS:Linux 2.4.21-9.ELsmp
Votes:3 Avg. Score:5.0 ± 0.0 Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%) Same OS:1 (33.3%)
View/Vote Developer Edit Submission

[18 Dec 2004 5:27pm UTC] sdolgy-php at squigly dot net
Description:
------------
When compiling php 5.0.2 or php 5.0.3 with mysql 4.1.8 or 4.1.7 and imap
c-client 2004a libraries, consistently php fails to work.  This was not
a problem with mysql 4.0 branch.  So, might not be something which can
be avoided in php compile.  configure works fine.  make is where it
fails.  only when it tries linking everything together.  afaik.

Reproduce code:
---------------
'./configure' \
'--with-apxs=/usr/local/apache/bin/apxs' \
'--localstatedir=/var' \
'--enable-gd-native-ttf' \
'--with-openssl=/usr/local/ssl' \
'--with-mysql' \
'--with-imap=/usr/local/imap-2004a' \
'--with-imap-ssl' \
'--with-java=/usr/java/jdk' \
'--with-kerberos' \
'--with-xml' \
'--with-xpm' \
'--with-bz2' \
'--with-jpeg-dir=/usr/lib' \
'--with-zlib-dir=/usr/lib' \
'--with-png-dir=/usr/lib' \
'--with-tiff-dir=/usr/lib' \
'--with-zlib-dir=/usr/lib' \
'--with-gettext' \
'--enable-fastcgi' \
'--disable-path-info-check' \
'--disable-ipv6' \
'--with-curl' \
'--with-exif' \
'--with-iconv' \
'--with-ldap' \
'--with-mbstring' \
'--with-mcrypt' \
'--with-mhash' \
"$@"

Expected result:
----------------
/usr/local/imap-2004a/lib/libc-client.a(misc.o)(.text+0x8a4): In
function `hash_reset':
/build/imap-2004a/c-client/misc.c:278: multiple definition of
`hash_reset'
/usr/lib/mysql/libmysqlclient.a(hash.o)(.text+0x130): first defined
here
/usr/bin/ld: Warning: size of symbol `hash_reset' changed from 94 in
/usr/lib/mysql/libmysqlclient.a(hash.o) to 89 in
/usr/lib/mysql/libmysqlclient.a(hash.o)
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

Actual result:
--------------
/usr/local/imap-2004a/lib/libc-client.a(misc.o)(.text+0x8a4): In
function `hash_reset':
/build/imap-2004a/c-client/misc.c:278: multiple definition of
`hash_reset'
/usr/lib/mysql/libmysqlclient.a(hash.o)(.text+0x130): first defined
here
/usr/bin/ld: Warning: size of symbol `hash_reset' changed from 94 in
/usr/lib/mysql/libmysqlclient.a(hash.o) to 89 in
/usr/lib/mysql/libmysqlclient.a(hash.o)
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

[18 Dec 2004 5:30pm UTC] sdolgy-php at squigly dot net
Will compile fine if I omit either mysql or imap arguments from
./configure ....

regards.
[18 Dec 2004 6:02pm UTC] ctbeers at syr dot edu
This problem exists with 4.3.10 and mysql 4.1.[7|8] and UW imapd 2004 or
2004a.  I am compiling it on Solaris 8, but really need this fixed in
order to compile the latest php code.

Chris
[18 Dec 2004 11:46pm UTC] derick@php.net
This is not a bug in PHP. The mysql library and/or imap library need to
name-space protect their symbols. Please file a bug with them.
[20 Dec 2004 2:44pm UTC] sdolgy-php at squigly dot net
http://bugs.mysql.com/bug.php?id=7428

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC