Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 92764 invoked from network); 9 Oct 2007 04:39:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2007 04:39:50 -0000 Received: (qmail 85662 invoked by uid 500); 9 Oct 2007 04:39:37 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 85624 invoked by uid 500); 9 Oct 2007 04:39:37 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 85615 invoked by uid 99); 9 Oct 2007 04:39:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2007 21:39:37 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2007 04:39:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D981B714201 for ; Mon, 8 Oct 2007 21:38:50 -0700 (PDT) Message-ID: <20837547.1191904730888.JavaMail.jira@brutus> Date: Mon, 8 Oct 2007 21:38:50 -0700 (PDT) From: "Arun C Murthy (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-2009) configure script for compiling hadoop native doesn't set lzo lib name correctly In-Reply-To: <13659683.1191876770805.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533260 ] Arun C Murthy commented on HADOOP-2009: --------------------------------------- Joydeep, I don't have access to an amd64-fedora box, could you please try this and let me know? {noformat} $ echo 'int main(int argc, char **argv){return 0;}' > conftest.c $ gcc -o conftest conftest.c -llzo2 $ objdump -p conftest | grep NEEDED {noformat} on my system I get: {noformat} $ objdump -p conftest | grep NEEDED NEEDED liblzo2.so.2 NEEDED libc.so.6 {noformat} > configure script for compiling hadoop native doesn't set lzo lib name correctly > ------------------------------------------------------------------------------- > > Key: HADOOP-2009 > URL: https://issues.apache.org/jira/browse/HADOOP-2009 > Project: Hadoop > Issue Type: Bug > Components: build > Affects Versions: 0.13.1 > Environment: Fedora, amd64 > Reporter: Joydeep Sen Sarma > Assignee: Arun C Murthy > > Looks like this was already reported (but not resolved on the the list): http://tinyurl.com/2rwu6x > I would like to compile libhadoop on amd64/Fedora and everything seems kosher until I hit this compile error: > [exec] /home/jssarma/fbprojects/hadoop-0.13.1/src/native/src/org/apache/hadoop/io/compress/lzo/LzoCompressor.c:116: error: syntax error before ',' token > the line in question is: > // Load liblzo2.so > liblzo2 = dlopen(HADOOP_LZO_LIBRARY, RTLD_LAZY | RTLD_GLOBAL); > seems like this is being set by: > configure:#define HADOOP_LZO_LIBRARY ${ac_cv_libname_lzo2} > I tried executing the relevant part of configure by hand: > if test -z "`${CC} -o conftest conftest.c -llzo2 2>&1`"; then > if test ! -z "`which objdump`"; then > ac_cv_libname_lzo2="`objdump -p conftest | grep NEEDED | grep lzo2 | sed 's/\W*NEEDED\W*\(.*\)\W*$/\ > \"\1\"/'`" > This is not working on my system, since: > > objdump -p conftest | grep NEEDED > NEEDED libc.so.6 > So that would explain the compile error. Editing the configure script manually for now works. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.