From owner-freebsd-questions@FreeBSD.ORG Mon Nov 29 21:22:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBDE116A526 for ; Mon, 29 Nov 2004 21:22:31 +0000 (GMT) Received: from guri.is.scarlet.be (guri.is.scarlet.be [193.74.71.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2BD943D41 for ; Mon, 29 Nov 2004 21:22:30 +0000 (GMT) (envelope-from freebsdbeni@spymac.com) Received: from (u81-11-130-177.adsl.scarlet.be [81.11.130.177]) by guri.is.scarlet.be with ESMTP id iATLMSt14366 for ; Mon, 29 Nov 2004 22:22:28 +0100 From: FreeBsdBeni To: freebsd-questions@freebsd.org Date: Mon, 29 Nov 2004 22:21:55 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200411292221.55799.freebsdbeni@spymac.com> Subject: compiling kernel with ndis options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 21:22:32 -0000 Hi, When trying to use ndis on my 5.3-rel-p1, I get the following compile error. I added to my kernel "options ndisapi" and "device ndis" (the "device wlan" was already compiled in), all as found in the man ndis-synopsis. But the compilation stops because there is a file missing : ndis_driver_data.h. That file I created with "ndiscvt -i file.inf -s file.sys -o ndis_driver_data.h" in the /usr/src/sys/modules/if_ndis directory and now I've made a copy of it in the /usr/src/sys/dev/if_ndis directory but the compilation still does not find the needed file (and it is there !). I already did a "make" in /usr/src/sys/modules/ndis and /modules/if_ndis and I can load those .ko modules without any problems with a kldload, even at boot via /boot/loader.conf. Any hints on how I get my kenel compiled ? "make buildkernel KERNKONF=BENI-53" in /usr/src gives (the "config BENI-53" gives no errors) : ... rm -f .newdep /usr/obj/usr/src/make.i386/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc"xargs mkdep -a -f .newdep -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding /usr/src/sys/dev/if_ndis/if_ndis.c:85:30: ndis_driver_data.h: No such file or directory /usr/src/sys/dev/if_ndis/if_ndis_pccard.c:66:30: ndis_driver_data.h: No such file or directory /usr/src/sys/dev/if_ndis/if_ndis_pci.c:65:30: ndis_driver_data.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /usr/obj/usr/src/sys/BENI-53. *** Error code 1 Stop in /usr/obj/usr/src/sys/BENI-53. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. -- Beni.