tcpdump mailing list archives

Re: libpcap0.9.8 compile error on FreeBSD 5.4


From: "lei wei" <weilei1983 () gmail com>
Date: Sat, 5 Jan 2008 16:41:22 -0500

Max,

It works! But it came out a new error as follows:
gcc -O2 -I.  -I/usr/local/dag/include -DHAVE_CONFIG_H
-D_U_="__attribute__((unused))" -c ./pcap-dag.c
./pcap-dag.c: In function `dag_open_live':
./pcap-dag.c:721: error: `p' undeclared (first use in this function)
./pcap-dag.c:721: error: (Each undeclared identifier is reported only once
./pcap-dag.c:721: error: for each function it appears in.)
*** Error code 1

I was configuring it with dag-enabled and it seems this error shows up at
least as early as version 0.9.6. Any hint on this?
Thanks.

On Jan 5, 2008 4:10 PM, Max Laier <max () love2party net> wrote:

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

I don't quite understand "surrounding struct pflog_softc in #ifdef
_KERNEL.". Could you give me some more detailed instruction?
Thanks for the help.

See attached.  Apply to either the installed version directly
(/usr/include/net/if_pflog.h) or your source tree and do a
buildworld/installworld.

On Jan 5, 2008 3:45 PM, Max Laier <max () love2party net> wrote:
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



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




-- 
Wei, Lei
Department of Computer Science
University of North Carolina at Chapel Hill,
NC 27599-3175
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: