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
Stop installing pcap-int.h, which is the internal interface for libpcap.
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.
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! :-/
Thanks for your help with this problem in a timely manner.
(In reply to dewayne from comment #3)
Could you give this patch  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.
A commit references this bug:
Date: Tue Jul 4 09:49:30 UTC 2017
New revision: 445013
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
Reported by: Andrew Wu <email@example.com> , firstname.lastname@example.org
Reviewed by: bapt
Approved by: bapt
Differential Revision: https://reviews.freebsd.org/D11072
Forgotten to close?
(In reply to w.schwarzenfeld from comment #6)
yes. thanks for noting.