Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2009

configure script for compiling hadoop native doesn't set lzo lib name correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.13.1
    • None
    • build
    • None
    • Fedora, amd64

    Description

      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.

      Attachments

        Activity

          People

            acmurthy Arun Murthy
            jsensarma Joydeep Sen Sarma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: