From owner-freebsd-current@FreeBSD.ORG Thu Jun 18 14:55:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4D10106566B for ; Thu, 18 Jun 2009 14:55:08 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mx1.freebsd.org (Postfix) with ESMTP id 74CB18FC15 for ; Thu, 18 Jun 2009 14:55:08 +0000 (UTC) (envelope-from adamk@voicenet.com) Received: from OMTA03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA11.westchester.pa.mail.comcast.net with comcast id 5NNL1c0060bG4ec5BShtT5; Thu, 18 Jun 2009 14:41:53 +0000 Received: from scroll.ashke.com ([67.103.204.242]) by OMTA03.westchester.pa.mail.comcast.net with comcast id 5Shj1c0025EJinX3PShlk4; Thu, 18 Jun 2009 14:41:51 +0000 Message-ID: <4A3A5225.2090905@voicenet.com> Date: Thu, 18 Jun 2009 10:41:41 -0400 From: Adam K Kirchhoff User-Agent: Thunderbird 2.0.0.21 (X11/20090515) MIME-Version: 1.0 To: Ivailo Bonev References: <538522.48180.qm@web25001.mail.ukl.yahoo.com> In-Reply-To: <538522.48180.qm@web25001.mail.ukl.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: kernel with ndis support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2009 14:55:09 -0000 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 > ototypes -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@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