From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 03:11:53 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 B3141106566C for ; Tue, 11 Sep 2012 03:11:53 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6E3F58FC0A for ; Tue, 11 Sep 2012 03:11:53 +0000 (UTC) Received: by obbun3 with SMTP id un3so76627obb.13 for ; Mon, 10 Sep 2012 20:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UG9XdLZdyz/K7uNgwaVhBaV8taRrIZBXmEAMFvFT+Ck=; b=nfNsQ0k/3Nx94RrPkAlKtj97dLOm3e9oMQN4z+ymBQWgFmYS4CnBB5Ue4QYbfPe8X0 kExCsFLWuB08wEXPIZ6/s4Wb6uIe0JH7zvCW7nCjxNQiTxMzRK5GNW41iY0OvGf3+jze mPqqbEiNYX6FNaCcopEpl5uoptPsh526B0UC8cjBvjGoVqlmHaGyV4Ux2TvslJ08qIj7 M1bO6y+2jRcWZH39N49GOyZG6Z1fdYqLRmvpOXPDLf+SGLtyTMl/d4YsYtQG8X7bWA4p kdP2/JrC6qHFNzih5xxDC9/C5/7ca+amsmQHOEj23S8TuS/56YrHiz5pT9RPxW/BZVAu Vrzg== MIME-Version: 1.0 Received: by 10.60.20.69 with SMTP id l5mr16058333oee.114.1347333112648; Mon, 10 Sep 2012 20:11:52 -0700 (PDT) Received: by 10.76.83.130 with HTTP; Mon, 10 Sep 2012 20:11:52 -0700 (PDT) In-Reply-To: <201209101923.q8AJNxZJ081642@mail.r-bonomi.com> References: <201209101923.q8AJNxZJ081642@mail.r-bonomi.com> Date: Mon, 10 Sep 2012 22:11:52 -0500 Message-ID: From: Adam Vande More To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Tue, 11 Sep 2012 03:11:53 -0000 On Mon, Sep 10, 2012 at 2:23 PM, 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 > 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? > > It seems you need device pccard and whatever that depends upon if anything. Another solution is here: http://lists.freebsd.org/pipermail/freebsd-current/2004-November/042586.html although it seems only lines 1083/4 need to go in my version. -- Adam Vande More