NetBSD Problem Report #860
From gnats Sat Mar 11 08:02:37 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id IAA05680 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 11 Mar 1995 08:02:32 -0800
Message-Id: <199503111602.LAA07767@jfwhome.funhouse.com>
Date: Sat, 11 Mar 1995 11:02:13 -0500
From: "John F. Woods" <jfw@jfwhome.funhouse.com>
Reply-To: jfw@jfwhome.funhouse.com
To: gnats-bugs@NetBSD.ORG
Subject: kernel will not link with ProAudio Spectrum driver specified
X-Send-Pr-Version: 3.2
>Number: 860
>Category: port-i386
>Synopsis: kernel will not link with ProAudio Spectrum driver specified
>Confidential: no
>Severity: critical
>Priority: low
>Responsible: gnats-admin (GNATS administrator)
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 11 08:05:17 +0000 1995
>Closed-Date: Wed Mar 22 19:02:38 +0000 1995
>Last-Modified:
>Originator: John F. Woods
>Release: March 9. 1995
>Organization:
Misanthropes-R-Us
>Environment:
486/33 ISA
NetBSD-current
System: NetBSD jfwhome.funhouse.com 1.0A NetBSD 1.0A (JFW) #10: Fri Mar 3 22:38:25 EST 1995 jfw@jfwhome.funhouse.com:/usr/src/sys/arch/i386/compile/JFW i386
>Description:
If you config a kernel with "pas0" specified instead of "sb0", the
link will fail, with sbdsp.o referring to an undefined symbol
"sb_device". sbdsp.c believes it should initialize the Sound Blaster
driver's version string for it; sb.c ought to take that responsibility.
>How-To-Repeat:
See above.
>Fix:
Apply the following patch, which moves that initialization out of
sbdsp.c and into sb.c, analogous to pas.c:
*** sb.c.orig Sat Mar 11 10:54:14 1995
--- sb.c Sat Mar 11 10:54:57 1995
***************
*** 284,289 ****
--- 284,292 ----
sbdsp_attach(&sc->sc_sbdsp);
+ sprintf(sb_device.version, "%d.%d",
+ SBVER_MAJOR(sc->sc_model), SBVER_MINOR(sc->sc_model));
+
if (audio_hardware_attach(&sb_hw_if, (caddr_t)&sc->sc_sbdsp) != 0)
printf("sb: could not attach to audio pseudo-device driver\n");
}
*** sbdsp.c.orig Sat Mar 11 10:53:49 1995
--- sbdsp.c Sat Mar 11 10:55:08 1995
***************
*** 87,94 ****
int wmidi;
} sberr;
- extern struct audio_device sb_device;
-
#ifdef DEBUG
void
sb_printsc(struct sbdsp_softc *sc)
--- 87,92 ----
***************
*** 192,199 ****
}
printf(": dsp v%d.%d\n",
SBVER_MAJOR(sc->sc_model), SBVER_MINOR(sc->sc_model));
- sprintf(sb_device.version, "%d.%d",
- SBVER_MAJOR(sc->sc_model), SBVER_MINOR(sc->sc_model));
}
/*
--- 190,195 ----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: brezak
State-Changed-When: Wed Mar 22 11:02:38 PST 1995
State-Changed-Why:
This has been fixed. The suggested patch was applied.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.