Compiling the kernel for the UDB built-in sound card

William Perkins (wperkins@us.net)
Fri, 27 Jun 1997 13:26:36 -0400 (EDT)


I have one of Dec's UDB system running Linux from the RedHat 4.2
distribution. The kernel compiles fine except when I try to compile
the code needed for the built in sound circuitry. I understand that
sound code needs to be compiled for the Micro$oft Sound System, but
2.0.30 kernel source included with the RedHat 4.2 dirtribution has
errors returned when I try compiling it.

I am using the following kernel config parameters when I compile:

#
# Sound
#
CONFIG_SOUND=y
# CONFIG_PAS is not set
# CONFIG_SB is not set
# CONFIG_ADLIB is not set
# CONFIG_GUS is not set
# CONFIG_MPU401 is not set
# CONFIG_UART6850 is not set
# CONFIG_PSS is not set
# CONFIG_GUS16 is not set
# CONFIG_GUSMAX is not set
CONFIG_MSS=y
# CONFIG_SSCAPE is not set
# CONFIG_TRIX is not set
# CONFIG_MAD16 is not set
# CONFIG_CS4232 is not set
# CONFIG_MAUI is not set
# CONFIG_AUDIO is not set
# CONFIG_MIDI is not set
# CONFIG_YM3812 is not set
MSS_BASE=530
MSS_IRQ=9
MSS_DMA=3
# CONFIG_LOWLEVEL_SOUND is not set

I get the following compile errors:

make[1]: Leaving directory `/usr/src/linux-2.0.30/arch/alpha/lib'
make[1]: Entering directory `/usr/src/linux-2.0.30/arch/alpha/math-emu'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs
-c -o fp
-emul.o fp-emul.c
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall -Wstrict-prototypes -g -O2 -pipe -mno-fp-regs
-c -o ie
ee-math.o ieee-math.c
ar rcs math-emu.a fp-emul.o ieee-math.o
make[1]: Leaving directory `/usr/src/linux-2.0.30/arch/alpha/math-emu'
ld -warn-multiple-gp -static -Ttext 0xfffffc0000310000 -N arch/alpha/kernel/head.o init/main.o
init/version.o
\
arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
net/network.a
\
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/net/net.a drivers/scsi/scsi.a
drivers/sound/sound.a
drivers/pci/pci.a \
/usr/src/linux-2.0.30/arch/alpha/math-emu/math-emu.a /usr/src/linux-2.0.30/arch/alpha/lib/lib.a
/usr/s
rc/linux-2.0.30/lib/lib.a /usr/src/linux-2.0.30/arch/alpha/lib/lib.a -o vmlinux
drivers/sound/sound.a(dev_table.o): In function `sound_install_audiodrv':
/usr/src/linux-2.0.30/drivers/sound/dev_table.c:549: undefined reference to `DMAbuf_init'
/usr/src/linux-2.0.30/drivers/sound/dev_table.c:549: undefined reference to `DMAbuf_init'
/usr/src/linux-2.0.30/drivers/sound/dev_table.c:550: undefined reference to `audio_init'
/usr/src/linux-2.0.30/drivers/sound/dev_table.c:550: undefined reference to `audio_init'
drivers/sound/sound.a(ad1848.o): In function `ad1848_output_block':
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:833: undefined reference to `DMAbuf_start_dma'
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:833: undefined reference to `DMAbuf_start_dma'
drivers/sound/sound.a(ad1848.o): In function `ad1848_start_input':
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:885: undefined reference to `DMAbuf_start_dma'
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:885: undefined reference to `DMAbuf_start_dma'
drivers/sound/sound.a(ad1848.o): In function `ad1848_interrupt':
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:1671: undefined reference to `DMAbuf_inputintr'
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:1671: undefined reference to `DMAbuf_inputintr'
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:1677: undefined reference to `DMAbuf_outputintr'
/usr/src/linux-2.0.30/drivers/sound/ad1848.c:1677: undefined reference to `DMAbuf_outputintr'
make: *** [vmlinux] Error 1
Command exited with non-zero status 2
2811.29user 194.72system 53:41.67elapsed 93%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (192616major+244682minor)pagefaults 0swaps
[root@wildwood:ttyp0] Thu Jun 26 04:56:19 /usr/src/linux-2.0.30
#

Can anyone give me a clue as where to look or go to resolve this problem.

Bill