[Bug 232934] security/nmap: Fix build with libc++ 7.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Nov 3 14:09:55 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232934
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 at FreeBSD.org
Reporter: dim at FreeBSD.org
Assignee: ohauer at FreeBSD.org
Flags: maintainer-feedback?(ohauer at FreeBSD.org)
Created attachment 198913
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=198913&action=edit
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_addr6))
!= 0 ){
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ ~
/usr/include/c++/v1/utility:566:1: note: candidate template ignored: could not
match 'pair' against '__bind'
operator!=(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.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list