Subject: port-vax/35866: options DIAGNOSTIC does not work on vax -current
To: None <port-vax-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <hbent@cs.oberlin.edu>
List: netbsd-bugs
Date: 02/28/2007 02:15:00
>Number:         35866
>Category:       port-vax
>Synopsis:       options DIAGNOSTIC does not work on vax -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 28 02:15:00 +0000 2007
>Originator:     Henry Bent
>Release:        4.99.13
>Organization:
Oberlin College CIT
>Environment:
NetBSD hbent3 4.99.9 NetBSD 4.99.9 (GENERIC.MPACPI) #1: Tue Jan 23 14:28:54 EST 2007 root@hbent3:/usr/obj/src-current/sys/arch/i386/compile/GENERIC.MPACPI i386
>Description:
-current from Feb 26 cannot build a kernel on vax if options DIAGNOSTIC is selected.  Here is the error, with a config that is simply GENERIC + diagnostic:

#      link  DGENERIC/netbsd
/usr/obj/src-current/tooldir.NetBSD-4.99.9-i386/bin/vax--netbsdelf-ld -Map netbsd.map --cref -N -Ttext 80000000 -e start -S -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
kern_mutex.o: In function `sched_lock_idle':
kern_mutex.c:(.text+0x16a): undefined reference to `Slocktry'
kern_mutex.o: In function `mutex_vector_exit':
kern_mutex.c:(.text+0x229): undefined reference to `Sunlock'
kern_mutex.o: In function `sched_unlock_idle':
kern_mutex.c:(.text+0x2ee): undefined reference to `Sunlock'
kern_mutex.o: In function `mutex_vector_enter':
kern_mutex.c:(.text+0x349): undefined reference to `Slocktry'
kern_mutex.c:(.text+0x3e0): undefined reference to `Slocktry'
kern_mutex.o: In function `mutex_tryenter':
kern_mutex.c:(.text+0x4b9): undefined reference to `Slocktry'
kern_mutex.c:(.text+0x510): undefined reference to `Slocktry'

>How-To-Repeat:
Turn on options DIAGNOSTIC in a vax kernel and try to compile it.
>Fix: