[
https://issues.apache.org/jira/browse/XALANC-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232275#comment-13232275
]
Andy Tidball commented on XALANC-643:
-------------------------------------
I also ran into this problem, but on a default Ubuntu 12.04 (and 11.10) setup.
I would guess that Ubuntu is somehow using --as-needed by default because I'm
certainly not doing anything out of the ordinary on purpose. I don't know the
Linux dev environment well enough to know for sure, though. In any case, I
independently arrived at the same fix that Petteri Raty has already submitted a
patch for. If it doesn't still apply cleanly to trunk, it should be trivial to
update.
> xalanc fails to compile with -Wl,--as-needed
> --------------------------------------------
>
> Key: XALANC-643
> URL: https://issues.apache.org/jira/browse/XALANC-643
> Project: XalanC
> Issue Type: Bug
> Components: XalanC
> Affects Versions: 1.10
> Environment: Gentoo Linux
> Reporter: Petteri Räty
> Fix For: CurrentCVS
>
> Attachments: as-needed.patch
>
>
> For background on as-needed see:
> http://www.gentoo.org/proj/en/qa/asneeded.xml
> Basically the linking order in Makefiles is wrong and results in unknown
> symbols:
> ../../../../obj/MsgCreator.o:(.data.rel.ro._ZTVN11xercesc_2_713XMLAttDefListE[vtable
> for xercesc_2_7::XMLAttDefList]+0x18): undefined reference to
> `xercesc_2_7::XMLAttDefList::getProtoType() const'
> ../../../../obj/MsgCreator.o:(.data.rel.ro._ZTIN11xercesc_2_713DTDEntityDeclE[typeinfo
> for xercesc_2_7::DTDEntityDecl]+0x8): undefined reference to `typeinfo for
> xercesc_2_7::XMLEntityDecl'
> ../../../../obj/MsgCreator.o:(.data.DW.ref._ZTIN11xercesc_2_712XMLExceptionE[DW.ref._ZTIN11xercesc_2_712XMLExceptionE]+0x0):
> undefined reference to `typeinfo for xercesc_2_7::XMLException'
> ../../../../obj/SAX2Handler.o: In function `SAX2Handler::setLocale(char
> const*)':
> SAX2Handler.cpp:(.text+0xa6): undefined reference to
> `xercesc_2_7::XMLString::release(unsigned short**)'
> SAX2Handler.cpp:(.text+0xb2): undefined reference to
> `xercesc_2_7::XMLString::transcode(char const*)'
> ../../../../obj/SAX2Handler.o: In function
> `SAX2Handler::printToIndexFile(char const**)':
> SAX2Handler.cpp:(.text+0xee): undefined reference to
> `xercesc_2_7::XMLString::stringLen(char const*)'
> ../../../../obj/SAX2Handler.o: In function
> `SAX2Handler::startElement(unsigned short const*, unsigned short const*,
> unsigned short const*, xercesc_2_7::Attributes const&)':
> SAX2Handler.cpp:(.text+0x1bd): undefined reference to
> `xercesc_2_7::XMLString::compareString(unsigned short const*, unsigned short
> const*)'
> SAX2Handler.cpp:(.text+0x22d): undefined reference to
> `xercesc_2_7::XMLString::compareString(unsigned short const*, unsigned short
> const*)'
> SAX2Handler.cpp:(.text+0x2a8): undefined reference to
> `xercesc_2_7::XMLString::stringLen(char const*)'
> ../../../../obj/SAX2Handler.o: In function
> `SAX2Handler::fatalError(xercesc_2_7::SAXParseException const&)':
> SAX2Handler.cpp:(.text+0x374): undefined reference to
> `xercesc_2_7::XMLString::transcode(unsigned short const*)'
> SAX2Handler.cpp:(.text+0x380): undefined reference to
> `xercesc_2_7::SAXParseException::getColumnNumber() const'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]