#20498 [Opn->Bgs]: linking fails if -lexpat is added twice to the EXTRA_LIBS
| From: | iliaa@php.net | Date: | Fri, 22 Nov 2002 15:27:08 +0000 |
| Subject: | #20498 [Opn->Bgs]: 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-25566@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: Bogus
Bug Type: Compile Failure
Operating System: SuSE Linux 8.0
PHP Version: 4.3.0RC1
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Given that you specify both /usr & /usr/local as the library search
paths it is highly likely library confusion occurs. IMO this is not a
PHP issue.
Previous Comments:
------------------------------------------------------------------------
[2002-11-22 03:43:55] bleek@jobpilot.de
Yes, /usr/lib contains the original SuSE expat. But I´ve linked
everything (sablotron, apache, php) with a statically
build expat located in usr/local/lib.
Shall I reproduce the problem making sure, that there is only
my expat available?
------------------------------------------------------------------------
[2002-11-21 18:20:07] iliaa@php.net
Do you have more then 1 expat library installed on your computer?
------------------------------------------------------------------------
[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