From owner-freebsd-stable@FreeBSD.ORG Thu Dec 27 03:13:22 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2867BA9F for ; Thu, 27 Dec 2012 03:13:22 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp1.insight.synacor.com [208.47.185.23]) by mx1.freebsd.org (Postfix) with ESMTP id C477B8FC0A for ; Thu, 27 Dec 2012 03:13:21 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.0 cv=AYoz7grG c=1 sm=0 a=Dm9TOXL4taQ+Gy1KovpL+A==:17 a=jLN7EqiLvroA:10 a=9YQ-1ebCAAAA:8 a=BbwyZmbTN3oA:10 a=oJP1_OaXFiBdME-54XkA:9 a=Dm9TOXL4taQ+Gy1KovpL+A==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp01.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp01.insight.synacor.com: transitional domain insightbb.com does not designate 74.130.198.7 as permitted sender) Received: from [74.130.198.7] ([74.130.198.7:46346] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTP id 6A/35-25232-FCCBBD05; Wed, 26 Dec 2012 22:13:20 -0500 Date: Wed, 26 Dec 2012 22:13:19 -0500 Message-ID: <6A.35.25232.FCCBBD05@smtp01.insight.synacor.com> From: "Thomas Mueller" To: freebsd-stable@freebsd.org Subject: Can't build kernel with ndis Cc: Ian Lepore X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 03:13:22 -0000 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. Now Ian Lepore suggests adding to kernel config device pccard So I uncommented the device lines for cbb, pccard and cardbus even though my computer has no PCMCIA. I don't know why, this ought to be documented. So the kernel apparently built but would not install due to something related to auditdistd. UPDATING file refers to auditdistd(8) as if it were a man page, but I could find it nowhere, not even the FreeBSD online man pages. I ran mergemaster -p but didn't want to let it destroy my master.passwd, so I would up adding auditdistd user line with vi editor. But the kernel still wouldn't install. Now I am at an impasse. Maybe wait until 9.1 is really released? Tom