Subject: kern/22838: USB usscanner.c w/o SCSI fails at link time.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <erh@swapsimple.com>
List: netbsd-bugs
Date: 09/17/2003 16:35:06
>Number:         22838
>Category:       kern
>Synopsis:       USB usscanner.c w/o SCSI fails at link time.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 17 21:37:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 1.6Z
>Organization:
>Environment:
System: NetBSD poe.swapsimple.com 1.6Z NetBSD 1.6Z (POE) #4: Tue Sep 9 16:59:13 CDT 2003 root@poe.swapsimple.com:/usr/build/POE i386
Architecture: i386
Machine: i386
>Description:
	USB scanners that use SCSI emulation need the scsi subsystem in order
to compile and link (obviously).  This should be caught at configure time,
not at link time, since the errors:
/usr/src/sys/dev/usb/usscanner.c:318: undefined reference to `scsi_bustype'
/usr/src/sys/dev/usb/usscanner.c:327: undefined reference to `scsiprint'
	do not make it entirely obvious what the problem is.
>How-To-Repeat:
	Comment out all scsi stuff from a kernel, but leave usscanner in.
>Fix:
	I'm not familiar enough with config to know if this is possible, but
a dependency between usscanner and scsi is needed.
>Release-Note:
>Audit-Trail:
>Unformatted: