mesos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Konwinski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-344) --disable-java still uses java headers during make check
Date Mon, 03 Jun 2013 02:12:20 GMT

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

Andy Konwinski commented on MESOS-344:
--------------------------------------

Just for future reference for folks who find this page by googling for that error with configure,
to resolve these java issues, you need to update to java 1.7. At least it worked for me on
OS X Mountain Lion 10.8.3. I just used the vanilla Oracle installer for Java 7. Thanks a ton
to https://github.com/airbnb/chronos/blob/master/docs/FAQ.md where I found this answer.
                
> --disable-java still uses java headers during make check
> --------------------------------------------------------
>
>                 Key: MESOS-344
>                 URL: https://issues.apache.org/jira/browse/MESOS-344
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Benjamin Mahler
>            Assignee: Benjamin Mahler
>
> Reported by Chris Mattman:
> I went ahead and tried to build it and started with ./configure on my Mac
> OS X 10.6.8:
> checking whether or not we can build with JNI... cc1plus: warnings being
> treated as errors
> conftest.cpp: In function 'int main(int, char**)':
> conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at
> /usr/local/jdk/include/jni.h:1937)
> conftest.cpp:7: warning: 'JNI_CreateJavaVM' is deprecated (declared at
> /usr/local/jdk/include/jni.h:1937)
> 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
> [chipotle:~/tmp/apache-mesos-0.10.0-incubating/mesos-0.10.0] mattmann%
> Running ./configure --disable-java got me past the config step, and then I
> ran make:
> writing build/bdist.macosx-10.6-universal/egg/EGG-INFO/native_libs.txt
> zip_safe flag not set; analyzing archive contents...
> creating dist
> creating 'dist/mesos-0.10.0-py2.6-macosx-10.6-universal.egg' and adding
> 'build/bdist.macosx-10.6-universal/egg' to it
> removing 'build/bdist.macosx-10.6-universal/egg' (and everything under it)
> Making all in ec2
> make[1]: Nothing to be done for `all'.
> Making all in hadoop
> make[1]: Nothing to be done for `all'.
> [chipotle:~/tmp/apache-mesos-0.10.0-incubating/mesos-0.10.0] mattmann%
> Worked great!
> I ran the test suite, and got this:
> ests-allocator_tests.o `test -f 'tests/allocator_tests.cpp' || echo
> './'`tests/allocator_tests.cpp
> In file included from ./tests/base_zookeeper_test.hpp:30,
>                  from tests/allocator_tests.cpp:33:
> ./jvm/jvm.hpp:4:17: error: jni.h: No such file or directory
> In file included from ./tests/base_zookeeper_test.hpp:30,
>                  from tests/allocator_tests.cpp:33:
> ./jvm/jvm.hpp:94: error: expected Œ,¹ or Œ...¹ before Œid¹
> ./jvm/jvm.hpp:94: error: ISO C++ forbids declaration of ŒjmethodID¹ with
> no type
> ./jvm/jvm.hpp:97: error: ŒjmethodID¹ does not name a type
> ./jvm/jvm.hpp:158: error: expected Œ,¹ or Œ...¹ before Œid¹
> ./jvm/jvm.hpp:158: error: ISO C++ forbids declaration of ŒjmethodID¹ with
> no type
> ./jvm/jvm.hpp:161: error: ŒjmethodID¹ does not name a type
> ./jvm/jvm.hpp:175: error: expected Œ,¹ or Œ...¹ before Œid¹
> ./jvm/jvm.hpp:175: error: ISO C++ forbids declaration of ŒjfieldID¹ with
> no type
> ./jvm/jvm.hpp:178: error: ŒjfieldID¹ does not name a type
> ./jvm/jvm.hpp:197: error: ŒJNI_VERSION_1_1¹ was not declared in this scope
> ./jvm/jvm.hpp:198: error: ŒJNI_VERSION_1_2¹ was not declared in this scope
> ./jvm/jvm.hpp:199: error: ŒJNI_VERSION_1_4¹ was not declared in this scope
> ./jvm/jvm.hpp:200: error: ŒJNI_VERSION_1_6¹ was not declared in this scope
> ./jvm/jvm.hpp:224: error: Œjobject¹ does not name a type
> ./jvm/jvm.hpp:231: error: Œjobject¹ does not name a type
> ./jvm/jvm.hpp:234: error: expected Œ,¹ or Œ...¹ before Œreceiver¹
> ./jvm/jvm.hpp:234: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp:242: error: Œjobject¹ does not name a type
> ./jvm/jvm.hpp:243: error: expected Œ,¹ or Œ...¹ before Œobject¹
> ./jvm/jvm.hpp:243: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp:244: error: expected Œ,¹ or Œ...¹ before Œobject¹
> ./jvm/jvm.hpp:244: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp:247: error: Œjclass¹ does not name a type
> ./jvm/jvm.hpp:249: error: ŒjmethodID¹ does not name a type
> ./jvm/jvm.hpp:256: error: expected Œ,¹ or Œ...¹ before Œreceiver¹
> ./jvm/jvm.hpp:256: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp:259: error: expected Œ,¹ or Œ...¹ before Œid¹
> ./jvm/jvm.hpp:259: error: ISO C++ forbids declaration of ŒjmethodID¹ with
> no type
> ./jvm/jvm.hpp:265: error: ISO C++ forbids declaration of ŒJavaVM¹ with no
> type
> ./jvm/jvm.hpp:265: error: expected Œ;¹ before Œ*¹ token
> ./jvm/jvm.hpp:266: error: ISO C++ forbids declaration of ŒJNIEnv¹ with no
> type
> ./jvm/jvm.hpp:266: error: expected Œ;¹ before Œ*¹ token
> ./jvm/jvm.hpp:271: error: expected Œ,¹ or Œ...¹ before Œreceiver¹
> ./jvm/jvm.hpp:271: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp:275: error: expected Œ,¹ or Œ...¹ before Œreceiver¹
> ./jvm/jvm.hpp:275: error: ISO C++ forbids declaration of Œjobject¹ with no
> type
> ./jvm/jvm.hpp: In member function ŒT mesos::internal::Jvm::invoke(int)¹:
> ./jvm/jvm.hpp:278: error: Œmethod¹ was not declared in this scope
> ./jvm/jvm.hpp:279: error: Œreceiver¹ was not declared in this scope
> ./jvm/jvm.hpp: In member function ŒT
> mesos::internal::Jvm::invokeStatic(const mesos::internal::Jvm::JMethod&,
> ...)¹:
> ./jvm/jvm.hpp:294: error: Œconst class mesos::internal::Jvm::JMethod¹ has
> no member named Œid¹
> In file included from ./tests/base_zookeeper_test.hpp:32,
>                  from tests/allocator_tests.cpp:33:
> ./tests/zookeeper_server.hpp: At global scope:
> ./tests/zookeeper_server.hpp:74: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp:78: error: expected Œ,¹ or Œ...¹ before
> Œ_file¹
> ./tests/zookeeper_server.hpp:78: error: ISO C++ forbids declaration of
> Œjobject¹ with no type
> ./tests/zookeeper_server.hpp:94: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp:95: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp:96: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp:101: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp:103: error: Œjobject¹ does not name a type
> ./tests/zookeeper_server.hpp: In constructor
> Œmesos::internal::test::ZooKeeperServer::TemporaryDirectory::TemporaryDirec
> tory(mesos::internal::Jvm*, const std::string&, int)¹:
> ./tests/zookeeper_server.hpp:80: error: class
> Œmesos::internal::test::ZooKeeperServer::TemporaryDirectory¹ does not have
> any field named Œfile¹
> ./tests/zookeeper_server.hpp:80: error: Œ_file¹ was not declared in this
> scope
> ./tests/zookeeper_server.hpp: In destructor
> Œmesos::internal::test::ZooKeeperServer::TemporaryDirectory::~TemporaryDire
> ctory()¹:
> ./tests/zookeeper_server.hpp:84: error: Œfile¹ was not declared in this
> scope
> make[3]: *** [tests/mesos_tests-allocator_tests.o] Error 1
> make[2]: *** [check-am] Error 2
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message