Subject: kern/10491: kernel compilation problem when only atapibus is on umass
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@danbala.tuwien.ac.at>
List: netbsd-bugs
Date: 06/30/2000 18:16:12
>Number:         10491
>Category:       kern
>Synopsis:       kernel compilation problem when only atapibus is on umass
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 30 18:17:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Wiz
>Release:        1.5A/last update around 28 June 2000
>Organization:
Thomas Klausner - wiz@danbala.tuwien.ac.at
Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und
das nennen sie ihren Standpunkt. (found on /.)
>Environment:
	
System: NetBSD hiro 1.4ZD NetBSD 1.4ZD (HIRO.ISDN) #3: Mon Jun 12 17:44:28 CEST 2000 wiz@hiro:/archive/cvs/src/sys-i4b/arch/i386/compile/HIRO.ISDN i386
>Description:
If the only (uncommented) mention of atapibus is in the following 
block (copied from generic):

# USB Mass Storage
umass*  at uhub? port ? configuration ? interface ?
atapibus* at umass? channel ?
scsibus* at umass? channel ?

then kernel compilation fails with:

ld -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ} vers.o
umass.o: In function `scsipiprint':
umass.o(.text+0x69d): undefined reference to `atapi_print'
*** Error code 1

since NATAPIBUS is set to one ('1') in atapibus.h, but obviously some files
fail to get compiled into the kernel.

>How-To-Repeat:
Remove all mentions of atapibus from a GENERIC kernel (v1.355 here) except
the one in the USB block mentioned above.
>Fix:
Sorry, unknown.

Workaround: comment out the line

atapibus* at umass? channel ?

in the kernel config.
>Release-Note:
>Audit-Trail:
>Unformatted: