Bug 13772

Summary: Sound drivers don't compile in 3.3-19990909-RC
Product: Base System Reporter: pavel_roskin <pavel_roskin>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description pavel_roskin 1999-09-16 10:00:02 UTC
When compiling the kernel with sound drivers enabled,
there are errors at the link stage:
midi_synth.o: In function `midi_outc':
midi_synth.o(.text+0x3f): undefined reference to `midi_devs'
midi_synth.o: In function `prefix_cmd':
midi_synth.o(.text+0x90): undefined reference to `midi_devs'
midi_synth.o: In function `midi_synth_input':
midi_synth.o(.text+0xcd): undefined reference to `num_midis'
midi_synth.o(.text+0xea): undefined reference to `midi_devs'
midi_synth.o: In function `leave_sysex':
midi_synth.o(.text+0x2b0): undefined reference to `synth_devs'
midi_synth.o(.text+0x2d3): undefined reference to `midi_devs'
midi_synth.o: In function `midi_synth_ioctl':
midi_synth.o(.text+0x336): undefined reference to `synth_devs'
midi_synth.o: In function `midi_synth_kill_note':
midi_synth.o(.text+0x367): undefined reference to `synth_devs'

and so on

How-To-Repeat: Add to the kernel config file following lines:

device sb0      at isa? port 0x220 irq 5 drq 1
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device awe0     at isa? port 0x620

Full config is at
http://www.typhoon.spb.ru/~proski/bad_config
Comment 1 Sheldon Hearn 1999-09-16 10:14:27 UTC
On Thu, 16 Sep 1999 01:59:57 MST, pavel_roskin@geocities.com wrote:

> Add to the kernel config file following lines:
> 
> device sb0      at isa? port 0x220 irq 5 drq 1
> device sbxvi0   at isa? drq 5
> device sbmidi0  at isa? port 0x330
> device awe0     at isa? port 0x620

I think you forgot snd0. Read the comments in LINT, add snd0 and let me
know whether that fixes your problem.

Ciao,
Sheldon.
Comment 2 pavel_roskin 1999-09-16 12:22:28 UTC
Hello, Sheldon!

> > Add to the kernel config file following lines:
> > 
> > device sb0      at isa? port 0x220 irq 5 drq 1
> > device sbxvi0   at isa? drq 5
> > device sbmidi0  at isa? port 0x330
> > device awe0     at isa? port 0x620
> 
> I think you forgot snd0. Read the comments in LINT, add snd0 and let me
> know whether that fixes your problem.

Exactly. It helps.
Sorry for your time :-(

Pavel Roskin
Comment 3 Sheldon Hearn freebsd_committer freebsd_triage 1999-09-16 12:31:27 UTC
State Changed
From-To: open->closed

Originator confirms that the problem was caused by a missing snd0 
entry.