Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2009 18:29:07 +0400
From:      pluknet <pluknet@gmail.com>
To:        Ivailo Bonev <ibb27@yahoo.co.uk>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kernel with ndis support
Message-ID:  <a31046fc0906180729h1b010877nce1db33cf46efed7@mail.gmail.com>
In-Reply-To: <538522.48180.qm@web25001.mail.ukl.yahoo.com>
References:  <538522.48180.qm@web25001.mail.ukl.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/6/18 Ivailo Bonev <ibb27@yahoo.co.uk>:
>
> I want to compile kernel with ndis support to use it for wireless. I've i=
nserted only these 2 lines in GENERIC:
> options =A0 =A0 =A0 =A0 NDISAPI
> device =A0 =A0 =A0 =A0 =A0ndis
>

I guess you have to add device pccard to your kernel config.

> 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 =A0-std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs =
-Wstrict-pr
> ototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =A0=
-Wundef -Wn
> o-pointer-sign -fformat-extensions -nostdinc =A0-I. -I../../.. -I../../..=
/contrib/
> altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-co=
mmon -f
> inline-limit=3D8000 --param inline-unit-growth=3D100 --param large-functi=
on-growth=3D1
> 000 =A0-mno-align-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx=
 -mno-3dnow -
> mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror =A0v=
ers.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_am=
em'
> if_ndis.o(.text+0x196c): In function `ndis_attach':
> ../../../dev/if_ndis/if_ndis.c:565: undefined reference to `ndis_alloc_am=
em'
> *** 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 =A0 =A0 root@ibb.bsdsys-bg.com:/usr/obj/usr/src/sys/GENERIC =
=A0i386
>


--=20
wbr,
pluknet



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