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 <[EMAIL PROTECTED]> 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:
> > >
> > > [EMAIL PROTECTED] 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,                      | [EMAIL PROTECTED]
> > \ /  Max Laier                          | ICQ #67774661
> >  X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
> > / \  ASCII Ribbon Campaign              | Against HTML Mail and News



-- 
/"\  Best regards,                      | [EMAIL PROTECTED]
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
Index: if_pflog.h
===================================================================
RCS file: /home/ncvs/src/sys/contrib/pf/net/if_pflog.h,v
retrieving revision 1.4
diff -u -r1.4 if_pflog.h
--- if_pflog.h	16 Jun 2004 23:24:00 -0000	1.4
+++ if_pflog.h	5 Jan 2008 21:08:57 -0000
@@ -28,12 +28,14 @@
 #ifndef _NET_IF_PFLOG_H_
 #define _NET_IF_PFLOG_H_
 
+#ifdef _KERNEL
 struct pflog_softc {
 	struct ifnet	sc_if;  /* the interface */
 #ifdef __FreeBSD__
 	LIST_ENTRY(pflog_softc) sc_next;
 #endif
 };
+#endif
 
 /* XXX keep in sync with pfvar.h */
 #ifndef PF_RULESET_NAME_SIZE

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

Reply via email to