Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-6855

5.34.21 build fails if system wide root installation is present in /usr

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.34/21
    • Fix Version/s: 6.04.00, 5.34/25
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Debian Wheezy, but potentially does not matter

      Description

      When having a system wide root installation (in this case an early 5.34 version) installed under /usr/, the library /usr/lib/libCore.so will cause subsequent build failures as -L/usr/lib is added to this command:

      g++ shared -Wl,-soname,libXMLParser.so -m64 -O2 -Wl,no-undefined -Wl,-as-needed -o lib/libXMLParser.so io/xmlparser/src/TDOMParser.o io/xmlparser/src/TSAXParser.o io/xmlparser/src/TXMLAttr.o io/xmlparser/src/TXMLDocument.o io/xmlparser/src/TXMLNode.o io/xmlparser/src/TXMLParser.o io/xmlparser/src/G__XMLParser.o -L/usr/lib -lxml2 -Llib -lCore -lCint -ldl

      removing -L/usr/lib fixes this problem and the build then proceeds until completion/. As libxml2 is in a system location (and should thus be found via the system's search paths) it should never be necessary to add -L/usr/lib to any of the build/link commands. Would it be possible to remove this in future releases if libxml2 is in a standard system location?

      Cheers

      Carsten

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              99d948817ba274d9372c carsten.aulbert@aei.mpg.de (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: