From owner-freebsd-hackers Wed May 8 9:23:41 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from jupiter.linuxengine.net (jupiter.linuxengine.net [209.61.188.254]) by hub.freebsd.org (Postfix) with ESMTP id 6677837B405 for ; Wed, 8 May 2002 09:23:34 -0700 (PDT) Received: from jupiterweb.commercevault.com (jupiterweb.commercevault.com [209.61.179.16] (may be forged)) by jupiter.linuxengine.net (8.11.6/8.11.0) with ESMTP id g48GNVo07883; Wed, 8 May 2002 11:23:31 -0500 Date: Wed, 8 May 2002 11:23:31 -0500 (CDT) From: John Utz X-X-Sender: john@jupiter.linuxengine.net To: Mike Makonnen Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: how does the kernel build process resolve struct defs that arent defined in the compilation unit, declared extern or included in? In-Reply-To: <1020825830.50729.14.camel@kokeb.ambesa.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ahh the joys of email. you learn really fast, assuming you can stand the embarrassment! mike, thankyou very much for taking the time to check the code. i appreciate it an awful lot. On Tue, 7 May 2002, Mike Makonnen wrote: > On Tue, 2002-05-07 at 19:01, John Utz wrote: > > Hi; > > > > if /usr/src/sys/isa/pnp.c has a structure that is an array of struct > > pnp_cinfo and struct pnp_cinfo is only declared in > > /usr/src/sys/boot/isapnp.h and struct pnp_cinfo isnt declared extern in > > /usr/src/sys/isa/pnp.c and /usr/src/sys/isa/pnp.c doesnt #include > > nore does any of the files that pnp.c actually includes, > > then how could it possibly compile? i have a pnp.o in my build dir and the > > pnp stuff works in my kernel, so i am kinda lost > > > > any insight into how this works, or any pointer to mistakes i may have > > made in interpreting the facts on my box would be greatly appreciated. > > That declaration is inside an #if 0 block. > > #if 0 > ... > #endif oops. this is what i meant about the embarrasment part! :-) > The #if will always evaluate to false, so it won't try and compile it. > The only reference to it is also #if 0'ed out. yah, i know how it works. i wonder how many more days i would have spent looking until i finally noticed. :-( thankyou very much for your help! johnu > > Cheers, > Mike Makonnen > -- John L. Utz III john@utzweb.net Idiocy is the Impulse Function in the Convolution of Life To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message