+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/openbfdd-0.5.3/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/openbfdd-0.5.3/work.log ===> Building for openbfdd-0.5.3 /opt/pkg/bin/gmake all-am gmake[1]: Entering directory '/home/pbulk/build/net/openbfdd/work/OpenBFDD-0.5.3' CXX common.o CXX utils.o CXX SmartPointer.o CXX log.o In file included from SmartPointer.cpp:8: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ CXX threads.o CXX bfd.o utils.cpp: In function 'UtilsTLSData* getUtilsTLS()': utils.cpp:67:16: error: 'pthread_getspecific' was not declared in this scope 67 | void *data = pthread_getspecific(gUtilsTLSKey); | ^~~~~~~~~~~~~~~~~~~ utils.cpp:75:12: error: 'pthread_setspecific' was not declared in this scope 75 | if (0 != pthread_setspecific(gUtilsTLSKey, tlsData)) | ^~~~~~~~~~~~~~~~~~~ utils.cpp: In function 'bool UtilsInit()': utils.cpp:91:13: error: 'pthread_key_create' was not declared in this scope; did you mean 'pthread_key_t'? 91 | int ret = pthread_key_create(&gUtilsTLSKey, deleteUtilsTLS); | ^~~~~~~~~~~~~~~~~~ | pthread_key_t utils.cpp:99:12: error: 'pthread_setspecific' was not declared in this scope 99 | if (0 != pthread_setspecific(gUtilsTLSKey, (void *)(uintptr_t)(0xbefed))) | ^~~~~~~~~~~~~~~~~~~ utils.cpp:102:16: error: 'pthread_getspecific' was not declared in this scope 102 | void *data = pthread_getspecific(gUtilsTLSKey); | ^~~~~~~~~~~~~~~~~~~ utils.cpp:106:12: error: 'pthread_setspecific' was not declared in this scope 106 | if (0 != pthread_setspecific(gUtilsTLSKey, NULL)) | ^~~~~~~~~~~~~~~~~~~ CXX TimeSpec.o utils.cpp: At global scope: utils.cpp:55:13: warning: 'void deleteUtilsTLS(void*)' defined but not used [-Wunused-function] 55 | static void deleteUtilsTLS(void *data) | ^~~~~~~~~~~~~~ CXX Socket.o gmake[1]: *** [Makefile:540: utils.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... In file included from Socket.h:10, from Socket.cpp:7: SmartPointer.h: In member function 'void RaiiBase::Dispose()': SmartPointer.h:27:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 27 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:28:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 28 | freeFn(val); val = nullval;} | ^~~ SmartPointer.h: In member function 'void RaiiNullBase::Dispose()': SmartPointer.h:56:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 56 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:57:20: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 57 | freeFn(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiClassCall::Dispose()': SmartPointer.h:117:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 117 | void Dispose() { if (!isNull()) | ^~ SmartPointer.h:118:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 118 | (myClass->*freeFn)(val); val = NULL;} | ^~~ SmartPointer.h: In member function 'void RaiiObjCallVar::Dispose()': SmartPointer.h:149:20: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 149 | void Dispose() { if (valid) | ^~ SmartPointer.h:150:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 150 | (myClass->*freeFn)(val); valid = false;} | ^~~~~ In file included from SockAddr.h:10, from Socket.h:9: Socket.cpp: In static member function 'static size_t Socket::GetMaxControlSizeReceiveTTLOrHops()': Socket.cpp:565:22: error: expected primary-expression before 'int' 565 | return (CMSG_SPACE(int)); | ^~~ Socket.cpp:565:22: error: expected ')' before 'int' Socket.cpp:565:11: note: to match this '(' 565 | return (CMSG_SPACE(int)); | ^~~~~~~~~~ Socket.cpp:565:27: error: expected ')' before ';' token 565 | return (CMSG_SPACE(int)); | ^ | ) Socket.cpp:565:11: note: to match this '(' 565 | return (CMSG_SPACE(int)); | ^~~~~~~~~~ Socket.cpp:565:27: error: expected ')' before ';' token 565 | return (CMSG_SPACE(int)); | ^ | ) Socket.cpp:565:11: note: to match this '(' 565 | return (CMSG_SPACE(int)); | ^~~~~~~~~~ Socket.cpp:565:27: error: expected ')' before ';' token 565 | return (CMSG_SPACE(int)); | ^ | ) Socket.cpp:565:11: note: to match this '(' 565 | return (CMSG_SPACE(int)); | ^~~~~~~~~~ Socket.cpp:565:27: error: expected ')' before ';' token 565 | return (CMSG_SPACE(int)); | ^ | ) Socket.cpp:565:11: note: to match this '(' 565 | return (CMSG_SPACE(int)); | ^~~~~~~~~~ Socket.cpp:565:27: error: expected ')' before ';' token 565 | return (CMSG_SPACE(int)); | ~ ^ | ) Socket.cpp: In static member function 'static size_t Socket::GetMaxControlSizeReceiveDestinationAddress()': Socket.cpp:574:13: error: no matching function for call to 'max(size_t&, unsigned int)' 574 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/tools/gcc13/include/c++/13.3.0/string:51, from Logger.h:7, from log.h:8, from common.h:9, from Socket.cpp:6: /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&)' 257 | max(const _Tp& __a, const _Tp& __b) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed: Socket.cpp:574:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 574 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed: Socket.cpp:574:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 574 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Socket.cpp:576:13: error: no matching function for call to 'max(size_t&, unsigned int)' 576 | size = max(size, CMSG_SPACE(sizeof(in_addr))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&)' 257 | max(const _Tp& __a, const _Tp& __b) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed: Socket.cpp:576:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 576 | size = max(size, CMSG_SPACE(sizeof(in_addr))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed: Socket.cpp:576:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 576 | size = max(size, CMSG_SPACE(sizeof(in_addr))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Socket.cpp:579:13: error: no matching function for call to 'max(size_t&, unsigned int)' 579 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&)' 257 | max(const _Tp& __a, const _Tp& __b) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed: Socket.cpp:579:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 579 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: candidate: 'template constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /opt/tools/gcc13/include/c++/13.3.0/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed: Socket.cpp:579:13: note: deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'unsigned int') 579 | size = max(size, CMSG_SPACE(sizeof(in6_pktinfo))); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[1]: *** [Makefile:540: Socket.o] Error 1 gmake[1]: Leaving directory '/home/pbulk/build/net/openbfdd/work/OpenBFDD-0.5.3' gmake: *** [Makefile:400: all] Error 2 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/openbfdd *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/openbfdd