[Bug 243108] [PATCH] security/nmap: Fix build when libpcap installed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 5 07:13:33 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243108
Bug ID: 243108
Summary: [PATCH] security/nmap: Fix build when libpcap
installed
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ohauer at FreeBSD.org
Reporter: glewis at FreeBSD.org
Assignee: ohauer at FreeBSD.org
Flags: maintainer-feedback?(ohauer at FreeBSD.org)
Created attachment 210461
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=210461&action=edit
Force the internal headers to be used
I tried to build security/nmap with net/libpcap installed and it failed
building nmap's internally bundled libpcap:
cc -fvisibility=hidden -O2 -pipe -I/usr/local/include -fstack-protector-strong
-fno-strict-aliasing -fpic -I. -I/usr/local/include -DBUILDING_PCAP
-Dpcap_EXPORTS -DHAVE_CONFIG_H -O2 -pipe -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c ./pcap.c
./pcap.c:2911:2: error: use of undeclared identifier 'DLT_IPMB'
DLT_CHOICE(IPMB, "IPMB"),
^
./pcap.c:2829:61: note: expanded from macro 'DLT_CHOICE'
#define DLT_CHOICE(code, description) { #code, description, DLT_ ## code }
^
<scratch space>:261:1: note: expanded from here
DLT_IPMB
^
1 error generated.
gmake[3]: *** [Makefile:84: pcap.o] Error 1
The attached patch for the Makefile fixed this by forcing it to use the
internal headers rather than the headers from net/libpcap that are installed in
/usr/local/include.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list