You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Ian Downes (JIRA)" <ji...@apache.org> on 2014/12/08 18:58:12 UTC

[jira] [Created] (MESOS-2181) Build failure - overloaded 'socket(int, __socket_type, int)' is ambiguous

Ian Downes created MESOS-2181:
---------------------------------

             Summary: Build failure - overloaded 'socket(int, __socket_type, int)' is ambiguous
                 Key: MESOS-2181
                 URL: https://issues.apache.org/jira/browse/MESOS-2181
             Project: Mesos
          Issue Type: Bug
    Affects Versions: 0.22.0
         Environment: Centos5
            Reporter: Ian Downes


{noformat}
...
DEBUG: libtool: compile:  g++ -DPACKAGE_NAME=\"libprocess\" -DPACKAGE_TARNAME=\"libprocess\" -DPACKAGE_VERSION=\"0.0.1\" "-DPACKAGE_STRING=\"libprocess 0.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libprocess\" -DVERSION=\"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 -I. -I./include -I./3rdparty/stout/include -I3rdparty/boost-1.53.0 -I3rdparty/libev-4.15 -I3rdparty/picojson-4f93734 -I3rdparty/glog-0.3.3/src -I3rdparty/ry-http-parser-1c3624a -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-unused-local-typedefs -std=c++11 -MT libprocess_la-latch.lo -MD -MP -MF .deps/libprocess_la-latch.Tpo -c src/latch.cpp  -fPIC -DPIC -o libprocess_la-latch.o
DEBUG: mv -f .deps/libprocess_la-libev.Tpo .deps/libprocess_la-libev.Plo
DEBUG: /bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DPACKAGE_NAME=\"libprocess\" -DPACKAGE_TARNAME=\"libprocess\" -DPACKAGE_VERSION=\"0.0.1\" -DPACKAGE_STRING=\"libprocess\ 0.0.1\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libprocess\" -DVERSION=\"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 -I.  -I./include -I./3rdparty/stout/include -I3rdparty/boost-1.53.0 -I3rdparty/libev-4.15 -I3rdparty/picojson-4f93734  -I3rdparty/glog-0.3.3/src -I3rdparty/ry-http-parser-1c3624a  -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-unused-local-typedefs -std=c++11 -MT libprocess_la-libev_poll.lo -MD -MP -MF .deps/libprocess_la-libev_poll.Tpo -c -o libprocess_la-libev_poll.lo `test -f 'src/libev_poll.cpp' || echo './'`src/libev_poll.cpp
DEBUG: libtool: compile:  g++ -DPACKAGE_NAME=\"libprocess\" -DPACKAGE_TARNAME=\"libprocess\" -DPACKAGE_VERSION=\"0.0.1\" "-DPACKAGE_STRING=\"libprocess 0.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libprocess\" -DVERSION=\"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 -I. -I./include -I./3rdparty/stout/include -I3rdparty/boost-1.53.0 -I3rdparty/libev-4.15 -I3rdparty/picojson-4f93734 -I3rdparty/glog-0.3.3/src -I3rdparty/ry-http-parser-1c3624a -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wno-unused-local-typedefs -std=c++11 -MT libprocess_la-libev_poll.lo -MD -MP -MF .deps/libprocess_la-libev_poll.Tpo -c src/libev_poll.cpp  -fPIC -DPIC -o libprocess_la-libev_poll.o
DEBUG: In file included from ./include/process/event.hpp:7:0,
DEBUG:                  from ./include/process/process.hpp:11,
DEBUG:                  from src/clock.cpp:10:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from ./include/process/node.hpp:4,
DEBUG:                  from ./include/process/pid.hpp:10,
DEBUG:                  from src/clock.cpp:9:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: In file included from ./include/process/event.hpp:7:0,
DEBUG:                  from ./include/process/process.hpp:11,
DEBUG:                  from src/latch.cpp:3:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from ./include/process/node.hpp:4,
DEBUG:                  from ./include/process/pid.hpp:10,
DEBUG:                  from ./include/process/latch.hpp:4,
DEBUG:                  from src/latch.cpp:2:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: In file included from ./include/process/event.hpp:7:0,
DEBUG:                  from ./include/process/process.hpp:11,
DEBUG:                  from ./include/process/help.hpp:8,
DEBUG:                  from src/help.cpp:19:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from ./include/process/node.hpp:4,
DEBUG:                  from ./include/process/pid.hpp:10,
DEBUG:                  from ./include/process/latch.hpp:4,
DEBUG:                  from ./include/process/future.hpp:23,
DEBUG:                  from ./include/process/help.hpp:6,
DEBUG:                  from src/help.cpp:19:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: In file included from ./include/process/event.hpp:7:0,
DEBUG:                  from ./include/process/process.hpp:11,
DEBUG:                  from src/io.cpp:7:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from ./include/process/node.hpp:4,
DEBUG:                  from ./include/process/pid.hpp:10,
DEBUG:                  from ./include/process/latch.hpp:4,
DEBUG:                  from ./include/process/future.hpp:23,
DEBUG:                  from src/io.cpp:5:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: In file included from src/http.cpp:13:0:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from src/http.cpp:1:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: In file included from src/clock.cpp:1:0:
DEBUG: src/clock.cpp: In static member function 'static void process::Clock::initialize(std::function<void(std::list<process::Timer>&&)>&&)':
DEBUG: 3rdparty/libev-4.15/ev.h:679:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:    ((ev_watcher *)(void *)(ev))->active  = \
DEBUG:                                ^
DEBUG: 3rdparty/libev-4.15/ev.h:711:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_async_init(ev,cb)                 do { ev_init ((ev), (cb)); ev_async_set ((ev)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:194:3: note: in expansion of macro 'ev_async_init'
DEBUG:    ev_async_init(&async_update_timer_watcher, handle_async_update_timer);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:680:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:    ((ev_watcher *)(void *)(ev))->pending = 0; \
DEBUG:                                ^
DEBUG: 3rdparty/libev-4.15/ev.h:711:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_async_init(ev,cb)                 do { ev_init ((ev), (cb)); ev_async_set ((ev)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:194:3: note: in expansion of macro 'ev_async_init'
DEBUG:    ev_async_init(&async_update_timer_watcher, handle_async_update_timer);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:723:77: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:  # define ev_set_priority(ev,pri)             (   (ev_watcher *)(void *)(ev))->priority = (pri)
DEBUG:                                                                              ^
DEBUG: 3rdparty/libev-4.15/ev.h:681:3: note: in expansion of macro 'ev_set_priority'
DEBUG:    ev_set_priority ((ev), 0);   \
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:711:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_async_init(ev,cb)                 do { ev_init ((ev), (cb)); ev_async_set ((ev)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:194:3: note: in expansion of macro 'ev_async_init'
DEBUG:    ev_async_init(&async_update_timer_watcher, handle_async_update_timer);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:679:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:    ((ev_watcher *)(void *)(ev))->active  = \
DEBUG:                                ^
DEBUG: 3rdparty/libev-4.15/ev.h:700:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_timer_init(ev,cb,after,repeat)    do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:197:3: note: in expansion of macro 'ev_timer_init'
DEBUG:    ev_timer_init(&timeouts_watcher, handle_timeouts, 0., 2100000.0);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:680:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:    ((ev_watcher *)(void *)(ev))->pending = 0; \
DEBUG:                                ^
DEBUG: 3rdparty/libev-4.15/ev.h:700:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_timer_init(ev,cb,after,repeat)    do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:197:3: note: in expansion of macro 'ev_timer_init'
DEBUG:    ev_timer_init(&timeouts_watcher, handle_timeouts, 0., 2100000.0);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:723:77: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:  # define ev_set_priority(ev,pri)             (   (ev_watcher *)(void *)(ev))->priority = (pri)
DEBUG:                                                                              ^
DEBUG: 3rdparty/libev-4.15/ev.h:681:3: note: in expansion of macro 'ev_set_priority'
DEBUG:    ev_set_priority ((ev), 0);   \
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:700:51: note: in expansion of macro 'ev_init'
DEBUG:  #define ev_timer_init(ev,cb,after,repeat)    do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0)
DEBUG:                                                    ^
DEBUG: src/clock.cpp:197:3: note: in expansion of macro 'ev_timer_init'
DEBUG:    ev_timer_init(&timeouts_watcher, handle_timeouts, 0., 2100000.0);
DEBUG:    ^
DEBUG: 3rdparty/libev-4.15/ev.h:686:76: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
DEBUG:  #define ev_timer_set(ev,after_,repeat_)      do { ((ev_watcher_time *)(ev))->at = (after_); (ev)->repeat = (repeat_); } while (0)
DEBUG:                                                                             ^
DEBUG: 3rdparty/libev-4.15/ev.h:700:73: note: in expansion of macro 'ev_timer_set'
DEBUG:  #define ev_timer_init(ev,cb,after,repeat)    do { ev_init ((ev), (cb)); ev_timer_set ((ev),(after),(repeat)); } while (0)
DEBUG:                                                                          ^
DEBUG: src/clock.cpp:197:3: note: in expansion of macro 'ev_timer_init'
DEBUG:    ev_timer_init(&timeouts_watcher, handle_timeouts, 0., 2100000.0);
DEBUG:    ^
DEBUG: make[4]: *** [libprocess_la-latch.lo] Error 1
DEBUG: make[4]: *** Waiting for unfinished jobs....
DEBUG: make[4]: *** [libprocess_la-clock.lo] Error 1
DEBUG: make[4]: *** [libprocess_la-help.lo] Error 1
DEBUG: In file included from ./include/process/event.hpp:7:0,
DEBUG:                  from ./include/process/process.hpp:11,
DEBUG:                  from src/libev_poll.cpp:4:
DEBUG: ./include/process/socket.hpp: In member function 'const process::Socket::Impl& process::Socket::Impl::create() const':
DEBUG: ./include/process/socket.hpp:167:51: error: call of overloaded 'socket(int, __socket_type, int)' is ambiguous
DEBUG:        Try<int> fd = socket(AF_INET, SOCK_STREAM, 0);
DEBUG:                                                    ^
DEBUG: ./include/process/socket.hpp:167:51: note: candidates are:
DEBUG: ./include/process/socket.hpp:22:17: note: Try<int> process::socket(int, int, int)
DEBUG:  inline Try<int> socket(int family, int type, int protocol)
DEBUG:                  ^
DEBUG: In file included from /usr/include/netinet/in.h:24:0,
DEBUG:                  from /usr/include/arpa/inet.h:23,
DEBUG:                  from ./include/process/node.hpp:4,
DEBUG:                  from ./include/process/pid.hpp:10,
DEBUG:                  from ./include/process/latch.hpp:4,
DEBUG:                  from ./include/process/future.hpp:23,
DEBUG:                  from src/libev_poll.cpp:3:
DEBUG: /usr/include/sys/socket.h:100:12: note: int socket(int, int, int)
DEBUG:  extern int socket (int __domain, int __type, int __protocol) __THROW;
DEBUG:             ^
DEBUG: make[4]: *** [libprocess_la-http.lo] Error 1
DEBUG: make[4]: *** [libprocess_la-io.lo] Error 1
DEBUG: make[4]: Leaving directory `/builddir/build/BUILD/mesos-0.22.0/3rdparty/libprocess'
DEBUG: make[4]: *** [libprocess_la-libev_poll.lo] Error 1
DEBUG: make[3]: Leaving directory `/builddir/build/BUILD/mesos-0.22.0/3rdparty/libprocess'
DEBUG: make[3]: *** [check-recursive] Error 1
DEBUG: make[2]: Leaving directory `/builddir/build/BUILD/mesos-0.22.0/3rdparty'
DEBUG: make[2]: *** [check-recursive] Error 1
DEBUG: make[1]: *** [check] Error 2
DEBUG: make[1]: Leaving directory `/builddir/build/BUILD/mesos-0.22.0/3rdparty'
DEBUG: make: *** [check-recursive] Error 1
DEBUG: RPM build errors:
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.56618 (%build)
DEBUG:     Bad exit status from /var/tmp/rpm-tmp.56618 (%build)
DEBUG: Child return code was: 1
INFO: EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps  builddir/build/SPECS/mesos.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 377, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps  builddir/build/SPECS/mesos.spec']
INFO: LEAVE do --> EXCEPTION RAISED
{noformat}



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