From owner-freebsd-current@FreeBSD.ORG Thu Jun 18 14:29:09 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 8088B106566C for ; Thu, 18 Jun 2009 14:29:09 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-fx0-f206.google.com (mail-fx0-f206.google.com [209.85.220.206]) by mx1.freebsd.org (Postfix) with ESMTP id 142738FC13 for ; Thu, 18 Jun 2009 14:29:08 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fxm2 with SMTP id 2so136406fxm.43 for ; Thu, 18 Jun 2009 07:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=/46c3x9xVK4v6tavJUsA4An00VsuOsVcXCP9VjBQ+eI=; b=E02meEP/hi6yzS5tFeQ++Jw5HZCxx6MUspKoetVbGsAeEhvGdmArM+0mwxH+Lrp4sT //vgEl6/W5aHDOGQF/zmyhUTJjLgeSPHwNe1oGEl10dCoGqyvIfSi9h9RzzX6tffHV8O 67eISi4e5IavadmtNvri2yGIYmLDULfyVgVdA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=tNSfXCukI5YG40Ork2DKZk9LsUWtZcXgc4I6Pw5OI+QmEE/DDYIuL1tOCTXDRu8yJf 48vtj69hgLUhdKBH6bO9PJ5Bci/ZmZWV5qDytQJBxAab8PwSwbFGlP7H8h6CHQu2zjI8 7AdMUnphcM+NB/meDPozF2WyIeMO8ehq1oyiM= MIME-Version: 1.0 Received: by 10.102.228.10 with SMTP id a10mr1087499muh.26.1245335347445; Thu, 18 Jun 2009 07:29:07 -0700 (PDT) In-Reply-To: <538522.48180.qm@web25001.mail.ukl.yahoo.com> References: <538522.48180.qm@web25001.mail.ukl.yahoo.com> Date: Thu, 18 Jun 2009 18:29:07 +0400 Message-ID: From: pluknet To: Ivailo Bonev Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:29:09 -0000 2009/6/18 Ivailo Bonev : > > 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