On recent CURRENT and its equivalent jail for poudriere (host and jail share the same OS revision, r328409) the building of port net/stund fails: [...] ===> Building for stund-0.96 gmake[1]: Entering directory '/wrkdirs/usr/ports/net/stund/work/stund_0.96_Aug13' c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall server.cxx -o server.o c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall stun.cxx -o stun.o c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall udp.cxx -o udp.o c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -Wall client.cxx -o client.o stun.cxx:2257:17: warning: unused variable 'changedAddr' [-Wunused-variable] StunAddress4 changedAddr = resp.changedAddress.ipv4; ^ stun.cxx:2352:20: warning: unused variable 'changedAddr' [-Wunused-variable] StunAddress4 changedAddr = resp.changedAddress.ipv4; ^ udp.cxx:67:57: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned long>' and 'int') if ( bind( fd,(struct sockaddr*)&addr, sizeof(addr)) != 0 ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ /usr/include/c++/v1/system_error:606:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_code' for 1st argument operator!=(const error_code& __x, const error_code& __y) _NOEXCEPT ^ /usr/include/c++/v1/system_error:611:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_code' for 1st argument operator!=(const error_code& __x, const error_condition& __y) _NOEXCEPT ^ /usr/include/c++/v1/system_error:616:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_condition' for 1st argument operator!=(const error_condition& __x, const error_code& __y) _NOEXCEPT ^ /usr/include/c++/v1/system_error:621:1: note: candidate function not viable: no known conversion from '__bind<int &, sockaddr *, unsigned long>' to 'const std::__1::error_condition' for 1st argument operator!=(const error_condition& __x, const error_condition& __y) _NOEXCEPT ^ /usr/include/c++/v1/utility:564:1: note: candidate template ignored: could not match 'pair' against '__bind' operator!=(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)
Created attachment 195034 [details] svn-diff-stund
Testbuilds are fine, committed, thanks!
A commit references this bug: Author: pi Date: Tue Jul 10 18:06:16 UTC 2018 New revision: 474396 URL: https://svnweb.freebsd.org/changeset/ports/474396 Log: net/stund: fix build on current PR: 225455 Submitted by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> Approved by: sobomax (maintainer timeout) Changes: head/net/stund/files/patch-udp.cxx