Hadoop Common
  1. Hadoop Common
  2. HADOOP-7868

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 2.0.0-alpha
    • Fix Version/s: 1.2.0, 2.0.2-alpha, 0.23.6
    • Component/s: native
    • Labels:
      None
    • Environment:

      Ubuntu Precise, Ubuntu Oneiric, Debian Unstable

    • Hadoop Flags:
      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

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Trevor Robinson
              Reporter:
              James Page
            • Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development