Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: latest 'config' creates broken "ioconf.c" w/some custom kernels



On Sun, 26 Nov 2017, John D. Baker wrote:

> Another amd64 machine has a similar problem with:
> 
>   spkr*   at pcppi?               # PC speaker
>   midi*   at pcppi?               # MIDI interface to the PC speaker
> 
> defined in GENERIC and not elided/deleted in the custom kernel.  This
> is odd as other kernel configs are much the same, but this one causes
> 'config' to generate a broken "ioconf.c":
> 
> [...]
> --- ioconf.o ---
> ioconf.c:857:58: error: 'pspec34' undeclared here (not in a function)
>      { "spkr",  "spkr_pcppi",  0, STAR,    NULL,      0, &pspec34 },
>                                                           ^
> ioconf.c:857:5: error: missing initializer for field 'cf_pspec' of 'struct cfdata' [-Werror=missing-field-initializers]
>      { "spkr",  "spkr_pcppi",  0, STAR,    NULL,      0, &pspec34 },
>      ^
> In file included from ioconf.c:10:0:
> /x/current/src/sys/sys/device.h:275:25: note: 'cf_pspec' declared here
>   const struct cfparent *cf_pspec;/* parent specification */
>                          ^
> ioconf.c:863:5: error: missing initializer for field 'cf_pspec' of 'struct cfdata' [-Werror=missing-field-initializers]
>      { "midi",  "midi_pcppi",  0, STAR,    NULL,      0, &pspec34 },
>      ^
> In file included from ioconf.c:10:0:
> /x/current/src/sys/sys/device.h:275:25: note: 'cf_pspec' declared here
>   const struct cfparent *cf_pspec;/* parent specification */
>                          ^
> cc1: all warnings being treated as errors
> *** [ioconf.o] Error code 1
> 
> nbmake: stopped in /r1/build/current/obj/amd64/sys/arch/amd64/compile/FARADAY
> [...]

The machine in question has no need of "midi* at pcppi?", so that was
simple enough to elide.

Turns out "spkr* at pcppi?" now also requires "sysbeep0 at pcppi?" and then
that config built properly.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index