php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20646 Problem with expat ?
Submitted: 2002-11-26 08:21 UTC Modified: 2002-11-26 09:45 UTC
From: bchesneau at mac dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4CVS-2002-11-26 (stable) OS: mac os x 10.2.2
Private report: No CVE-ID: None
 [2002-11-26 08:21 UTC] bchesneau at mac dot com
Configure php with this commandline :

./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --mandir=/usr/share/man --infodir=/usr/share/info --with-config-file-path=/etc/httpd --enable-calendar --with-iconv=/usr/local --enable-exif --enable-ftp --enable-wddx --with-xml --with-zlib --with-curl=/usr --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-imap=../imap-2002 --with-imap-ssl=/usr --with-curl=/usr --enable-xslt --with-xslt-sablot=/usr/local --with-mcrypt=/usr/local --with-mhash=/usr/local --with-mysql=/usr/local/mysql --with-expat-dir=/usr/local


I installed last version of expat in /usr/local

When I compile php, It fails with this result :

d: warning multiple definitions of symbol _XML_GetCurrentByteIndex
/usr/sbin/httpd definition of _XML_GetCurrentByteIndex
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetCurrentByteIndex
ld: warning multiple definitions of symbol _XML_DefaultCurrent
/usr/sbin/httpd definition of _XML_DefaultCurrent
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_DefaultCurrent
ld: warning multiple definitions of symbol _XML_ErrorString
/usr/sbin/httpd definition of _XML_ErrorString
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ErrorString
ld: warning multiple definitions of symbol _XML_ExternalEntityParserCreate
/usr/sbin/httpd definition of _XML_ExternalEntityParserCreate
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ExternalEntityParserCreate
ld: warning multiple definitions of symbol _XML_GetBase
/usr/sbin/httpd definition of _XML_GetBase
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetBase
ld: warning multiple definitions of symbol _XML_GetBuffer
/usr/sbin/httpd definition of _XML_GetBuffer
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetBuffer
ld: warning multiple definitions of symbol _XML_GetCurrentByteCount
/usr/sbin/httpd definition of _XML_GetCurrentByteCount
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetCurrentByteCount
ld: warning multiple definitions of symbol _XML_GetCurrentColumnNumber
/usr/sbin/httpd definition of _XML_GetCurrentColumnNumber
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetCurrentColumnNumber
ld: warning multiple definitions of symbol _XML_GetCurrentLineNumber
/usr/sbin/httpd definition of _XML_GetCurrentLineNumber
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetCurrentLineNumber
ld: warning multiple definitions of symbol _XML_GetErrorCode
/usr/sbin/httpd definition of _XML_GetErrorCode
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetErrorCode
ld: warning multiple definitions of symbol _XML_GetSpecifiedAttributeCount
/usr/sbin/httpd definition of _XML_GetSpecifiedAttributeCount
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_GetSpecifiedAttributeCount
ld: warning multiple definitions of symbol _XML_Parse
/usr/sbin/httpd definition of _XML_Parse
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_Parse
ld: warning multiple definitions of symbol _XML_ParseBuffer
/usr/sbin/httpd definition of _XML_ParseBuffer
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ParseBuffer
ld: warning multiple definitions of symbol _XML_ParserCreate
/usr/sbin/httpd definition of _XML_ParserCreate
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ParserCreate
ld: warning multiple definitions of symbol _XML_ParserCreateNS
/usr/sbin/httpd definition of _XML_ParserCreateNS
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ParserCreateNS
ld: warning multiple definitions of symbol _XML_ParserFree
/usr/sbin/httpd definition of _XML_ParserFree
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_ParserFree
ld: warning multiple definitions of symbol _XML_SetBase
/usr/sbin/httpd definition of _XML_SetBase
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetBase
ld: warning multiple definitions of symbol _XML_SetCdataSectionHandler
/usr/sbin/httpd definition of _XML_SetCdataSectionHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetCdataSectionHandler
ld: warning multiple definitions of symbol _XML_SetCharacterDataHandler
/usr/sbin/httpd definition of _XML_SetCharacterDataHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetCharacterDataHandler
ld: warning multiple definitions of symbol _XML_SetCommentHandler
/usr/sbin/httpd definition of _XML_SetCommentHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetCommentHandler
ld: warning multiple definitions of symbol _XML_SetDefaultHandler
/usr/sbin/httpd definition of _XML_SetDefaultHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetDefaultHandler
ld: warning multiple definitions of symbol _XML_SetDefaultHandlerExpand
/usr/sbin/httpd definition of _XML_SetDefaultHandlerExpand
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetDefaultHandlerExpand
ld: warning multiple definitions of symbol _XML_SetElementHandler
/usr/sbin/httpd definition of _XML_SetElementHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetElementHandler
ld: warning multiple definitions of symbol _XML_SetEncoding
/usr/sbin/httpd definition of _XML_SetEncoding
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetEncoding
ld: warning multiple definitions of symbol _XML_SetExternalEntityRefHandler
/usr/sbin/httpd definition of _XML_SetExternalEntityRefHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetExternalEntityRefHandler
ld: warning multiple definitions of symbol _XML_SetExternalEntityRefHandlerArg
/usr/sbin/httpd definition of _XML_SetExternalEntityRefHandlerArg
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetExternalEntityRefHandlerArg
ld: warning multiple definitions of symbol _XML_SetNamespaceDeclHandler
/usr/sbin/httpd definition of _XML_SetNamespaceDeclHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetNamespaceDeclHandler
ld: warning multiple definitions of symbol _XML_SetNotStandaloneHandler
/usr/sbin/httpd definition of _XML_SetNotStandaloneHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetNotStandaloneHandler
ld: warning multiple definitions of symbol _XML_SetNotationDeclHandler
/usr/sbin/httpd definition of _XML_SetNotationDeclHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetNotationDeclHandler
ld: warning multiple definitions of symbol _XML_SetProcessingInstructionHandler
/usr/sbin/httpd definition of _XML_SetProcessingInstructionHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetProcessingInstructionHandler
ld: warning multiple definitions of symbol _XML_SetUnknownEncodingHandler
/usr/sbin/httpd definition of _XML_SetUnknownEncodingHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetUnknownEncodingHandler
ld: warning multiple definitions of symbol _XML_SetUnparsedEntityDeclHandler
/usr/sbin/httpd definition of _XML_SetUnparsedEntityDeclHandler
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetUnparsedEntityDeclHandler
ld: warning multiple definitions of symbol _XML_SetUserData
/usr/sbin/httpd definition of _XML_SetUserData
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_SetUserData
ld: warning multiple definitions of symbol _XML_UseParserAsHandlerArg
/usr/sbin/httpd definition of _XML_UseParserAsHandlerArg
/usr/local/lib/libexpat.dylib(xmlparse.lo) definition of _XML_UseParserAsHandlerArg
ld: warning multiple definitions of symbol _XmlUtf16Encode
/usr/sbin/httpd definition of _XmlUtf16Encode
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlUtf16Encode
ld: warning multiple definitions of symbol _XmlInitEncoding
/usr/sbin/httpd definition of _XmlInitEncoding
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlInitEncoding
ld: warning multiple definitions of symbol _XmlInitUnknownEncoding
/usr/sbin/httpd definition of _XmlInitUnknownEncoding
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlInitUnknownEncoding
ld: warning multiple definitions of symbol _XmlParseXmlDecl
/usr/sbin/httpd definition of _XmlParseXmlDecl
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlParseXmlDecl
ld: warning multiple definitions of symbol _XmlGetUtf8InternalEncoding
/usr/sbin/httpd definition of _XmlGetUtf8InternalEncoding
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlGetUtf8InternalEncoding
ld: warning multiple definitions of symbol _XmlSizeOfUnknownEncoding
/usr/sbin/httpd definition of _XmlSizeOfUnknownEncoding
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlSizeOfUnknownEncoding
ld: warning multiple definitions of symbol _XmlUtf8Encode
/usr/sbin/httpd definition of _XmlUtf8Encode
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlUtf8Encode
ld: warning multiple definitions of symbol _XmlGetUtf16InternalEncoding
/usr/sbin/httpd definition of _XmlGetUtf16InternalEncoding
/usr/local/lib/libexpat.dylib(xmltok.lo) definition of _XmlGetUtf16InternalEncoding
ld: warning multiple definitions of symbol _XmlPrologStateInit
/usr/sbin/httpd definition of _XmlPrologStateInit
/usr/local/lib/libexpat.dylib(xmlrole.lo) definition of _XmlPrologStateInit
ld: Undefined symbols:
vtable for __cxxabiv1::__class_type_info
vtable for __cxxabiv1::__si_class_type_info
operator delete[](void*)
operator delete(void*)
operator new(unsigned long)
___gxx_personality_v0
std::terminate()
operator new[](unsigned long)
vtable for __cxxabiv1::__vmi_class_type_info
___cxa_pure_virtual
make: *** [libs/libphp4.bundle] Error 1

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-26 08:41 UTC] msopacua@php.net
I would be surprised (and extatic :) if building a C++ extension actually does work on Mac OS X, but the error you're seeing, is because you compiled Apache with expat.

Recompile Apache with --disable-rule=EXPAT (capitals) and try again.
 [2002-11-26 09:26 UTC] bchesneau at mac dot com
mmmm, I used apache distributed with mac os X, It would be 
better if we can install php without to make this change.
 [2002-11-26 09:45 UTC] msopacua@php.net
Yes, I agree, but you can't.

Either don't use anything expat related, complain with the Apache people, that they should protect the expat symbols or recompile apache like I suggested.

This doesn't only apply to php, but any extension that uses expat, for instance Apache::AxKit perl module.

Not a php problem -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 06:01:28 2024 UTC