Bug 217794 - pcap-int.h of contrib/libpcap missing in /usr/include
Summary: pcap-int.h of contrib/libpcap missing in /usr/include
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-15 05:34 UTC by O. Hartmann
Modified: 2017-03-15 05:34 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2017-03-15 05:34:09 UTC
While trying to compile port 

security/dsniff

on a recent CURRENT (FreeBSD 12.0-CURRENT #18 r315187: Mon Mar 13 06:32:50 CET 2017 amd64) I ran into a compilation error due to a missing header file, see below.

I guess this PR is better with the main source list than ports, since taken from the error below, it's matter of the core system.

[...]
cc -O2 -pipe -O3  -fstack-protector -fno-strict-aliasing -D_BSD_SOURCE -DLIBNET_BSDISH_OS -DHAVE_SOCKADDR_SA_LEN -DDSNIFF_LIBDIR=\"/usr/local/lib/\" -I. -I/usr/local/include -I/usr/include/pcap -I/usr/local/include   -I/usr/local/include -c ./pcaputil.c
--- webmitm ---
cc -fstack-protector -o webmitm webmitm.o base64.o buf.o decode_http.o record.o -lrpcsvc  -L. -lmd -L/usr/local/lib -lnet  -lssl -lcrypto
--- webspy ---
cc -fstack-protector -o webspy webspy.o base64.o buf.o remote.o -lrpcsvc  -L. -lmd -L/usr/local/lib -lnids `pkg-config --libs gthread-2.0` -lpcap -L/usr/local/lib -lnet -L/usr/local/lib  -lSM -lICE -lXmu -lX11
--- pcaputil.o ---
./pcaputil.c:22:10: fatal error: '/usr/include/pcap-int.h' file not found
#include </usr/include/pcap-int.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** [pcaputil.o] Error code 1

make[2]: stopped in /usr/ports/security/dsniff/work/dsniff-2.4
1 error

make[2]: stopped in /usr/ports/security/dsniff/work/dsniff-2.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/security/dsniff
*** Error code 1

Stop.
make: stopped in /usr/ports/security/dsniff
root@freyja:/usr/ports/security/dsniff # find /usr -name pcap-int.h -print
/usr/obj/usr/src/tmp/usr/include/pcap-int.h
/usr/obj/usr/src/lib32/usr/include/pcap-int.h
/usr/src/contrib/libpcap/pcap-int.h