Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E71AB98FF for ; Thu, 10 May 2012 06:16:41 +0000 (UTC) Received: (qmail 70531 invoked by uid 500); 10 May 2012 06:16:41 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 70453 invoked by uid 500); 10 May 2012 06:16:41 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 70421 invoked by uid 99); 10 May 2012 06:16:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 06:16:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 06:16:37 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 43BBF48FAD6 for ; Thu, 10 May 2012 06:16:16 +0000 (UTC) Date: Thu, 10 May 2012 06:16:16 +0000 (UTC) From: "Eli Collins (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1811369597.48288.1336630576422.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1384214217.21609.1322566180308.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HADOOP-7868) Hadoop native fails to compile when default linker option is -Wl,--as-needed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-7868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272123#comment-13272123 ] Eli Collins commented on HADOOP-7868: ------------------------------------- +1 looks good. I tested the native build with this patch on Ubuntu 12.04, 10.10 and Centos 5.5. > 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 > Assignee: Trevor Robinson > Attachments: HADOOP-7868-portable.patch, 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