Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2012 20:07:50 +0300
From:      Beeblebrox <zaphod@berentweb.com>
To:        freebsd-current@freebsd.org
Subject:   Buildworld breaks at libpcap
Message-ID:  <CAPSTsku3Bgs8bXOB-Nm2NoXEd1V7x%2BRh_Ta0CU2maNq3S54sig@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
uname -a: FreeBSD 9.0-STABLE #0 r235991: Sat May 26 14:20:06 EEST 2012
amd64 - Custom Kernel

buildworld breaks very eloquently at libpcap. Error message depends on
whether ccache is enabled or clang is disabled in /etc/src.conf, as
given below:
WITHOUT_ACCT= yes
WITHOUT_APM= yes
WITHOUT_AUTHPF= yes
WITHOUT_ASSERT_DEBUG= yes
WITHOUT_AUDIT= yes
WITHOUT_BIND= yes
WITH_BSD_GREP= yes
WITHOUT_BLUETOOTH= yes
WITHOUT_CLANG= yes
WITHOUT_CTM= yes
WITHOUT_FLOPPY= yes
WITHOUT_GDB= yes
WITHOUT_HTML= yes
WITHOUT_INET6= yes
WITHOUT_INET6_SUPPORT= yes
WITHOUT_IPFW= yes
WITHOUT_IPFILTER= yes
WITHOUT_MAIL= yes
WITHOUT_NLS= yes
WITHOUT_NLS_CATALOGS= yes
WITHOUT_PORTSNAP= yes
WITHOUT_SENDMAIL= yes
WITHOUT_WIRELESS= yes
WITHOUT_WPA_SUPPLICANT_EAPOL= yes

Error message looks like:
===> lib/libpcap (all)
/usr/local/bin/ccache cc  -O2 -pipe -march=k8 -DHAVE_CONFIG_H
-Dyylval=pcapyylval -I/asp/src/lib/libpcap -I.
-D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
-DHAVE_NET_PFVAR_H -I/asp/src/lib/libpcap/../../contrib/libpcap
-DNDEBUG -std=gnu99 -fstack-protector -Wno-pointer-sign -c
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-bpf.c -o pcap-bpf.o
.........
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c: In function
'dlt_to_linktype':
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MIN' undeclared (first use in this function)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
(Each undeclared identifier is reported only once
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
for each function it appears in.)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MAX' undeclared (first use in this function)
*** Error code 1
/usr/local/bin/ccache cc  -O2 -pipe -march=k8 -DHAVE_CONFIG_H
-Dyylval=pcapyylval -I/asp/src/lib/libpcap -I.
-D_U_="__attribute__((unused))" -DHAVE_SNPRINTF -DHAVE_VSNPRINTF
-DHAVE_NET_PFVAR_H -I/asp/src/lib/libpcap/../../contrib/libpcap
-DNDEBUG -std=gnu99 -fstack-protector -Wno-pointer-sign -c
/asp/src/lib/libpcap/../../contrib/libpcap/fad-getad.c -o fad-getad.o
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c: In function
'dlt_to_linktype':
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MIN' undeclared (first use in this function)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
(Each undeclared identifier is reported only once
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
for each function it appears in.)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MAX' undeclared (first use in this function)
*** Error code 1

Can Also Look Like, if buildworld is done non-threaded (no -j):
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c: In function
'dlt_to_linktype':
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MIN' undeclared (first use in this function)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
(Each undeclared identifier is reported only once
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
for each function it appears in.)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MAX' undeclared (first use in this function)
*** Error code 1
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c: In function
'dlt_to_linktype':
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MIN' undeclared (first use in this function)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
(Each undeclared identifier is reported only once
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
for each function it appears in.)
/asp/src/lib/libpcap/../../contrib/libpcap/pcap-common.c:928: error:
'DLT_MATCHING_MAX' undeclared (first use in this function)
*** Error code 1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPSTsku3Bgs8bXOB-Nm2NoXEd1V7x%2BRh_Ta0CU2maNq3S54sig>