hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daryn Sharp (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7868) Hadoop native fails to compile when default linker option is -Wl,--as-needed
Date Thu, 22 Mar 2012 22:46:23 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236133#comment-13236133
] 

Daryn Sharp commented on HADOOP-7868:
-------------------------------------

Yes, linkers will error if the flag isn't supported.  The problem is really in the library
check function, not the linker.  Other open source packages typically compile a test program
that:
* includes a header for the library
* externs a function or variable from the library
* main tries to reference/call the extern-ed thing

I think that's the better fix, versus trying to stop the compiler from doing the right thing.
                
> Hadoop native fails to compile when default linker option is -Wl,--as-needed
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-7868
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7868
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native
>    Affects Versions: 0.20.205.0, 1.0.0, 0.23.0
>         Environment: Ubuntu Precise, Ubuntu Oneiric, Debian Unstable
>            Reporter: James Page
>         Attachments: HADOOP-7868.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message