From owner-freebsd-current Tue Jan 25 13:20:19 2000 Delivered-To: freebsd-current@freebsd.org Received: from mail4.aracnet.com (mail4.aracnet.com [216.99.193.36]) by hub.freebsd.org (Postfix) with ESMTP id 1BEB815337 for ; Tue, 25 Jan 2000 13:19:52 -0800 (PST) (envelope-from beattie@aracnet.com) Received: from shell1.aracnet.com (IDENT:root@shell1.aracnet.com [216.99.193.21]) by mail4.aracnet.com (8.9.3/8.9.3) with ESMTP id NAA19841 for ; Tue, 25 Jan 2000 13:19:55 -0800 Received: from localhost by shell1.aracnet.com (8.9.3) id NAA12924; Tue, 25 Jan 2000 13:21:50 -0800 X-Authentication-Warning: shell1.aracnet.com: beattie owned process doing -bs Date: Tue, 25 Jan 2000 13:21:49 -0800 (PST) From: Brian Beattie To: current@freebsd.org Subject: building modules Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to figure out how to make a makefile to build a module and have run into something I do not understand. I am working with freshly cvsup'ed sources. When I try to build a module in /sys/modules, the command line contains a -DKERNEL, which I find in bsd.kmod.mk. This causes the wrong definitions to be defined, since the correct ones are protected by #ifdef _KERNEL. (note the _). This is the case for running make from /sys, /sys/module, or /sys/module/ I looked a buildworld log from Jan 25, unknown cvs date, and the modules are built with -D_KERNEL, as I would expect. Am I doing something wrong, did something change, or do I just not understand? Brian Beattie | The only problem with beattie@aracnet.com | winning the rat race ... www.aracnet.com/~beattie | in the end you're still a rat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message