Subject: kern/838: sparc kernel doesn't link due to new audio device
To: None <gnats-admin@NetBSD.ORG>
From: Chuck Cranor <chuck@netbsd.ccrc.wustl.edu>
List: netbsd-bugs
Date: 03/02/1995 10:50:23
>Number:         838
>Category:       kern
>Synopsis:       ld: Unexpected multiple definitions of symbol `_audioopen', type 0x1 (etc.)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar  2 10:50:18 1995
>Originator:     Chuck Cranor
>Organization:
Washington University
>Release:        NetBSD-current source date sup 02-Mar-1995 (today)
>Environment:
		Any NetBSD/sparc -current kernel compile 

>Description:
loading netbsd_nfs
audio.o: Definition of symbol `_audio_backlog' (multiply defined)
audio.o: Definition of symbol `_audioattach' (multiply defined)
audio.o: Definition of symbol `_audioopen' (multiply defined)
audio.o: Definition of symbol `_audioclose' (multiply defined)
audio.o: Definition of symbol `_audioread' (multiply defined)
audio.o: Definition of symbol `_audiowrite' (multiply defined)
audio.o: Definition of symbol `_audioioctl' (multiply defined)
audio.o: Definition of symbol `_audioselect' (multiply defined)
bsd_audio.o: Definition of symbol `_audio_backlog' (multiply defined)
bsd_audio.o: Definition of symbol `_audioattach' (multiply defined)
bsd_audio.o: Definition of symbol `_audioopen' (multiply defined)
bsd_audio.o: Definition of symbol `_audioclose' (multiply defined)
bsd_audio.o: Definition of symbol `_audioread' (multiply defined)
bsd_audio.o: Definition of symbol `_audiowrite' (multiply defined)
bsd_audio.o: Definition of symbol `_audioioctl' (multiply defined)
bsd_audio.o: Definition of symbol `_audioselect' (multiply defined)
ld: Unexpected multiple definitions of symbol `_audioopen', type 0x1

ld: Unexpected multiple definitions of symbol `_audioclose', type 0x1

ld: Unexpected multiple definitions of symbol `_audioread', type 0x1

ld: Unexpected multiple definitions of symbol `_audiowrite', type 0x1

ld: Unexpected multiple definitions of symbol `_audioioctl', type 0x1

ld: Unexpected multiple definitions of symbol `_audioselect', type 0x1

*** Error code 1

Stop.

>How-To-Repeat:
	try and compile a -current kernel
>Fix:
	tmp "hack" fix: edit kernel "Makefile" generated by config.new
	and remove "audio.o" from $(OBJS).

	appears to be due to recent work on src/sys/dev/audio.c.
	should NetBSD/sparc be using this?   i don't know... it needs
	to be looked into.
>Audit-Trail:
>Unformatted: