You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Ben Mahler <be...@gmail.com> on 2013/06/22 02:04:17 UTC
Review Request: Improved the configure output when deprecated headers are
present on OS X.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12045/
-----------------------------------------------------------
Review request for mesos, Benjamin Hindman and Vinod Kone.
Description
-------
This has been tripping up a lot of users!
This addresses bug MESOS-346.
https://issues.apache.org/jira/browse/MESOS-346
Diffs
-----
configure.ac 8b6d74fd78613965340ecff71bb933c9c4d24e9e
Diff: https://reviews.apache.org/r/12045/diff/
Testing
-------
JAVA_HOME=BLAH ../configure
...
checking whether or not we can build with JNI... conftest.cpp:1:17: error: jni.h: No such file or directory
conftest.cpp: In function 'int main(int, char**)':
conftest.cpp:4: error: 'JNIEnv' was not declared in this scope
conftest.cpp:4: error: 'env' was not declared in this scope
conftest.cpp:5: error: 'JavaVM' was not declared in this scope
conftest.cpp:5: error: 'jvm' was not declared in this scope
conftest.cpp:6: error: 'JavaVMInitArgs' was not declared in this scope
conftest.cpp:6: error: expected `;' before 'vmArgs'
conftest.cpp:7: error: 'vmArgs' was not declared in this scope
conftest.cpp:7: error: 'JNI_CreateJavaVM' was not declared in this scope
cc1plus: warnings being treated as errors
conftest.cpp: In function 'int main(int, char**)':
conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
configure: error: failed to build with JNI
-------------------------------------------------------------------
It appears we were unable to compile against the JNI. This is most
likely due to one of the following issues:
1. You do not have a JDK installed on your system.
2. All JDKs installed on your system have deprecated JNI headers.
It is advised to install OpenJDK on your system, as the JDK that
ships with OS X has deprecated JNI headers.
-------------------------------------------------------------------
Thanks,
Ben Mahler
Re: Review Request: Improved the configure output when deprecated headers
are present on OS X.
Posted by Vinod Kone <vi...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12045/#review22343
-----------------------------------------------------------
Ship it!
- Vinod Kone
On June 22, 2013, 12:04 a.m., Ben Mahler wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12045/
> -----------------------------------------------------------
>
> (Updated June 22, 2013, 12:04 a.m.)
>
>
> Review request for mesos, Benjamin Hindman and Vinod Kone.
>
>
> Description
> -------
>
> This has been tripping up a lot of users!
>
>
> This addresses bug MESOS-346.
> https://issues.apache.org/jira/browse/MESOS-346
>
>
> Diffs
> -----
>
> configure.ac 8b6d74fd78613965340ecff71bb933c9c4d24e9e
>
> Diff: https://reviews.apache.org/r/12045/diff/
>
>
> Testing
> -------
>
> JAVA_HOME=BLAH ../configure
> ...
> checking whether or not we can build with JNI... conftest.cpp:1:17: error: jni.h: No such file or directory
> conftest.cpp: In function 'int main(int, char**)':
> conftest.cpp:4: error: 'JNIEnv' was not declared in this scope
> conftest.cpp:4: error: 'env' was not declared in this scope
> conftest.cpp:5: error: 'JavaVM' was not declared in this scope
> conftest.cpp:5: error: 'jvm' was not declared in this scope
> conftest.cpp:6: error: 'JavaVMInitArgs' was not declared in this scope
> conftest.cpp:6: error: expected `;' before 'vmArgs'
> conftest.cpp:7: error: 'vmArgs' was not declared in this scope
> conftest.cpp:7: error: 'JNI_CreateJavaVM' was not declared in this scope
> cc1plus: warnings being treated as errors
> conftest.cpp: In function 'int main(int, char**)':
> conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
> conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at /System/Library/Frameworks/JavaVM.framework/Headers/jni.h:1937)
> configure: error: failed to build with JNI
> -------------------------------------------------------------------
> It appears we were unable to compile against the JNI. This is most
> likely due to one of the following issues:
> 1. You do not have a JDK installed on your system.
> 2. All JDKs installed on your system have deprecated JNI headers.
> It is advised to install OpenJDK on your system, as the JDK that
> ships with OS X has deprecated JNI headers.
> -------------------------------------------------------------------
>
>
> Thanks,
>
> Ben Mahler
>
>