From nobody@FreeBSD.ORG Thu Sep 16 01:59:58 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5A35B14D34; Thu, 16 Sep 1999 01:59:57 -0700 (PDT)
Message-Id: <19990916085957.5A35B14D34@hub.freebsd.org>
Date: Thu, 16 Sep 1999 01:59:57 -0700 (PDT)
From: pavel_roskin@geocities.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: Sound drivers don't compile in 3.3-19990909-RC
X-Send-Pr-Version: www-1.0

>Number:         13772
>Category:       misc
>Synopsis:       Sound drivers don't compile in 3.3-19990909-RC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 16 02:00:02 PDT 1999
>Closed-Date:    Thu Sep 16 04:31:27 PDT 1999
>Last-Modified:  Thu Sep 16 04:31:56 PDT 1999
>Originator:     Pavel Roskin
>Release:        3.3-19990909-RC
>Organization:
Contex Software Ltd
>Environment:
FreeBSD wembley.typhoon.spb.ru 3.3-19990909-RC FreeBSD 3.3-19990909-RC #0: Thu Sep 16 01:42:56 MSD 1999     proski@myname.my.domain:/usr/src/sys/compile/WEMBLEY2  i386
>Description:
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

>Fix:


>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: pavel_roskin@geocities.com
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/13772: Sound drivers don't compile in 3.3-19990909-RC 
Date: Thu, 16 Sep 1999 11:14:27 +0200

 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.
 

From: Pavel Roskin <pavel_roskin@geocities.com>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/13772: Sound drivers don't compile in 3.3-19990909-RC 
Date: Thu, 16 Sep 1999 15:22:28 +0400 (EEST)

 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
 
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Thu Sep 16 04:31:27 PDT 1999 
State-Changed-Why:  
Originator confirms that the problem was caused by a missing snd0 
entry. 
>Unformatted:
