[Netnice-developer] Re: OpenBSD make depend
Status: Alpha
Brought to you by:
taost6
From: <op...@so...> - 2003-11-18 10:13:47
|
Taka, That's not all, unfortunally. OpenBSD doesn't use /sys/callout.h as you have them in /net/vif_input.c and /net/vif_output.c. What it uses is /sys/timeout.h, which is "almost" the same thing as callout.h. But there is a difference inside the timeout structure, or as you have it in FreeBSD, struct callout. Besides that, I don't see any further problems in the making of the dependencies. Although, while trying to compile the kernel with the option NETNICE it gives me a weird error under /dev/ic/elink3.c But I would like to solve the dependencies problem first. Nico. Takashi Okumura writes: > thanks, nico! > > > -- taka > > > op...@so... wrote: >> >> Hi all, >> >> I get this warning while making the dependencies for the kernel. >> >> In file included from >> /usr/src/sys.work/arch/i386/compile/GENERIC/../../../../kern/kern_exit.c:81: >> /usr/src/sys.work/arch/i386/compile/GENERIC/../../../../net/vif.h:170: >> warning: `assert' redefined >> /usr/src/sys.work/arch/i386/compile/GENERIC/../../../../lib/libkern/libkern. >> h:119: warning: this is the location of the previous definition >> >> As you see, is the redefinition of 'assert' what is causing troubles. >> Here are the two different definitions... >> >> From vif.h: >> >> #define assert(cond) do {if (!(cond)) panic("line %d: file %s", __LINE__, >> __FILE__); } while (0) >> >> From libkern.h: >> >> #ifdef NDEBUG /* tradition! */ >> #define assert(e) ((void)0) >> #else >> #ifdef __STDC__ >> #define assert(e) ((e) ? (void)0 : \ >> __assert("", __FILE__, __LINE__, #e)) >> #else >> #define assert(e) ((e) ? (void)0 : \ >> __assert("", __FILE__, __LINE__, "e")) >> #endif >> #endif >> >> Nico. |