Date: Sat, 03 Nov 2018 14:09:52 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 232934] security/nmap: Fix build with libc++ 7.0 Message-ID: <bug-232934-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232934 Bug ID: 232934 Summary: security/nmap: Fix build with libc++ 7.0 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ohauer@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: ohauer@FreeBSD.org Flags: maintainer-feedback?(ohauer@FreeBSD.org) Created attachment 198913 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D198913&action= =3Dedit Use ::bind instead plain bind Building security/nmap on the clang700-import branch results in a bunch of errors due to std::bind conflicting with the good old bind(2): EchoServer.cc -o EchoServer.o EchoServer.cc:284:81: error: invalid operands to binary expression ('__bind= <int &, sockaddr *, unsigned long>' and 'int') if( bind(master_sd, (struct sockaddr *)&server_addr6, sizeof(server_add= r6)) !=3D 0 ){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~ ^ ~ /usr/include/c++/v1/utility:566:1: note: candidate template ignored: could = not match 'pair' against '__bind' operator!=3D(const pair<_T1,_T2>& __x, const pair<_T1,_T2>& __y) ^ [... much more of this ...] See also http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-10-09_= 18h22m03s/logs/errors/nmap-7.70.log This is because nmap puts "using namespace std" in its headers. Attached is a patch to replace the calls to bind(2) with ::bind. --=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-232934-7788>