Jie Yu created MESOS-2410:
-----------------------------
Summary: Broken build on OS X 10.8.5 caused by mac_tests in stout.
Key: MESOS-2410
URL: https://issues.apache.org/jira/browse/MESOS-2410
Project: Mesos
Issue Type: Bug
Reporter: Jie Yu
{noformat}
In file included from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/mac.hpp:32:0,
from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/tests/mac_tests.cpp:11:
/usr/include/net/if.h:306:19: error: field 'ifru_addr' has incomplete type
struct sockaddr ifru_addr;
^
/usr/include/net/if.h:307:19: error: field 'ifru_dstaddr' has incomplete type
struct sockaddr ifru_dstaddr;
^
/usr/include/net/if.h:308:19: error: field 'ifru_broadaddr' has incomplete type
struct sockaddr ifru_broadaddr;
^
/usr/include/net/if.h:352:18: error: field 'ifra_addr' has incomplete type
struct sockaddr ifra_addr;
^
/usr/include/net/if.h:353:18: error: field 'ifra_broadaddr' has incomplete type
struct sockaddr ifra_broadaddr;
^
/usr/include/net/if.h:354:18: error: field 'ifra_mask' has incomplete type
struct sockaddr ifra_mask;
^
/usr/include/net/if.h:437:26: error: field 'addr' has incomplete type
struct sockaddr_storage addr; /* in/out */
^
/usr/include/net/if.h:438:26: error: field 'dstaddr' has incomplete type
struct sockaddr_storage dstaddr; /* out */
^
In file included from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/tests/mac_tests.cpp:11:0:
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/mac.hpp:
In function 'Result<net::MAC> net::mac(const string&)':
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/mac.hpp:171:49:
error: invalid use of incomplete type 'struct sockaddr'
if (ifa->ifa_addr != NULL && ifa->ifa_addr->sa_family == AF_LINK) {
^
In file included from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/mac.hpp:18:0,
from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/tests/mac_tests.cpp:11:
/usr/include/ifaddrs.h:37:9: error: forward declaration of 'struct sockaddr'
struct sockaddr *ifa_addr;
^
In file included from
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/tests/mac_tests.cpp:11:0:
../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include/stout/mac.hpp:171:64:
error: 'AF_LINK' was not declared in this scope
if (ifa->ifa_addr != NULL && ifa->ifa_addr->sa_family == AF_LINK) {
^
mv -f .deps/stout_tests-json_tests.Tpo .deps/stout_tests-json_tests.Po
g++-4.8 -DPACKAGE_NAME=\"libprocess\" -DPACKAGE_TARNAME=\"libprocess\"
-DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"libprocess\ 0.0.1\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"libprocess\" -DV
ERSION=\"0.0.1\" -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_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_LIBCURL=1 -DHAVE_PTHREAD=1 -DHAVE_LIBZ=
1 -DHAVE_LIBDL=1 -I. -I../../../../../../mesos/3rdparty/libprocess/3rdparty
-I../../../../../../mesos/3rdparty/libprocess/3rdparty/stout/include
-Iprotobuf-2.5.0/src -Igmock-1.6.0/gtest/include -Igmock-1.6.0/
include -Iboost-1.53.0 -Ipicojson-4f93734 -Iglog-0.3.3/src
-I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 -g1
-O0 -Wno-unused-local-typedefs -std=c++11 -DGTEST_USE_OWN_TR1_TUPLE=1 -MT
stout_tests-main.o -MD -MP -MF .deps/stout_tests-main.Tpo -c -o
stout_tests-main.o `test -f 'stout/tests/main.cpp' || echo
'../../../../../../mesos/3rdparty/libprocess/3rdparty/'`stout/tests/main.cpp
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)