[ 
https://issues.apache.org/jira/browse/MESOS-2216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14635024#comment-14635024
 ] 

Tony Reix commented on MESOS-2216:
----------------------------------

Hi
Back from vacations.
I've re-extracted the sources from a tar.gz file for applying the patch.

 2033  mv mesos-0.22.1 mesos-0.22.1.old
 2034  tar zxf mesos-0.22.1.tar.gz
 2036  cd mesos-0.22.1/
 2037  ./bootstrap
 2038  mkdir build
 2039  cd build
 2040  ../configure
 2041  java -version

reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build $ uname -a
Linux b017569-ux 3.13.0-54-generic #91-Ubuntu SMP Tue May 26 19:15:38 UTC 2015 
i686 i686 i686 GNU/Linux


reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build $ ./configure
....
checking for sasl_done in -lsasl2... yes
configure: error: failed to determine linker flags for using Java (bad 
JAVA_HOME or missing support for your architecture?)

reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build $ java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build pxi3270_27sr3-20150415_01(SR3))
IBM J9 VM (build 2.7, JRE 1.7.0 Linux x86-32 20150407_243189 (JIT enabled, AOT 
enabled)
J9VM - R27_Java727_SR3_20150407_1831_B243189
JIT  - tr.r13.java_20150406_89182
GC   - R27_Java727_SR3_20150407_1831_B243189
J9CL - 20150407_243189)
JCL - 20150414_01 based on Oracle 7u79-b14
reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build$ 

reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build$ echo $JAVA_HOME
/usr/lib/jvm/ibm-java-i386-71

reixt@b017569-ux:~/lop/MESOS/mesos-0.22.1/build$ ll 
/usr/lib/jvm/ibm-java-i386-71
total 10872
drwxr-xr-x 10 root root     4096 avril 15 09:44 ./
drwxr-xr-x 11 root root     4096 juin  30 15:37 ../
drwxr-xr-x  2 root root     4096 avril 15 09:44 bin/
-rw-r--r--  1 root root      690 avril 15 09:44 copyright
drwxr-xr-x 14 root root     4096 avril 15 09:44 demo/
drwxr-xr-x 24 root root     4096 avril 15 09:44 docs/
drwxr-xr-x  3 root root     4096 avril 15 09:44 include/
drwxr-xr-x  6 root root     4096 avril 15 09:44 jre/
drwxr-xr-x  3 root root     4096 avril 15 09:44 lib/
-rw-r--r--  1 root root    56806 avril 15 09:44 license_en.txt
-rw-r--r--  1 root root   235722 avril 15 09:44 notices.txt
drwxr-xr-x  3 root root     4096 avril 15 09:44 properties/
-rw-r--r--  1 root root      825 avril 15 09:44 readme.txt
-rw-r--r--  1 root root      101 avril 15 09:44 release
drwxr-xr-x  8 root root     4096 avril 15 09:44 sample/
-rw-r--r--  1 root root 10783367 avril 15 09:44 src.zip

That patch does not seem to work.

Would it be possible for you to download the IBM JVM and try in your 
environment ?
http://www.ibm.com/developerworks/java/jdk/linux/download.html

> The "configure" phase breaks with the IBM JVM.
> ----------------------------------------------
>
>                 Key: MESOS-2216
>                 URL: https://issues.apache.org/jira/browse/MESOS-2216
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.20.1, 1.0.0
>         Environment: Ubuntu / x86_64
>            Reporter: Tony Reix
>         Attachments: MESOS-2216_1.patch
>
>
> ./configure does not work with IBM JVM, since it looks for a directory:
>    /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server       x86_64
>    /usr/lib/jvm/ibm-java-ppc64le-71/jre/lib/ppc64le/server    PPC64 LE
> that does not exist for the IBM JVM.
> Though this directory does exist for Oracle JVM and Open JDK:
>    /usr/lib/jvm/jdk1.7.0_71/jre/lib/amd64/server                  Oracle JVM
>    /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/lib/amd64/server     OpenJDK
> However, the files:
>   libjsig.so
>   libjvm.so   (3 versions)
> do exist for IBM JVM.
> Anyway, creating the server directory and copying the files (tried with the 3 
> versions of libjvm.so) does not fix the issue:
> checking whether or not we can build with JNI... 
> /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server/libjvm.so: undefined 
> reference to `dlopen'
> /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server/libjvm.so: undefined 
> reference to `dlclose'
> /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server/libjvm.so: undefined 
> reference to `dlerror'
> /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server/libjvm.so: undefined 
> reference to `dlsym'
> /usr/lib/jvm/ibm-java-x86_64-71/jre/lib/amd64/server/libjvm.so: undefined 
> reference to `dladdr'
> Something (dlopen, dlclose, dlerror, dlsym, dladdr) is missing in IBM JVM.
> So, either the configure step relies on a feature that is not in the Java 
> standard but only in the Oracle JVM and OpenJDK, or the IBM JVM lacks part of 
> the Java standard.
> I'm not an expert about this. So, I'd like Mesos people to experiment with 
> IBM JVM. Maybe there is another solution for this step of the Mesos configure 
> that would work with all 3 JVMs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to