Re: [PHP-DEV] Bug #464: If both MySQL and Sybase are compiled into PHP3, Apache 1.3.0 build fails From: Zeev Suraski (bourbon <email protected>)
Date: 06/16/98

At 00:01 16/06/98 -0000, bginter <email protected> wrote:
>From: bginter <email protected>
>Operating system: Linux 2.0.33
>PHP version: 3.0 Final Release
>PHP Bug Type: MySQL related
>Bug description:
>I've been trying to make a php/httpd binary that can connect
>to either MySQL or Sybase or both at the same time. I can
>compile the php3 module with no problems but when I try to
>link that object into Apache 1.3.0, it fails. The errors follow:
>
>/usr/local/sybase/lib/libsybtcl.a(net_inet.o)(.text+0x70): multiple
definition of 'net_init'
>/usr/local/mysql/lib/libmysqlclient(net.o)(.text+0x70): first defined here
>/usr/local/sybase/lib/libsybtcl.a(net_read.o)(.text+0x0): multiple
definition of 'net_read'
>/usr/local/mysql/lib/libmysqlclient(net.o)(.text+0x390): first defined here
>/usr/local/sybase/lib/libsybtcl.a(net_writ.o)(.text+0x0): multiple
definition of 'net_write'
>/usr/local/mysql/lib/libmysqlclient(net.o)(.text+0x16c): first defined here
>make: *** [target_static] Error 1
>
>I guess it's not really a bug in php since the php module compiles

Indeed it isn't

>ok. But if you can only select one at a time, then the setup options for
php databases should be mutually exclusive.

I've noticed that about half a year ago - I asked the MySQL author to
change the function names, and he kindly did. If you get a more recent
version of MySQL, these problems would be solved.

Zeev

--
Zeev Suraski   <zeev <email protected>>
For a PGP public key, finger bourbon <email protected>