Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 07:44:22 -0700
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Can't build kernel with ndis
Message-ID:  <1356533062.1144.26.camel@revolution.hippie.lan>
In-Reply-To: <8A.59.25232.CD2DAD05@smtp01.insight.synacor.com>
References:  <8A.59.25232.CD2DAD05@smtp01.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2012-12-26 at 05:35 -0500, Thomas Mueller wrote:
> I am trying to build FreeBSD update, STABLE branch, and buildkernel apparently snagged on ndis, which I don't want to do without.  According to "man ndis", I need in kernel config
> 
>      options NDISAPI
>      device ndis
>      device wlan
> 
> which I have:
> 
> device          wlan            # 802.11 support
> options NDISAPI # This is in the hope of enabling Hiro USB wireless adapter
> device ndis
> 
> Error message, final lines of buildkernel log file, are
> 
> MAKE=make sh /usr/src/sys/conf/newvers.sh SANDY
> /usr/local/bin/svnversion
> cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wred
> undant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointe
> r-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wm
> issing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I
> /usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_gl
> obal.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param la
> rge-function-growth=1000  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone
> -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -
> fstack-protector -Werror  vers.c
> linking kernel.debug
> if_ndis.o: In function `ndis_detach':
> /usr/src/sys/dev/if_ndis/if_ndis.c:1084: undefined reference to `ndis_free_amem'
> if_ndis.o: In function `ndis_attach':
> /usr/src/sys/dev/if_ndis/if_ndis.c:563: undefined reference to `ndis_alloc_amem'
> *** [kernel.debug] Error code 1
> 
> Stop in /usr/obj/usr/src/sys/SANDY.
> *** [buildkernel] Error code 1
> 
> Stop in /usr/src.
> *** [buildkernel] Error code 1
> 
> Stop in /usr/src.

Try adding "device pccard"

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1356533062.1144.26.camel>