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

Build fails with non-Sun JREs due to different pathing to the operating system architecture shared libraries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.0, 0.20.1, 0.20.2, 0.21.0
    • Fix Version/s: 1.0.3, 2.0.0-alpha
    • Component/s: None
    • Labels:
      None
    • Environment:

      SLES 10, IBM Java 6

      Description

      The src/native/configure script used to build the native libraries has an environment variable called JNI_LDFLAGS which is set as follows:

      JNI_LDFLAGS="-L$JAVA_HOME/jre/lib/$OS_ARCH/server"

      This pathing convention to the shared libraries for the operating system architecture is unique to Oracle/Sun Java and thus on other flavors of Java the path will not exist and will result in a build failure with the following exception:

      [exec] gcc -shared ../src/org/apache/hadoop/io/compress/zlib/.libs/ZlibCompressor.o ../src/org/apache/hadoop/io/compress/zlib/.libs/ZlibDecompressor.o -L/home/hadoop/Java-Versions/ibm-java-i386-60/jre/lib/x86/server -ljvm -ldl -m32 -m32 -Wl,-soname -Wl,libhadoop.so.1 -o .libs/libhadoop.so.1.0.0
      [exec] /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld: cannot find -ljvm
      [exec] collect2: ld returned 1 exit status

        Attachments

        1. 6924-1.patch
          0.6 kB
          Devaraj Das
        2. 6924-2.branch-1.patch
          0.9 kB
          Devaraj Das
        3. 6924-2.patch
          0.6 kB
          Devaraj Das
        4. apjvmlibdir.m4
          0.7 kB
          Allen Wittenauer
        5. HADOOP-6924.patch
          0.5 kB
          Stephen Watt
        6. HADOOP-6924-v2.patch
          0.5 kB
          Guillermo Cabrera

          Issue Links

            Activity

              People

              • Assignee:
                devaraj Devaraj Das
                Reporter:
                wattsteve Stephen Watt
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: