Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2018 19:43:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 225455] net/stund: c++ error: invalid operands to binary expression
Message-ID:  <bug-225455-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225455

            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@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(sobomax@FreeBSD.org)
          Assignee: sobomax@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:

[...]
=3D=3D=3D>  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 =3D resp.changedAddress.ipv4;
                ^
stun.cxx:2352:20: warning: unused variable 'changedAddr' [-Wunused-variable]
      StunAddress4 changedAddr =3D 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)) !=3D 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!=3D(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!=3D(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!=3D(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!=3D(const error_condition& __x, const error_condition& __y) _NOEXC=
EPT
^
/usr/include/c++/v1/utility:564:1: note: candidate template ignored: could =
not
match 'pair' against '__bind'
operator!=3D(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225455-13>