Bug 225455 - net/stund: c++ error: invalid operands to binary expression
Summary: net/stund: c++ error: invalid operands to binary expression
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-25 19:43 UTC by O. Hartmann
Modified: 2018-07-10 18:06 UTC (History)
2 users (show)

See Also:
pi: maintainer-feedback-


Attachments
svn-diff-stund (1.13 KB, patch)
2018-07-10 17:06 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-01-25 19:43:03 UTC
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)
Comment 1 Walter Schwarzenfeld 2018-07-10 17:06:24 UTC
Created attachment 195034 [details]
svn-diff-stund
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2018-07-10 18:06:13 UTC
Testbuilds are fine, committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-07-10 18:06:32 UTC
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