From owner-freebsd-net Sat Jan 23 09:15:24 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA23943 for freebsd-net-outgoing; Sat, 23 Jan 1999 09:15:24 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA23935 for ; Sat, 23 Jan 1999 09:15:23 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id JAA26033; Sat, 23 Jan 1999 09:14:22 -0800 (PST) Received: from s204m82.isp.whistle.com(207.76.204.82) via SMTP by alpo.whistle.com, id smtpdk26030; Sat Jan 23 17:14:17 1999 Date: Sat, 23 Jan 1999 09:14:13 -0800 (PST) From: Julian Elischer X-Sender: julian@s204m82.isp.whistle.com To: John Hay cc: net@FreeBSD.ORG, Archie Cobbs Subject: Re: netgraph stuff In-Reply-To: <199901231637.SAA29802@zibbi.mikom.csir.co.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 23 Jan 1999, John Hay wrote: > Julian, > > > ftp://ftp.whistle.com/pub/archie/misc/netgraph.tgz > > > > Includes a readme that hopefully will make sense. > > > > needs a current kernel < 2 days old > > > > either 3.x or 4.x will do. the crucial fix got in with hours to spare. > > I have tried the latest one, but I can't get it to compile. > > In modules/netgraph it dies with: > > --------- > cc -O -pipe -Wall -I/usr/src.freefall/sys -DKERNEL -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I/usr/src.freefall/sys -I/usr/src/sys/modules/netgraph/netgraph -I/usr/src/sys/modules/netgraph/netgraph/@ -c /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c > /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c: In function `ngb_mod_event': > /usr/src/sys/modules/netgraph/netgraph/../../../netgraph/ng_base.c:1357: `NETISR_NG' undeclared (first use this function) > -------- > > I have changed NETISR_NETGRAPH in net/netisr.h to NETISR_NG and then I got > further. The next place it dies is inside if_sr.c and if_ar.c when it tries > to include i386/isa/if_sr.h and i386/isa/if_ar.h respectively. Those files > does not exist. doh! that is why we were waiting for "make world" to work again.. so we could try it from scratch again.. you are correct in your fix. also here are the two missing .h files for sys/i386/isa if_sr.h: /* * if_sr.h * * Copyright (C) 1997-1999 Whistle Communications Inc. * All rights reserved. */ #ifndef _I386_ISA_IF_SR_H_ #define _I386_ISA_IF_SR_H_ /* Node type name and type cookie */ #define NG_SR_NODE_TYPE "sync_sr" #define NG_SR_COOKIE 860552149 /* Netgraph hooks */ #define NG_SR_HOOK_DEBUG "debug" #define NG_SR_HOOK_CONTROL "control" #define NG_SR_HOOK_RAW "rawdata" #endif /* _I386_ISA_IF_SR_H_ */ if_ar.h: /* * if_ar.h * * Copyright (C) 1997-1999 Whistle Communications Inc. * All rights reserved. */ #ifndef _I386_ISA_IF_AR_H_ #define _I386_ISA_IF_AR_H_ /* Node type name and type cookie */ #define NG_AR_NODE_TYPE "sync_ar" #define NG_AR_COOKIE 860552149 /* Netgraph hooks */ #define NG_AR_HOOK_DEBUG "debug" #define NG_AR_HOOK_CONTROL "control" #define NG_AR_HOOK_RAW "rawdata" #endif /* _I386_ISA_IF_AR_H_ */ > > Are you sure you have the right version on your ftp site? > > John > -- > John Hay -- John.Hay@mikom.csir.co.za > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message