Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-7868

Hadoop native fails to compile when default linker option is -Wl,--as-needed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0-alpha
    • 1.2.0, 2.0.2-alpha, 0.23.6
    • native
    • None
    • Ubuntu Precise, Ubuntu Oneiric, Debian Unstable

    • Reviewed

    Description

      Recent releases of Ubuntu and Debian have switched to using --as-needed as default when linking binaries.

      As a result the AC_COMPUTE_NEEDED_DSO fails to find the required DSO names during execution of configure resulting in a build failure.

      Explicitly using "Wl,-no-as-needed" in this macro when required resolves this issue.

      See http://wiki.debian.org/ToolChain/DSOLinking for a few more details

      Attachments

        1. HADOOP-7868-portable.patch
          3 kB
          Trevor Robinson
        2. hadoop-7868-b1.txt
          3 kB
          Eli Collins
        3. HADOOP-7868.patch
          2 kB
          James Page

        Issue Links

          Activity

            People

              scurrilous Trevor Robinson
              javacruft James Page
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: