Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2002 11:23:31 -0500 (CDT)
From:      John Utz <john@utzweb.net>
To:        Mike Makonnen <makonnen@pacbell.net>
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?
Message-ID:  <Pine.LNX.4.44.0205081118470.6345-100000@jupiter.linuxengine.net>
In-Reply-To: <1020825830.50729.14.camel@kokeb.ambesa.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
> > <isa/isapnp.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.44.0205081118470.6345-100000>