Re: ISDN kernel build fials

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Wed, 27 Apr 2005 08:12:04 -0700
On Wed, Apr 27, 2005 at 10:01:57AM +0100, Brian Candler wrote:
> FYI, building -CURRENT as of yesterday, with NO_IPFILTER=yes in make.conf
> 
> make buildworld was successful. make buildkernel KERNCONF=FOO gave:
> 
> cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I. -I/export/src/5.3-RELEASE/usr/src/sys -I/export/src/5.3-RELEASE/usr/src/sys/contrib/dev/acpica -I/export/src/5.3-RELEASE/usr/src/sys/contrib/altq -I/export/src/5.3-RELEASE/usr/src/sys/contrib/ipfilter -I/export/src/5.3-RELEASE/usr/src/sys/contrib/pf -I/export/src/5.3-RELEASE/usr/src/sys/contrib/dev/ath -I/export/src/5.3-RELEASE/usr/src/sys/contrib/dev/ath/freebsd -I/export/src/5.3-RELEASE/usr/src/sys/contrib/ngatm -I/export/src/5.3-RELEASE/usr/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror  /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c
> /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c:59: error: `NI4BTRC' undeclared here (not in a function)
> /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c:59: error: storage size of `trace_queue' isn't known
> /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c:61: error: storage size of `device_state' isn't known
> /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c:59: warning: 'trace_queue' defined but not used
> /export/src/5.3-RELEASE/usr/src/sys/i4b/driver/i4b_trace.c:61: warning: 'device_state' defined but not used
> *** Error code 1
> 
> Stop in /usr/obj/export/src/5.3-RELEASE/usr/src/sys/FOO.
> *** Error code 1
> 
> Stop in /export/src/5.3-RELEASE/usr/src.
> *** Error code 1
> 
> Stop in /export/src/5.3-RELEASE/usr/src.
> 
> The FOO kernel config is given below, as a diff against current's GENERIC.
> More or less the same config had worked on 5.3-RELEASE, except I had counts
> for some of the devices, e.g.
> 
> device          "i4btrc"        4
> 
> which I had to change to
> 
> device          "i4btrc"
> 
> to get config to work with -CURRENT.

You want to copy the examples from NOTES that looks like:

device          i4btrc
options         NI4BTRC=4

When counts were removed from the config file, I4B and vcoda where the
only pieces of code that still used them and I4B was to hard to fix
given that no one seems to care enough to actually maintain it.  Thus
the counts were made into options.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4

Received on Wed Apr 27 2005 - 13:12:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:33 UTC