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 Bug
    • Status: Closed
    • Priority: Major 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

      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

          Colin Patrick McCabe made changes -
          Link This issue relates to HADOOP-8187 [ HADOOP-8187 ]
          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Arun C Murthy made changes -
          Fix Version/s 2.0.0 [ 12320352 ]
          Fix Version/s 0.23.3 [ 12320059 ]
          Devaraj Das made changes -
          Fix Version/s 0.23.3 [ 12320059 ]
          Fix Version/s 1.0.3 [ 12320248 ]
          Devaraj Das made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Assignee Devaraj Das [ devaraj ]
          Resolution Fixed [ 1 ]
          Devaraj Das made changes -
          Attachment 6924-2.branch-1.patch [ 12518961 ]
          Devaraj Das made changes -
          Attachment 6924-2.patch [ 12518938 ]
          Allen Wittenauer made changes -
          Attachment apjvmlibdir.m4 [ 12518852 ]
          Devaraj Das made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Devaraj Das made changes -
          Attachment 6924-1.patch [ 12518497 ]
          Robert Joseph Evans made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Eli Collins made changes -
          Link This issue is related to HADOOP-6941 [ HADOOP-6941 ]
          Nigel Daley made changes -
          Fix Version/s 0.22.0 [ 12314296 ]
          Fix Version/s 0.20.3 [ 12314812 ]
          Fix Version/s 0.21.1 [ 12315270 ]
          Guillermo Cabrera made changes -
          Attachment HADOOP-6924-v2.patch [ 12459274 ]
          Stephen Watt made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Stephen Watt made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Stephen Watt made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Stephen Watt made changes -
          Attachment HADOOP-6924.patch [ 12453450 ]
          Stephen Watt made changes -
          Field Original Value New Value
          Fix Version/s 0.21.1 [ 12315270 ]
          Fix Version/s 0.22.0 [ 12314296 ]
          Affects Version/s 0.21.0 [ 12313563 ]
          Stephen Watt created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development