php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18725 multiple definitions of symbol __dig_vec
Submitted: 2002-08-03 13:26 UTC Modified: 2002-08-06 00:05 UTC
From: m31 at 128kb dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.2.2 OS: Darwin OSX 10.1.5
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: m31 at 128kb dot com
New email:
PHP Version: OS:

 

 [2002-08-03 13:26 UTC] m31 at 128kb dot com
While using mod_php as a shared object and mod_perl as a 
shared object I get dyld errors complaining about multiple 
definitions of symbol __dig_vec. This error occurs when 
perls DBI module is loaded into mod_perl and when a call to 
Apache::DBI->connect() is made. The script fails with this 
error:

dyld: /usr/sbin/httpd multiple definitions of symbol 
__dig_vec
/usr/libexec/httpd/libphp4-4.1.2.so definition of __dig_vec
/Library/Perl/darwin/auto/DBD/mysql/mysql.bundle definition 
of __dig_vec

This may not be exactly php specific but mod_php and 
mod_perl have an obvious conflict and I'm not sure if this 
is an OSX specific thing either.

I have tried this with php4.1.1, 4.1.2, 4.2.0, 4.2.2
The only way I can suppress the errors is to comment out 
mod_php in my httpd.conf.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-03 14:49 UTC] msopacua at idg dot nl
Hi,

this is a symbol in the mysql client library.

Did you compile the DBD::mysql module with the same library as the one with PHP?
 [2002-08-03 15:04 UTC] m31 at 128kb dot com
I installed DBD::Mysql via CPAN shell so I'm not sure about 
that but the php build I'm using is, I installed the binary 
from the suggested link on http://www.php.net/downloads.php 
for the OSX binary. 

I've been trying to build php with mysql's mysqlclient 
libraries to avoid this but am having difficulties. I 
wasn't aware that I could just try to rebuild DBD, maybe I 
sould just try that route.... but how would I go about 
doing that?? link DBD to mysqlclient libraries??
 [2002-08-03 15:12 UTC] msopacua at idg dot nl
hmm, that would be difficult. The binary install, uses the provided mysql client and links that in (statically I presume).

I think the only thing you can do is:
a) wait :-0
or the preferred option:
b) report compilation errors for the mysql client lib and join php QA - it's the only way we can improve support for OS/X.

Dan (Kalowsky): is 4.3.0-dev better for external mysql client support?
 [2002-08-05 16:07 UTC] kalowsky@php.net
I wouldn't be able to comment directly on the MySQL support as I haven't even bothered to try it.  Guess I should do that soon. 

Anyways, if you can try a snapshot of a recent build (snaps.php.net) and tell me if this is fixed, it would be appriciated.  4.3.0 will be the first release of PHP to officially support OSX out of the box... so any testing you can help us with is appriciated :)
 [2002-08-05 19:11 UTC] m31 at 128kb dot com
Thankx!! I'll try it tonite as soon as I get a chance, then 
report back with some results.
-Justin
 [2002-08-05 19:22 UTC] kalowsky@php.net
Keeping as feedback until user reports back on status change.
 [2002-08-05 21:42 UTC] m31 at 128kb dot com
I downloaded the latest cvs snaphot (php4-
200208050900.tar.gz) and was able to get it to compile with 
a basic configure/install:
 --with-mysql --with-apxs=/usr/bin/apxs

and it worked like a charm, I did a gracfeul restart and 
the module loaded fine. The multiple definitions of 
__dig_vec no longer appear in my logs or cause scripts to 
fail while mod_perl and DBI are loaded together with 
mod_php.

So I tried another istall with more options:
./configure --disable-cli \
--with-apxs=/usr/sbin/apxs \
--with-mysql \
--with-pgsql \
--with-png-dir=/usr/local \
--with-zlib-dir=/sw \
--with-jpeg-dir=/usr/local \
--with-freetype-dir=/sw \
--with-t1lib=/sw \
--enable-trans-sid \
--with-xml \
--enable-wddx \
--enable-ftp \
--enable-mbstring \
--enable-mbstr-enc-trans \
--with-imap=/usr/local/src/imap2001a \
--enable-dbx \
--enable-dbase \
--enable-sockets

and that install also went very well, and things seem to be 
working properly. Although I had to disable these items 
with these errors:
--enable-exif:
 /Users/m31/builds/php4-200208050900/ext/exif/exif.c:3001: 
conflicting types for `exif_process_IFD_in_JPEG'
/Users/m31/builds/php4-200208050900/ext/exif/exif.c:2177: 
previous declaration of `exif_process_IFD_in_JPEG'
make: *** [ext/exif/exif.lo] Error 1

and also had to omit --with-pgsql because of errors.
 
.....on Darwin-OSX/10.1.5, apache/1.3.26, mod_perl/1.25,  
gcc/2.95.2,
 [2002-08-05 21:52 UTC] sniper@php.net
Okay, so 4.3.0-dev works for you. There are other bug reports about pgsql and that exif prob so let's close this one now.


 [2002-08-05 23:56 UTC] kalowsky@php.net
The exif errors were just fixed in CVS, so grab a new snapshot, and please test the exif system for us.... report back any bugs :)
 [2002-08-06 00:05 UTC] m31 at 128kb dot com
I got the following errors --enable-exif
/Users/m31/builds/php4-200208051200/ext/exif/exif.c:3001: 
conflicting types for `exif_process_IFD_in_JPEG'
/Users/m31/builds/php4-200208051200/ext/exif/exif.c:2177: 
previous declaration of `exif_process_IFD_in_JPEG'
make: *** [ext/exif/exif.lo] Error 1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 05:01:31 2024 UTC