From owner-freebsd-stable@FreeBSD.ORG Wed May 14 11:07:41 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 199F837B401 for ; Wed, 14 May 2003 11:07:41 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D46343F3F for ; Wed, 14 May 2003 11:07:40 -0700 (PDT) (envelope-from ddolson@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Wed, 14 May 2003 14:07:39 -0400 Message-ID: From: Dave Dolson To: "'stable@freebsd.org'" Date: Wed, 14 May 2003 14:07:38 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: kernel conf not applied to modules? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2003 18:07:41 -0000 On FreeBSD 4.7 I noticed that when compiling kernel modules, the kernel options are not available to the modules. For example, my if_em.ko is not being compiled with the DEVICE_POLLING configuration It looks like "-include opt_global.h" is not being applied when compiling the module. Kernel compilation of if_em.c: cc -c -O2 -pipe -malign-loops=4 -malign-jumps=4 -malign-functions=4 -mcpu=i686 -march=i686 -fno-gcse -DBOOT_COMCONSOLE_SPEED=115200 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -g -nostdinc -I- -I. -I/d2/ddolson/src/sys -I/d2/ddolson/src/sys/../include -I/d2/ddolson/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2 /d2/ddolson/src/sys/dev/em/if_em.c Module compilation of if_em.c: cc -O2 -pipe -malign-loops=4 -malign-jumps=4 -malign-functions=4 -mcpu=i686 -march=i686 -fno-gcse -DBOOT_COMCONSOLE_SPEED=115200 -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -DKLD_MODULE -nostdinc -I- -I. -I@ -I@/../include -g -mpreferred-stack-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -ansi -c /d2/ddolson/src/sys/modules/em/../../dev/em/if_em.c Is this a bug/feature, or is it something I've got wrong at our site? Thanks, David Dolson (ddolson@sandvine.com, www.sandvine.com)