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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • CurrentCVS
    • XalanC
    • None
    • 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

        1. as-needed.patch
          4 kB
          Petteri Räty

        Activity

          People

            Unassigned Unassigned
            betelgeuse Petteri Räty
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: