[Bug 225455] net/stund: c++ error: invalid operands to binary expression

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 25 19:43:05 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225455

            Bug ID: 225455
           Summary: net/stund: c++ error: invalid operands to binary
                    expression
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: sobomax at FreeBSD.org
          Reporter: ohartmann at walstatt.org
             Flags: maintainer-feedback?(sobomax at FreeBSD.org)
          Assignee: sobomax at FreeBSD.org

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list