Changes to the base system of FreeBSD11 Pre-release prevents pcap-int.h from being installed, hence disables the build of net/lft. Specifically: " r319279 | delphij | 2017-05-31 15:20:59 +1000 (Wed, 31 May 2017) | 31 lines r314863: ... Stop installing pcap-int.h, which is the internal interface for libpcap. Reference: https://github.com/the-tcpdump-group/libpcap/issues/560 PR: 217221 " As this file is no longer installed into /usr/include, the port is unable to be built for all platforms. I miss the workaround part of the PR, so here it is Workaround (very temporary) cp /usr/src/contrib/libpcap/pcap-int.h /usr/include
(In reply to dewayne from comment #0) Oops and as *workaround* also cp /usr/src/contrib/libpcap/portability.h /usr/include
You may want to try the patch from ongoing review: https://reviews.freebsd.org/D11072
(In reply to Babak Farrokhi from comment #2) Thanks Babak, that is a good solution as it maintains the port's self-containment. If the headers were locked this would be ideal, however we never know when libpcap changes (unlikely I know). I'm sure that the developers of lft assumed that headers would remain available, so unlikelthat they'll reconsider their design and add another level of indirection into their code to somehow get to the material that lft requires. For the moment I'll copy from the base machine's /usr/src/... into the various build jails. :rant When is a header not? When "someone" decides it reveals internals of something... which is the whole point! I suppose stdio.h reveals internals, so that might be next. At least for the sake of a consistent paradigm all headers from /usr/src/contrib should be removed from /usr/include - another ridiculous idea! :-/ :end-rant Thanks for your help with this problem in a timely manner.
(In reply to dewayne from comment #3) Could you give this patch [1] a try? It seems the header file was not being used at all. I also fixed another issue that prevented RAW socket from being created. [1] https://reviews.freebsd.org/D11072
A commit references this bug: Author: farrokhi Date: Tue Jul 4 09:49:30 UTC 2017 New revision: 445013 URL: https://svnweb.freebsd.org/changeset/ports/445013 Log: Unbreak on 11-STABLE and 12-CURRENT - Remove reference to unused header file that caused build failure on 11.x+ - Fix the logic to create RAW sockets appropriately (reported by Andrew Wu) - Bump PORTREVISION PR: 219810 Reported by: Andrew Wu <yauhwawu@gmail.com> , dewayne@heuristicsystems.com.au Reviewed by: bapt Approved by: bapt Differential Revision: https://reviews.freebsd.org/D11072 Changes: head/net/lft/Makefile head/net/lft/files/ head/net/lft/files/patch-lft__lib.h head/net/lft/files/patch-lft__types.h
Forgotten to close?
(In reply to w.schwarzenfeld from comment #6) yes. thanks for noting.