php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #464 If both MySQL and Sybase are compiled into PHP3, Apache 1.3.0 build fails
Submitted: 1998-06-15 20:01 UTC Modified: 1998-06-15 20:46 UTC
From: bginter at abilnet dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0 Final Release OS: Linux 2.0.33
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bginter at abilnet dot com
New email:
PHP Version: OS:

 

 [1998-06-15 20:01 UTC] bginter at abilnet dot com
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
ok.  But if you can only select one at a time, then the setup options for php databases should be mutually exclusive.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-15 20:46 UTC] rasmus
This should go to the mysql@tcx.se mailing list, or use the MySQL bug reporting mechanism to report it.  It is a simple symbol clash problem.  You could go into your MySQL sources and do a global search and replace on those symbols and stick "mysql_" in front of them all, for example.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 01:01:30 2024 UTC