#20498 [Opn->Fbk]: linking fails if -lexpat is added twice to the EXTRA_LIBS
| From: | iliaa@php.net | Date: | Fri, 22 Nov 2002 00:20:07 +0000 |
| Subject: | #20498 [Opn->Fbk]: linking fails if -lexpat is added twice to the EXTRA_LIBS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25501@lists.php.net to get a copy of this message | ||
ID: 20498
Updated by: iliaa@php.net
Reported By: bleek@jobpilot.de
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: SuSE Linux 8.0
PHP Version: 4.3.0RC1
New Comment:
Do you have more then 1 expat library installed on your computer?
Previous Comments:
------------------------------------------------------------------------
[2002-11-19 12:32:59] bleek@jobpilot.de
./configure --with-apxs=/usr/local/bin/apxs \
--with-mysql=/usr/local \
--disable-shared \
--enable-bcmath \
--enable-ftp \
--enable-mbstring \
--enable-wddx \
--enable-xslt \
--with-expat-dir=/usr/local \
--with-gettext=/usr/local \
--with-openssl=/usr/local \
--with-imap=/usr/local \
--with-imap-ssl=/usr/local \
--with-xslt-sablot=/usr/local \
--with-zlib \
--with-zlib-dir=/usr/local \
--with-gd=/usr/local \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
make fails with lots of
/home/cbleek/Sources/XML/expat/lib/xmlrole.c(.text+0x15d0): multiple
definition of `XmlPrologStateInitExternalEntity'
/usr/local/lib/libexpat.a(xmlrole.o)(.text+0x15d0):/home/cbleek/Sources/XML/expat/lib/xmlrole.c:
first defined here
After removing one "-lexpat" from the $EXTRA_LIBS in the
main Makefile, compilation works fine.
This error existed in the 4.2.3 too, There the config_vars.mk (or so)
had to be modified.
\carsten
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20498&edit=1