Bug 229525 - net/vde2: error: use of undeclared identifier 'BIOCSHDRCMPLT'
Summary: net/vde2: error: use of undeclared identifier 'BIOCSHDRCMPLT'
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 05:00 UTC by O. Hartmann
Modified: 2019-08-08 02:37 UTC (History)
2 users (show)

See Also:


Attachments
svn-diff-vde2 (1.61 KB, patch)
2018-11-02 16:22 UTC, Walter Schwarzenfeld
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2018-07-05 05:00:13 UTC
This problem pops up on recent CURRENT, hosting a poudriere CURRENT jail and the port is part of packages being compiled via poudriere (also most recent version as of today). The problem is present on CURRENT, not RELENG!

[...]
/bin/sh ../libtool  --tag=CC   --mode=link cc  -Wall  -O2 -pipe  -fstack-protector -fno-strict-aliasing  -L/usr/local/lib -fstack-protector -o vdeterm vdeterm.o common/libvdecommon.la -lm lib/libvdeplug.la lib/libvdehist.la -ldl 
libtool: link: cc -Wall -O2 -pipe -fstack-protector -fno-strict-aliasing -fstack-protector -o .libs/vdeterm vdeterm.o  -L/usr/local/lib common/.libs/libvdecommon.a -lm lib/.libs/libvdeplug.so lib/.libs/libvdehist.so -ldl -Wl,-rpath -Wl,/usr/local/lib
depbase=`echo vde_pcapplug.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
cc -DHAVE_CONFIG_H -I. -I../include  -I../include -DSYSCONFDIR="\"/usr/local/etc\"" -DLOCALSTATEDIR="\"/var\"" -I/usr/local/include  -Wall  -O2 -pipe  -fstack-protector -fno-strict-aliasing -MT vde_pcapplug.o -MD -MP -MF $depbase.Tpo -c -o vde_pcapplug.o vde_pcapplug.c &&\
mv -f $depbase.Tpo $depbase.Po
vde_pcapplug.c:204:34: error: use of undeclared identifier 'BIOCSHDRCMPLT'
        { unsigned int i = 1; ioctl(fd, BIOCSHDRCMPLT, &i); }
                                        ^
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-11-02 14:54:05 UTC
Works  if you adding CONFIGURE_ARGS+=        --disable-pcap to the Makefile.
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-11-02 14:58:20 UTC
And remove bin/vde_pcapplug and man/man1/vde_pcapplug.1.gz from pkg-plist.
Comment 3 Walter Schwarzenfeld freebsd_triage 2018-11-02 16:10:53 UTC
A better idea is:
add to
work/vde2-2.3.2/src/vde_pcapplug.c

#include <net/bpf.h>
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-11-02 16:22:09 UTC
Created attachment 198892 [details]
svn-diff-vde2