Re: kernel with ndis support

From: Ivailo Bonev <ibb_orac_at_mbox.contact.bg>
Date: Thu, 18 Jun 2009 21:06:16 +0300
----- Original Message ----- 
From: "Adam K Kirchhoff" <adamk_at_voicenet.com>
To: "Ivailo Bonev" <ibb27_at_yahoo.co.uk>
Cc: <freebsd-current_at_freebsd.org>
Sent: Thursday, June 18, 2009 5:41 PM
Subject: Re: kernel with ndis support


> Ivailo Bonev wrote:
>> I want to compile kernel with ndis support to use it for wireless. I've 
>> inserted 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=make sh ../../../conf/newvers.sh GENERIC
>> cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-pr
>> 
>> totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
>>  -Wn
>> o-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../contrib/
>> altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 
>> opt_global.h -fno-common -f
>> inline-limit=8000 --param inline-unit-growth=100 --param 
>> large-function-growth=1
>> 000  -mno-align-long-strings -mpreferred-stack-boundary=2  -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_at_ibb.bsdsys-bg.com:/usr/obj/usr/src/sys/GENERIC  i386
>>
>>
>
> Is there some reason you aren't using is as a module?  It's comes built 
> that way on GENERIC and should work just fine.
>
> Adam
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
No, I'm just an old style user, and want every driver that PC use, to be in 
kernel :) 
Received on Thu Jun 18 2009 - 16:13:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:50 UTC