[ 
https://issues.apache.org/jira/browse/MESOS-484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Hindman resolved MESOS-484.
------------------------------------

    Resolution: Fixed

https://git-wip-us.apache.org/repos/asf?p=incubator-mesos.git;a=commit;h=f122e613dfa9fa599807e35d94c087f1749dc1aa
                
> Latest ZooKeeperState.cpp doesn't compile on Mountain Lion
> ----------------------------------------------------------
>
>                 Key: MESOS-484
>                 URL: https://issues.apache.org/jira/browse/MESOS-484
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.13.0
>            Reporter: Thomas Marshall
>            Assignee: Benjamin Hindman
>             Fix For: 0.13.0
>
>
> 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.

--
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

Reply via email to