Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.13.0
-
None
-
None
Description
I get the following compile error when attempting to build the latest master on OSX Mountain Lion:
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.13.0\" -DPACKAGE_STRING=\"mesos\ 0.13.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.13.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DMESOS_HAS_JAVA=1 -DMESOS_HAS_PYTHON=1 -DHAVE_LIBZ=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCURL=1 -I. -I../../src -Wall -Werror -DMESOS_WEBUI_DIR=\"/usr/local/share/mesos/webui\" -DMESOS_LIBEXECDIR=\"/usr/local/libexec/mesos\" -I../../include -I../../third_party/libprocess/include -I../../third_party/libprocess/third_party/stout/include -I../include -I../third_party/libprocess/third_party/boost-1.53.0 -I../third_party/libprocess/third_party/protobuf-2.4.1/src -I../third_party/libprocess/third_party/glog-0.3.1/src -I../third_party/zookeeper-3.3.4/src/c/include -I../third_party/zookeeper-3.3.4/src/c/generated -I/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include/darwin -I../../src/java/jni -Ijava/jni -D_THREAD_SAFE -g -MT java/jni/libjava_la-org_apache_mesos_state_ZooKeeperState.lo -MD -MP -MF java/jni/.deps/libjava_la-org_apache_mesos_state_ZooKeeperState.Tpo -c -o java/jni/libjava_la-org_apache_mesos_state_ZooKeeperState.lo `test -f 'java/jni/org_apache_mesos_state_ZooKeeperState.cpp' || echo '../../src/'`java/jni/org_apache_mesos_state_ZooKeeperState.cpp
libtool: compile: g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.13.0\" "-DPACKAGE_STRING=\"mesos 0.13.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.13.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DMESOS_HAS_JAVA=1 -DMESOS_HAS_PYTHON=1 -DHAVE_LIBZ=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCURL=1 -I. -I../../src -Wall -Werror -DMESOS_WEBUI_DIR=\"/usr/local/share/mesos/webui\" -DMESOS_LIBEXECDIR=\"/usr/local/libexec/mesos\" -I../../include -I../../third_party/libprocess/include -I../../third_party/libprocess/third_party/stout/include -I../include -I../third_party/libprocess/third_party/boost-1.53.0 -I../third_party/libprocess/third_party/protobuf-2.4.1/src -I../third_party/libprocess/third_party/glog-0.3.1/src -I../third_party/zookeeper-3.3.4/src/c/include -I../third_party/zookeeper-3.3.4/src/c/generated -I/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/include/darwin -I../../src/java/jni -Ijava/jni -D_THREAD_SAFE -g -MT java/jni/libjava_la-org_apache_mesos_state_ZooKeeperState.lo -MD -MP -MF java/jni/.deps/libjava_la-org_apache_mesos_state_ZooKeeperState.Tpo -c ../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp -fno-common -DPIC -o java/jni/.libs/libjava_la-org_apache_mesos_state_ZooKeeperState.o
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp: In function 'jobject* Java_org_apache_mesos_state_ZooKeeperState_1_1expunge_1get(JNIEnv*, _jobject*, jlong)':
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:613: error: expected unqualified-id before numeric constant
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:614: error: invalid conversion from 'int' to '_jfieldID*'
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:614: error: initializing argument 2 of 'jobject* JNIEnv::GetStaticObjectField(_jclass*, _jfieldID*)'
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:618: error: expected unqualified-id before numeric constant
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp: In function 'jobject* Java_org_apache_mesos_state_ZooKeeperState_1_1expunge_1get_1timeout(JNIEnv*, _jobject*, jlong, jlong, _jobject*)':
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:657: error: expected unqualified-id before numeric constant
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:658: error: invalid conversion from 'int' to '_jfieldID*'
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:658: error: initializing argument 2 of 'jobject* JNIEnv::GetStaticObjectField(_jclass*, _jfieldID*)'
../../src/java/jni/org_apache_mesos_state_ZooKeeperState.cpp:662: error: expected unqualified-id before numeric constant
make[2]: *** [java/jni/libjava_la-org_apache_mesos_state_ZooKeeperState.lo] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1
The fix seems to be renaming the "TRUE" and "FALSE" variables, but I'm not sure what we want to rename them to.