Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 1998 18:39:08 +0000
From:      "David P. Klindt" <dklindt@ordata.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        michelle@eugene.net
Subject:   COBRA kernel compile error  "BPF"
Message-ID:  <199802151835.SAA04265@cobra.ordata.com>

next in thread | raw e-mail | index | archive | help
any ideas please......

I am getting closer to getting the kernel compiled for using BPF. I am using 
version 2.1.6.  

I have made the entry on the bottom of my config file:

/sys/i386/conf (filename)
 
pseudo-device   bpfilter        4       # Berkeley packet filter



Below is the error I am getting when I attempt to compile. 

cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I.
-I../.. -I../../sys -I../../../include -DCOBRA -DI586_CPU -DSYSVMSG
-DSYSVSEM -D
SYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS
-DCD966
0 -DMSDOSFS -DNFS -DFFS -DINET -DMATH_EMULATE -DKERNEL -Di386
-DLOAD_ADDRESS=0xF
0100000  ../../net/bpf_filter.c
../../net/bpf_filter.c: In function `bpf_validate':
../../net/bpf_filter.c:534: warning: unsigned value < 0 is always 0
cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I.
-I../.. -I../../sys -I../../../include -DCOBRA -DI586_CPU -DSYSVMSG
-DSYSVSEM -D
SYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS
-DCD966
0 -DMSDOSFS -DNFS -DFFS -DINET -DMATH_EMULATE -DKERNEL -Di386
-DLOAD_ADDRESS=0xF
0100000  ../../net/if.c
cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I.
-I../.. -I../../sys -I../../../include -DCOBRA -DI586_CPU -DSYSVMSG
-DSYSVSEM -D
SYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS
-DCD966
0 -DMSDOSFS -DNFS -DFFS -DINET -DMATH_EMULATE -DKERNEL -Di386
-DLOAD_ADDRESS=0xF
0100000  ../../net/if_ethersubr.c
cc -c -O -W -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -nostdinc -I.
-I../.. -I../../sys -I../../../include -DCOBRA -DI586_CPU -DSYSVMSG
-DSYSVSEM -D
SYSVSHM -DUCONSOLE -DBOUNCE_BUFFERS -DSCSI_DELAY=15 -DCOMPAT_43 -DPROCFS
-DCD966
0 -DMSDOSFS -DNFS -DFFS -DINET -DMATH_EMULATE -DKERNEL -Di386
-DLOAD_ADDRESS=0xF
0100000  ../../net/if_loop.c
../../net/if_loop.c: In function `loopattach':
../../net/if_loop.c:106: warning: passing arg 1 of `bpfattach' from
incompatible
 pointer type
../../net/if_loop.c:106: warning: passing arg 2 of `bpfattach' makes
integer fro
m pointer without a cast
../../net/if_loop.c:106: too many arguments to function `bpfattach'
../../net/if_loop.c: In function `looutput':
../../net/if_loop.c:149: warning: passing arg 1 of `bpf_mtap' from incompatible
pointer type
*** Error code 1

Stop.




Regards,

David Klindt                            dave@klindt.com
Data Research Group, Inc.               dklindt@ordata.com
1574 Coburg                             (V) 541.465.3282
Suite 118                               (F) 541.465.1194
Eugene, Oregon 97401                    Big Dog

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802151835.SAA04265>