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

Alexander Rukletsov updated MESOS-8262:
---------------------------------------
    Labels: build cmake  (was: build)

> CMake build with java enabled fails during linking step.
> --------------------------------------------------------
>
>                 Key: MESOS-8262
>                 URL: https://issues.apache.org/jira/browse/MESOS-8262
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.5.0
>         Environment: Mac OS 10.11.6
>            Reporter: Alexander Rukletsov
>              Labels: build, cmake
>
> I've enabled JAVA in cmake build and have run the complete build via {{ninja 
> check}}. Build failed with the following output:
> {noformat}
> [312/689] Linking CXX shared library src/libmesos-java.dylib
> FAILED: src/libmesos-java.dylib 
> : && /Library/Developer/CommandLineTools/usr/bin/c++ -std=c++11 
> -Wformat-security -fstack-protector-strong  -dynamiclib 
> -Wl,-headerpad_max_install_names  -o src/libmesos-java.dylib -install_name 
> @rpath/libmesos-java.dylib 
> src/CMakeFiles/mesos-java.dir/java/jni/convert.cpp.o 
> src/CMakeFiles/mesos-java.dir/java/jni/construct.cpp.o 
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_Log.cpp.o 
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_MesosExecutorDriver.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_MesosNativeLibrary.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_MesosSchedulerDriver.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_state_AbstractState.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_state_LevelDBState.cpp.o
>  src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_state_LogState.cpp.o 
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_state_Variable.cpp.o 
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_state_ZooKeeperState.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_v1_scheduler_V1Mesos.cpp.o
>  
> src/CMakeFiles/mesos-java.dir/java/jni/org_apache_mesos_v1_scheduler_V0Mesos.cpp.o
>  src/CMakeFiles/mesos-java.dir/jvm/jvm.cpp.o 
> src/CMakeFiles/mesos-java.dir/jvm/org/apache/log4j.cpp.o 
> src/CMakeFiles/mesos-java.dir/jvm/org/apache/zookeeper.cpp.o  
> -Wl,-rpath,/Users/alex/Projects/mesos.build/src 
> -Wl,-rpath,/Users/alex/Projects/mesos.build/3rdparty/libprocess/src 
> src/libmesos-protobufs.dylib 3rdparty/libprocess/src/libprocess.dylib 
> 3rdparty/zookeeper-3.4.8/src/zookeeper-3.4.8-build/libzookeeper.a -framework 
> JavaVM -framework JavaVM 
> 3rdparty/protobuf-3.5.0/src/protobuf-3.5.0-build/libprotobuf.dylib 
> /usr/local/opt/apr/libexec/lib/libapr-1.dylib /usr/lib/libcurl.dylib 
> 3rdparty/glog-0.3.3/src/glog-0.3.3-build/lib/libglog.dylib 
> /usr/lib/libz.dylib /usr/local/opt/subversion/lib/libsvn_delta-1.dylib 
> /usr/local/opt/subversion/lib/libsvn_diff-1.dylib 
> /usr/local/opt/subversion/lib/libsvn_subr-1.dylib 
> 3rdparty/http_parser-2.6.2/src/http_parser-2.6.2-build/libhttp_parser.a 
> 3rdparty/zookeeper-3.4.8/src/zookeeper-3.4.8-build/libhashtable.a && :
> Undefined symbols for architecture x86_64:
>   "mesos::MesosExecutorDriver::MesosExecutorDriver(mesos::Executor*)", 
> referenced from:
>       _Java_org_apache_mesos_MesosExecutorDriver_initialize in 
> org_apache_mesos_MesosExecutorDriver.cpp.o
> <...>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to