From owner-freebsd-stable@FreeBSD.ORG Thu Dec 27 04:38:57 2012 Return-Path: <owner-freebsd-stable@FreeBSD.ORG> 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 38A78907 for <freebsd-stable@freebsd.org>; Thu, 27 Dec 2012 04:38:57 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by mx1.freebsd.org (Postfix) with ESMTP id BCDC98FC08 for <freebsd-stable@freebsd.org>; Thu, 27 Dec 2012 04:38:56 +0000 (UTC) Received: by mail-ea0-f177.google.com with SMTP id c10so3651046eaa.36 for <freebsd-stable@freebsd.org>; Wed, 26 Dec 2012 20:38:49 -0800 (PST) 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=PJE0tT1BOmTvzD3HikGmunPYq1zN9L8FjO3NVuF93Hw=; b=akdt/BsX9Y9g+xoly2zHXxt7gkZ9cNWnfyX5XKQqcDDoAFcwnYrQxTdCZRaJ5lnYbE fLJ7ZW13+iLheK/T/yVKdqK+JaR9m3BqOOa+pGXrLFUHucVR3Blybg/55NN6Ch76PuGL CD2Ym1/86G3P1Wihnh7vyeixOaEbatmA7oivI2iNkq/fHDkH8iot73X5KhGlQx35n7kN f5QKNBIM8OJjjeKhzE0BFVYQZFGWXtqHtO/u2fxvAEgBvID1/axUHv7c41SMFds4T5rp mf9Wrb2G35ND74vE0RTZubwuauWZ6MsWCxci4VhVMtQshnW4w5g3IkxHihA7l6zeClvl JBqw== MIME-Version: 1.0 Received: by 10.14.2.196 with SMTP id 44mr74817753eef.25.1356583129740; Wed, 26 Dec 2012 20:38:49 -0800 (PST) Received: by 10.223.170.193 with HTTP; Wed, 26 Dec 2012 20:38:49 -0800 (PST) In-Reply-To: <6A.35.25232.FCCBBD05@smtp01.insight.synacor.com> References: <6A.35.25232.FCCBBD05@smtp01.insight.synacor.com> Date: Wed, 26 Dec 2012 20:38:49 -0800 Message-ID: <CAN6yY1st+cPrL-sOY6tgK6-nSP9k9EbAsyyLW+SGAnF1_aZg0w@mail.gmail.com> Subject: Re: Can't build kernel with ndis From: Kevin Oberman <kob6558@gmail.com> To: Thomas Mueller <mueller23@insightbb.com> Content-Type: text/plain; charset=UTF-8 Cc: Ian Lepore <freebsd@damnhippie.dyndns.org>, freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable> List-Post: <mailto:freebsd-stable@freebsd.org> List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 27 Dec 2012 04:38:57 -0000 On Wed, Dec 26, 2012 at 7:13 PM, Thomas Mueller <mueller23@insightbb.com> 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. > > 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? If you want to insert the auditdistd user manually, that is fine, though I find doing it with mergemaster easier. (If you use it correctly ('m' option), it won't destroy your password file. But don't do it with vi. the actual pssword file is only a part of the process and the tool to properly edit it is vipw. Ir will edit /etc/passed, update master.passwd file, and, most importantly, update actual passworf databases. You can manually do this by running pwd_mkdb. -- R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com