Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-643

xalanc fails to compile with -Wl,--as-needed

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      Gentoo Linux

      Description

      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'

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              betelgeuse Petteri Räty

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment