Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2009 12:45:47 +0000 (GMT)
From:      Ivailo Bonev <ibb27@yahoo.co.uk>
To:        freebsd-current@freebsd.org
Subject:   kernel with ndis support
Message-ID:  <538522.48180.qm@web25001.mail.ukl.yahoo.com>

next in thread | raw e-mail | index | archive | help

I want to compile kernel with ndis support to use it for wireless. I've ins=
erted only these 2 lines in GENERIC:
options         NDISAPI
device          ndis

but I see this error:

:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=3Dmake sh ../../../conf/newvers.sh GENERIC
cc -c -O -pipe  -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wst=
rict-pr
ototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wunde=
f -Wn
o-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../con=
trib/
altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-comm=
on -f
inline-limit=3D8000 --param inline-unit-growth=3D100 --param large-function=
-growth=3D1
000  -mno-align-long-strings -mpreferred-stack-boundary=3D2  -mno-mmx -mno-=
3dnow -
mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror  vers.=
c
linking kernel.debug
if_ndis.o(.text+0x179f): In function `ndis_detach':
../../../dev/if_ndis/if_ndis.c:1080: undefined reference to `ndis_free_amem=
'
if_ndis.o(.text+0x196c): In function `ndis_attach':
../../../dev/if_ndis/if_ndis.c:565: undefined reference to `ndis_alloc_amem=
'
*** Error code 1

ibb# uname -a
FreeBSD ibb.bsdsys-bg.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Jun 16 04=
:54:1
8 EEST 2009     root@ibb.bsdsys-bg.com:/usr/obj/usr/src/sys/GENERIC  i386=
=0A=0A=0A      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?538522.48180.qm>