From owner-freebsd-questions@FreeBSD.ORG Mon Sep 10 19:42:58 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2041A1065674 for ; Mon, 10 Sep 2012 19:42:58 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id C5AE78FC18 for ; Mon, 10 Sep 2012 19:42:57 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id q8AJhBJD081802; Mon, 10 Sep 2012 14:43:11 -0500 (CDT) Date: Mon, 10 Sep 2012 14:43:11 -0500 (CDT) From: Robert Bonomi Message-Id: <201209101943.q8AJhBJD081802@mail.r-bonomi.com> To: gardnerbell@gmail.com In-Reply-To: Cc: freebsd-questions@freebsd.org Subject: Re: trouble building 'ndis' device driver into stripped-down custom kernel. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Sep 2012 19:42:58 -0000 > Date: Mon, 10 Sep 2012 15:32:30 -0400 > Subject: Re: trouble building 'ndis' device driver into stripped-down custom kernel. > From: Gardner Bell > > On 10 September 2012 15:23, Robert Bonomi > wrote: > > > > Enviorment is FreeBSD 8.3, i386 > > > > I'm currently running a stipped-down custom kernal with all superfluous > > devices/options removed. > > > > I'm trying to add the 'ndis' device back in, but when I follow the > > directions on the ndis(4) manpage, and add: > > options NDISAPI device ndis > > Is device wlan still part of your config ? Yup. I'm just changing which wireless card I'm using. Thanks for the thought. > > and try to re-compile the kernel (config, cd, make depend, make), > > linking fails, with: > > if_ndis.o(.text+0x1104): In function 'ndis_detach': > > : undefined reference to 'ndis_free_amem' > > if_ndis.o(.text+0x1194): In function 'ndis_attach': > > : undefined reference to 'ndis_alloc_amem' > > > > Obviously, the config file is missing 'something' -- does anybody have > > any ideat _what_ that something is?