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

Till Toenshoff updated MESOS-3316:
----------------------------------
    Assignee: Yan Xu

> provisioner_backend_tests.cpp breaks the build on OSX
> -----------------------------------------------------
>
>                 Key: MESOS-3316
>                 URL: https://issues.apache.org/jira/browse/MESOS-3316
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Alexander Rojas
>            Assignee: Yan Xu
>            Priority: Blocker
>              Labels: build-failure
>
> The test file makes an include of {{linux/fs.hpp}} which in turn includes 
> {{mntent.h}} which is only available in linux.
> Building in OSX leads to:
> {noformat}
> g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" 
> -DPACKAGE_VERSION=\"0.25.0\" -DPACKAGE_STRING=\"mesos\ 0.25.0\" 
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" 
> -DVERSION=\"0.25.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_PRIO_INHERIT=1 
> -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_APR_POOLS_H=1 
> -DHAVE_LIBAPR_1=1 -DHAVE_SVN_VERSION_H=1 -DHAVE_LIBSVN_SUBR_1=1 
> -DHAVE_SVN_DELTA_H=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 -I. 
> -I../../src   -Wall -Werror -DLIBDIR=\"/usr/local/lib\" 
> -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" 
> -DPKGDATADIR=\"/usr/local/share/mesos\" -I../../include 
> -I../../3rdparty/libprocess/include 
> -I../../3rdparty/libprocess/3rdparty/stout/include -I../include 
> -I../include/mesos -I../3rdparty/libprocess/3rdparty/boost-1.53.0 
> -I../3rdparty/libprocess/3rdparty/picojson-4f93734 
> -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src 
> -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include 
> -I../3rdparty/zookeeper-3.4.5/src/c/generated 
> -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src 
> -DSOURCE_DIR=\"/Users/alexander/Documents/workspace/pmesos/build/..\" 
> -DBUILD_DIR=\"/Users/alexander/Documents/workspace/pmesos/build\" 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/gtest/include 
> -I../3rdparty/libprocess/3rdparty/gmock-1.7.0/include  
> -I/usr/local/opt/openssl/include -I/usr/local/opt/libevent/include 
> -I/usr/local/opt/subversion/include/subversion-1 -I/usr/include/apr-1 
> -I/usr/include/apr-1.0  -D_THREAD_SAFE -pthread -g -O0 -std=c++11 
> -stdlib=libc++ -DGTEST_USE_OWN_TR1_TUPLE=1 -DGTEST_LANG_CXX11 -MT 
> tests/containerizer/mesos_tests-provisioner_backend_tests.o -MD -MP -MF 
> tests/containerizer/.deps/mesos_tests-provisioner_backend_tests.Tpo -c -o 
> tests/containerizer/mesos_tests-provisioner_backend_tests.o `test -f 
> 'tests/containerizer/provisioner_backend_tests.cpp' || echo 
> '../../src/'`tests/containerizer/provisioner_backend_tests.cpp
> make[3]: Nothing to be done for `../../src/tests/balloon_framework_test.sh'.
> make[3]: Nothing to be done for 
> `../../src/tests/event_call_framework_test.sh'.
> make[3]: Nothing to be done for `../../src/tests/java_exception_test.sh'.
> make[3]: Nothing to be done for `../../src/tests/java_framework_test.sh'.
> make[3]: Nothing to be done for `../../src/tests/java_log_test.sh'.
> make[3]: Nothing to be done for 
> `../../src/tests/no_executor_framework_test.sh'.
> make[3]: Nothing to be done for 
> `../../src/tests/persistent_volume_framework_test.sh'.
> make[3]: Nothing to be done for `../../src/tests/python_framework_test.sh'.
> make[3]: Nothing to be done for `../../src/tests/test_framework_test.sh'.
> In file included from 
> ../../src/tests/containerizer/provisioner_backend_tests.cpp:28:
> ../../src/linux/fs.hpp:23:10: fatal error: 'mntent.h' file not found
> #include <mntent.h>
>          ^
> 1 error generated.
> make[3]: *** [tests/containerizer/mesos_tests-provisioner_backend_tests.o] 
> Error 1
> make[2]: *** [check-am] Error 2
> make[1]: *** [check] Error 2
> make: *** [check-recursive] Error 1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to