php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15076 Name conficts when some libs are static.
Submitted: 2002-01-16 21:28 UTC Modified: 2002-04-22 23:52 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:1 (25.0%)
From: seba at iq dot pl Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.1.1 OS: Linux 2.2
Private report: No CVE-ID: None
 [2002-01-16 21:28 UTC] seba at iq dot pl
example:
there are only .h and .a files for lib mysql (version does not 
matter - they are from rpm'ed MySQL-devel file)
then I configure php with --with-mysql=/usr final libphp4.so will 
be static compiled with it - thats ok for me
then lets add some stuff - mnogosearch for example
mnogosearch compiles --with-mysql and his libs are static 
(libudmsearch.a)

When I try to compile this stuff together (in php) I get error 
message about "multiple definition of 
...mysql_related_functions..."

php uses static lib of mysql and static lib of mnogosearch
mnogosearch uses static lib of mysql

in abowe eweryone (php, mnogosearch) uses the same static mysql 
lib

whats wrong with it? under php 4.0.6 this works fine

another one:
php uses his own expat lib (compiled static)
now when I try do add sablotron support
but sablotron requires expat, so:
download expat, untar, configure with "--enable-shared=no", 
make, make install
now sablotron can find expat lib & make his libs (static of 
course)

php is using his own expat lib for xml, sablotron his own

but there is a problem under compile time, error "multiple 
definition of ...expat related funcions..."

how to solve it? is this new feature of php-4.1.x?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-22 23:52 UTC] sniper@php.net
Please do not submit the same bug more than once.

Please don't report same issue twice. (#15346 has better info)



 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 22:01:35 2025 UTC