From owner-freebsd-questions Sun Feb 15 18:34:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA08175 for freebsd-questions-outgoing; Sun, 15 Feb 1998 18:34:31 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cobra.ordata.com (cobra.ordata.com [207.48.96.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA08168 for ; Sun, 15 Feb 1998 18:34:23 -0800 (PST) (envelope-from dklindt@ordata.com) Received: from scout.willamette.net (scout.willamette.net [206.100.174.18]) by cobra.ordata.com (8.8.8/8.8.8) with SMTP id SAA04265; Sun, 15 Feb 1998 18:35:04 GMT Message-Id: <199802151835.SAA04265@cobra.ordata.com> Comments: Authenticated sender is From: "David P. Klindt" Organization: Data Research Group, Inc. To: freebsd-questions@FreeBSD.ORG Date: Sun, 15 Feb 1998 18:39:08 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: COBRA kernel compile error "BPF" Reply-to: dklindt@ordata.com CC: michelle@eugene.net X-mailer: Pegasus Mail for Win32 (v2.42a) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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