From owner-freebsd-hackers Tue May 7 18: 1:58 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 C318F37B416 for ; Tue, 7 May 2002 18:01:24 -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 g4811Lo17572; Tue, 7 May 2002 20:01:21 -0500 Date: Tue, 7 May 2002 20:01:21 -0500 (CDT) From: John Utz X-X-Sender: john@jupiter.linuxengine.net To: freebsd-hackers@freebsd.org Cc: john@utzweb.net Subject: how does the kernel build process resolve struct defs that arent defined in the compilation unit, declared extern or included in? 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 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. tnx! johnu -- 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