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 D2F6D9A1D for ; Tue, 8 May 2012 05:14:28 +0000 (UTC) Received: (qmail 25253 invoked by uid 500); 8 May 2012 05:14:27 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 25085 invoked by uid 500); 8 May 2012 05:14:26 -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 25053 invoked by uid 99); 8 May 2012 05:14:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 05:14:26 +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; Tue, 08 May 2012 05:14:25 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E0593439381 for ; Tue, 8 May 2012 05:14:04 +0000 (UTC) Date: Tue, 8 May 2012 05:14:04 +0000 (UTC) From: "Trevor Robinson (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <186996425.37580.1336454044962.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1384214217.21609.1322566180308.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7868?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trevor Robinson updated HADOOP-7868: ------------------------------------ Attachment: HADOOP-7868-portable.patch This patch fixes the issue using the approach suggested by Daryn: it outputs configure test code that makes use of the library being detected for both zlib and snappy. > 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-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