compiling kernel with ndis options

FreeBsdBeni freebsdbeni at spymac.com
Mon Nov 29 13:22:32 PST 2004


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.


More information about the freebsd-questions mailing list