Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2012 20:38:49 -0800
From:      Kevin Oberman <kob6558@gmail.com>
To:        Thomas Mueller <mueller23@insightbb.com>
Cc:        Ian Lepore <freebsd@damnhippie.dyndns.org>, freebsd-stable@freebsd.org
Subject:   Re: Can't build kernel with ndis
Message-ID:  <CAN6yY1st%2BcPrL-sOY6tgK6-nSP9k9EbAsyyLW%2BSGAnF1_aZg0w@mail.gmail.com>
In-Reply-To: <6A.35.25232.FCCBBD05@smtp01.insight.synacor.com>
References:  <6A.35.25232.FCCBBD05@smtp01.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1st%2BcPrL-sOY6tgK6-nSP9k9EbAsyyLW%2BSGAnF1_aZg0w>