Subject: kernel 2.0 compilation problem
To: None <netbsd-help@netbsd.org>
From: Brieuc Jeunhomme <bbp@via.ecp.fr>
List: netbsd-help
Date: 01/20/2005 11:57:40
Hello,

the compilation of the 2.0 kernel gets stuck on my system, looking for
an audio related symbol:

ld -T ../../../../arch/i386/conf/kern.ldscript -Ttext c0100000 -e start
-X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
sbdsp.o(.text+0x1e1): In function `sbdsp_attach':
: undefined reference to `audio_default'
sbdsp.o(.text+0x1f0): In function `sbdsp_attach':
: undefined reference to `audio_default'
sb.o(.text+0x1c7): In function `sbattach':
: undefined reference to `audio_attach_mi'
*** Error code 1

This happens even when I comment out all audio drivers in the
configuration file.

I tried to compile both with and without these options:

sb0    at isa? port 0x220 irq 5 drq 1 drq2 5   # SoundBlaster
audio* at audiobus?
opl*   at sb?


And I can confirm this symbol has not been compiled:

# nm ../../../../arch/i386/compile/FOO/*.o | fgrep audio_attach
         U audio_attach_mi

Is there any option I should also turn on for this to be compiled?

Thanks to all

-- 
BBP