From:             rjanson at msn dot com
Operating system: Redhat 9
PHP version:      5.0.1
PHP Bug Type:     Compile Failure
Bug description:  Cannot compile with mysql and mysqli extensions

Description:
------------
I cannot compile php 5.0.1 (nor 5.0.0) with mysql and mysqli extensions. I
can compile with either/or. At this point I need both. I am using mysql
4.1.3

Configure runs with no issues.

Reproduce code:
---------------
My configure options: 
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com
--enable-inline-optimization --with-exec-dir=/usr/bin --with-layout=GNU
--enable-magic-quotes --with-pear=/usr/share/pear
--with-mysql=/usr/bin/mysql_config --with-mysqli=/usr/bin/mysqli_config
--enable-versioning --with-apxs2=/usr/sbin/apxs --enable-sockets
--with-zlib-dir=/usr/local --with-gd --with-ldap --without-sqlite

Expected result:
----------------
I expect PHP to compile with no errors, and to support both Mysql and
Mysqli extensions.

Actual result:
--------------
I get several lines similar to the following:

: multiple definition of `net_realloc'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x100): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): In function
`net_clear':
: multiple definition of `net_clear'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): In function
`net_flush':
: multiple definition of `net_flush'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): In function
`net_real_write':
: multiple definition of `net_real_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): In function
`my_net_write':
: multiple definition of `my_net_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): In function
`net_write_command':
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): In function
`my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): first defined here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1

-- 
Edit bug report at http://bugs.php.net/?id=29860&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29860&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29860&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29860&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29860&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29860&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29860&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29860&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29860&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29860&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29860&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29860&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29860&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29860&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29860&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29860&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29860&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29860&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29860&r=float

Reply via email to