From:             rjblickbogus at hotmail dot com
Operating system: Redhat 9
PHP version:      5.0.1
PHP Bug Type:     Compile Failure
Bug description:  can't compile with both --with-mysql and --with-mysqli

Description:
------------
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/include/mysql/ --disable-cgi WORKS FINE.

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysqli=/usr/bin/mysql_config --disable-cgi WORKS FINE.

But, combining --with-mysql and --with-mysqli:
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/include/mysql/ --with-mysqli=/usr/bin/mysql_config
--disable-cgi

fails during make with a laundry list of errors of the form:
/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


MySQL 4.1.3-beta is in use.


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

Reply via email to