+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socket++-1.12.10nb2/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/socket++-1.12.10nb2/work.log => Bootstrap dependency digest>=20211023: found digest-20211023 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for socket++-1.12.10nb2 Making all in socket++ gmake[1]: Entering directory '/home/pbulk/build/net/socket++/work/socket++-1.12.10/socket++' /opt/local/bin/gmake all-am gmake[2]: Entering directory '/home/pbulk/build/net/socket++/work/socket++-1.12.10/socket++' /usr/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -I/usr/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/local/include -I/usr/include -MT sockstream.lo -MD -MP -MF .deps/sockstream.Tpo -c -o sockstream.lo sockstream.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/home/pbulk/build/net/socket++/work/.buildlink/include -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -MT sockstream.lo -MD -MP -MF .deps/sockstream.Tpo -c sockstream.cpp -fPIC -DPIC -o .libs/sockstream.o In file included from sockstream.cpp:80: /usr/include/unistd.h:344:12: error: conflicting declaration of C function 'int gethostname(char*, std::size_t)' 344 | extern int gethostname(char *, size_t); | ^~~~~~~~~~~ In file included from ./config.h:135, from sockstream.cpp:63: ./local.h:94:18: note: previous declaration 'int gethostname(char*, int)' 94 | extern "C" int gethostname (char* hostname, int len); | ^~~~~~~~~~~ sockstream.cpp: In member function 'bool sockerr::op() const': sockstream.cpp:204:8: error: 'EPROCLIM' was not declared in this scope 204 | case EPROCLIM: | ^~~~~~~~ sockstream.cpp: In member function 'bool sockerr::benign() const': sockstream.cpp:249:3: error: duplicate case value 249 | case EAGAIN: | ^~~~ sockstream.cpp:245:3: note: previously used here 245 | case EWOULDBLOCK: | ^~~~ sockstream.cpp: In destructor 'virtual sockbuf::~sockbuf()': sockstream.cpp:329:4: warning: 'throw' will always call 'terminate' [-Wterminate] 329 | throw sockerr (errno, "sockbuf::~sockbuf", sockname.c_str()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sockstream.cpp:329:4: note: in C++11 destructors default to 'noexcept' sockstream.cpp: In member function 'bool sockbuf::atmark() const': sockstream.cpp:905:27: error: 'SIOCATMARK' was not declared in this scope 905 | if (::ioctl (rep->sock, SIOCATMARK, &arg) == -1) | ^~~~~~~~~~ sockstream.cpp: In member function 'int sockbuf::pgrp() const': sockstream.cpp:921:27: error: 'SIOCGPGRP' was not declared in this scope 921 | if (::ioctl (rep->sock, SIOCGPGRP, &arg) == -1) | ^~~~~~~~~ sockstream.cpp: In member function 'int sockbuf::pgrp(int) const': sockstream.cpp:931:27: error: 'SIOCSPGRP' was not declared in this scope 931 | if (::ioctl (rep->sock, SIOCSPGRP, &new_pgrp) == -1) | ^~~~~~~~~ sockstream.cpp: In member function 'void sockbuf::closeonexec(bool) const': sockstream.cpp:941:29: error: 'FIOCLEX' was not declared in this scope 941 | if (::ioctl (rep->sock, FIOCLEX, 0) == -1) | ^~~~~~~ sockstream.cpp:944:29: error: 'FIONCLEX' was not declared in this scope 944 | if (::ioctl (rep->sock, FIONCLEX, 0) == -1) | ^~~~~~~~ sockstream.cpp: In member function 'long int sockbuf::nread() const': sockstream.cpp:956:27: error: 'FIONREAD' was not declared in this scope; did you mean 'UIO_READ'? 956 | if (::ioctl (rep->sock, FIONREAD, &arg) == -1) | ^~~~~~~~ | UIO_READ sockstream.cpp: In member function 'void sockbuf::nbio(bool) const': sockstream.cpp:980:27: error: 'FIONBIO' was not declared in this scope 980 | if (::ioctl (rep->sock, FIONBIO, &arg) == -1) | ^~~~~~~ sockstream.cpp: In member function 'void sockbuf::async(bool) const': sockstream.cpp:995:27: error: 'FIOASYNC' was not declared in this scope; did you mean 'UIO_ASYNC'? 995 | if (::ioctl (rep->sock, FIOASYNC, &arg) == -1) | ^~~~~~~~ | UIO_ASYNC gmake[2]: *** [Makefile:515: sockstream.lo] Error 1 gmake[2]: Leaving directory '/home/pbulk/build/net/socket++/work/socket++-1.12.10/socket++' gmake[1]: *** [Makefile:390: all] Error 2 gmake[1]: Leaving directory '/home/pbulk/build/net/socket++/work/socket++-1.12.10/socket++' gmake: *** [Makefile:389: all-recursive] Error 1 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/net/socket++ *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/net/socket++