tcpdump mailing list archives

Re: libpcap0.9.8 compile error on FreeBSD 5.4


From: Max Laier <max () love2party net>
Date: Sat, 5 Jan 2008 21:45:10 +0100

On Saturday 05 January 2008, lei wei wrote:
Hello,

When I was trying to compile libpcap0.9.8 with DAG-enabled on
FreeBSD5.4, I received the following compile error:

lwei@mexico$ make
gcc -O2 -I.  -I/usr/local/include -DHAVE_CONFIG_H
-D_U_="__attribute__((unused))" -c ./gencode.c
In file included from ./gencode.c:80:
/usr/include/net/if_pflog.h:32: error: field `sc_if' has incomplete
type *** Error code 1

Could you give me any help to fix this?

if_pflog.h is not sufficiently _KERNEL'ed ... try surrounding struct 
pflog_softc in #ifdef _KERNEL.  Let me know if that works and I'll commit 
it for you, too.

-- 
/"\  Best regards,                      | mlaier () freebsd org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

Attachment: signature.asc
Description: This is a digitally signed message part.


Current thread: