Subject: port-i386/6615: Kernel must have midi enabled to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: Krister Walfridsson <cato@ulysses.df.lth.se>
List: netbsd-bugs
Date: 12/19/1998 23:07:45
>Number:         6615
>Category:       port-i386
>Synopsis:       Kernel must have midi enabled to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 19 15:05:00 1998
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
	
>Release:        NetBSD-current Dec 18
>Environment:
	
System: NetBSD ulysses 1.3I NetBSD 1.3I (NWSCONS) #0: Fri Dec 18 23:28:31 CET 1998 cato@ulysses:/dsk2/tmp/nbsd981218.i386/src/sys/arch/i386/compile/NWSCONS i386


>Description:
Compiling a kernel without midi support fails with the message

  ld -z -Ttext F0100000 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
  opl.o: Undefined symbol `_midi_attach_mi' referenced from text segment

	
>How-To-Repeat:
Try to compile a kernel without midi support, i.e

--- GENERIC.orig        Sat Dec 19 20:35:35 1998
+++ GENERIC     Sat Dec 19 20:57:18 1998
@@ -518,9 +518,9 @@
 audio* at ym?
 
 # MIDI support
-midi*  at pcppi?               # MIDI interface to the PC speaker
-midi*  at sb?                  # SB MPU401 port
-midi*  at opl?                 # OPL FM synth
+#midi* at pcppi?               # MIDI interface to the PC speaker
+#midi* at sb?                  # SB MPU401 port
+#midi* at opl?                 # OPL FM synth
 
 # The spkr driver provides a simple tone interface to the built in speaker.
 #spkr0 at pcppi?               # PC speaker

and notice that you cannot do it.
	
>Fix:
	
>Audit-Trail:
>Unformatted: