First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 124759
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo/BSD Team <bsd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Fred <frediz@ahau-kin.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 124759 depends on: Show dependency tree
Show dependency graph
Bug 124759 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-03 02:41 0000
freebsd-pf fails to compile.
It looks like an include to /usr/include/net/bpf.h is missing.

Full logs of emerge here and emerge --info after that.

---
Calculating dependencies     ... done!
>>> Emerging (1 of 1) sys-freebsd/freebsd-pf-6.0 to /
>>> checksums files   ;-) freebsd-pf-6.0.ebuild
>>> checksums files   ;-) freebsd-pf-5.4.ebuild
>>> checksums files   ;-) files/digest-freebsd-pf-5.4
>>> checksums files   ;-) files/digest-freebsd-pf-6.0
>>> checksums src_uri ;-) freebsd-usbin-6.0.tar.bz2
>>> checksums src_uri ;-) freebsd-sbin-6.0.tar.bz2
>>> checksums src_uri ;-) freebsd-contrib-6.0.tar.bz2
>>> checksums src_uri ;-) freebsd-libexec-6.0.tar.bz2
>>> checksums src_uri ;-) freebsd-etc-6.0.tar.bz2
>>> Unpacking source...
>>> Unpacking freebsd-usbin-6.0.tar.bz2 to /var/tmp/portage/freebsd-pf-6.0/work
>>> Unpacking freebsd-sbin-6.0.tar.bz2 to /var/tmp/portage/freebsd-pf-6.0/work
>>> Unpacking freebsd-contrib-6.0.tar.bz2 to /var/tmp/portage/freebsd-pf-6.0/work
>>> Unpacking freebsd-libexec-6.0.tar.bz2 to /var/tmp/portage/freebsd-pf-6.0/work
>>> Unpacking freebsd-etc-6.0.tar.bz2 to /var/tmp/portage/freebsd-pf-6.0/work
  [32;01m* [0m Renaming libraries ...
 [A [72C   [34;01m[  [32;01mok [34;01m ] [0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/freebsd-pf-6.0/work ...
  [32;01m* [0m Starting make in libexec/ftp-proxy
Warning: Object directory not changed from original
/var/tmp/portage/freebsd-pf-6.0/work/libexec/ftp-proxy
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -c
/var/tmp/portage/freebsd-pf-6.0/work/libexec/ftp-proxy/../../contrib/pf/ftp-proxy/ftp-proxy.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -c
/var/tmp/portage/freebsd-pf-6.0/work/libexec/ftp-proxy/../../contrib/pf/ftp-proxy/getline.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args -c
/var/tmp/portage/freebsd-pf-6.0/work/libexec/ftp-proxy/../../contrib/pf/ftp-proxy/util.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wsystem-headers -Wall
-Wno-format-y2k -Wno-uninitialized -Wformat=2 -Wno-format-extra-args  -o
ftp-proxy ftp-proxy.o getline.o util.o 
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/libexec/ftp-proxy/../../contrib/pf/ftp-proxy/ftp-proxy.8
> ftp-proxy.8.gz
  [32;01m* [0m Starting make in usr.sbin/authpf
Warning: Object directory not changed from original
/var/tmp/portage/freebsd-pf-6.0/work/usr.sbin/authpf
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe 
-I/var/tmp/portage/freebsd-pf-6.0/work/usr.sbin/authpf/../../contrib/pf/pfctl
-Wall -Werror -DENABLE_ALTQ  -c
/var/tmp/portage/freebsd-pf-6.0/work/usr.sbin/authpf/../../contrib/pf/authpf/authpf.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe 
-I/var/tmp/portage/freebsd-pf-6.0/work/usr.sbin/authpf/../../contrib/pf/pfctl
-Wall -Werror -DENABLE_ALTQ   -o authpf authpf.o -lm -lmd -lutil
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/usr.sbin/authpf/../../contrib/pf/authpf/authpf.8
> authpf.8.gz
  [32;01m* [0m Starting make in sbin/pfctl
Warning: Object directory not changed from original
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl.c
yacc  -o parse.c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/parse.y
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
parse.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_parser.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pf_print_state.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_altq.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_osfp.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_radix.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_table.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_qstats.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl_optimize.c
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Wmissing-prototypes
-Wno-uninitialized -Wstrict-prototypes
-I/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl
-DENABLE_ALTQ -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized  -o
pfctl pfctl.o parse.o pfctl_parser.o pf_print_state.o pfctl_altq.o pfctl_osfp.o
pfctl_radix.o pfctl_table.o pfctl_qstats.o pfctl_optimize.o -lm -lmd
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/pfctl/pfctl.8
> pfctl.8.gz
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/man/pf.4 >
pf.4.gz
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/man/pflog.4 >
pflog.4.gz
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/man/pfsync.4 >
pfsync.4.gz
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/man/pf.conf.5
> pf.conf.5.gz
gzip -cn
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pfctl/../../contrib/pf/man/pf.os.5 >
pf.os.5.gz
  [32;01m* [0m Starting make in sbin/pflogd
Warning: Object directory not changed from original
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd
i686-gentoo-freebsd6.0-gcc -mtune=i386 -O2 -pipe  -Wall -Werror
-Wmissing-prototypes -Wshadow -Wsystem-headers -Wall -Wno-format-y2k
-Wno-uninitialized -c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:
In function `init_pcap':
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:220:
error: `BIOCLOCK' undeclared (first use in this function)
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:220:
error: (Each undeclared identifier is reported only once
/var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd/../../contrib/pf/pflogd/pflogd.c:220:
error: for each function it appears in.)
*** Error code 1

Stop in /var/tmp/portage/freebsd-pf-6.0/work/sbin/pflogd.

!!! ERROR: sys-freebsd/freebsd-pf-6.0 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile

!!! Make sbin/pflogd failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.


---
Gentoo/FreeBSD: FreeBSD version 6.0-RELEASE; Gentoo base version 0.7

Portage 2.1_pre5-r2
(!/usr/local/portage/portage-alt-overlay/profiles/default-bsd/fbsd/6.0/x86,
gcc-, freebsd-lib-6.0-r0, 6.0-RELEASE i386)
=================================================================
System uname: 6.0-RELEASE i386 i386
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  6.0
ACCEPT_KEYWORDS="x86 x86-fbsd ~x86 ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.0"
CFLAGS="-mtune=i386 -O2 -pipe"
CHOST="i686-gentoo-freebsd6.0"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=i386 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/portage-alt-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86-fbsd nls oss pam readline tcpd threads unicode usb elibc_FreeBSD
kernel_FreeBSD userland_BSD"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS,
MAKEOPTS

------- Comment #1 From Diego Pettenò 2006-04-04 00:11:14 0000 -------
Okay sorry for the delay, I've committed in portage a fix that allows
freebsd-pf to be compiled fine.

The problem consisted in libpcap using its own copy of net/bpf.h (a stripped
down version used on systems like linux where that file is not present), thus
missing some declarations; FreeBSD's copy of libpcap toys with includes a bit,
anyway it's fixed by simply including net/bpf.h before pcap's own headers.

Thanks for reporting :)

First Last Prev Next    No search results available      Search page      Enter new bug