Subject: port-pmax/2740: kernel compilation fails with COMPAT_ULTRIX
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@aarhus1.uni-c.dk>
List: netbsd-bugs
Date: 09/09/1996 10:56:42
>Number:         2740
>Category:       port-pmax
>Synopsis:       VSWTCH undefined, used in ultrix_ioctl.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep  9 02:05:00 1996
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
UNI-C
>Release:        1.2_BETA, sup'ed 9. sep. 1996
>Environment:
System: NetBSD aarhus1.uni-c.dk 1.2_BETA NetBSD 1.2_BETA (AARHUS1) #5: Wed Aug 14 07:40:07 MET DST 1996 erik@aarhus1.uni-c.dk:/usr/src/sys/arch/pmax/compile/AARHUS1 pmax


>Description:
Another show-stopper for 1.2:

Try to compile a PMAX kernel with COMPAT_ULTRIX enabled.

cc  -O2 -Werror -I. -I../../../../arch -I../../../.. -DCPU_R3000 -DDS5000_100 -DSWAPPAGER -DVNODEPAGER -DDEVPAGER -DDEBUG -DCOMPAT_43 -DKTRACE -DNKMEMCLUSTERS=1024 -DFIFO -DFFS -DQUOTA -DMFS -DNFSCLIENT -DKERNFS -DNULLFS -DINET -DTCP_COMPAT_42 -DCOMPAT_ULTRIX -DHZ=256 -D_KERNEL -Dpmax   -c ../../../../compat/ultrix/ultrix_ioctl.c
../../../../compat/ultrix/ultrix_ioctl.c: In function `btios2stios':
../../../../compat/ultrix/ultrix_ioctl.c:370: `VSWTCH' undeclared (first use this function)
../../../../compat/ultrix/ultrix_ioctl.c:370: (Each undeclared identifier is reported only once
../../../../compat/ultrix/ultrix_ioctl.c:370: for each function it appears in.)
*** Error code 1

ultrix_ioctl.c (dated yesterday) contains the following lines, but
VSWTCH is not defined in any .h file on my system.

#ifdef COMPAT_ULTRIX
	st->c_cc[7] = NATIVE_TO_EMUL_CC(bt->c_cc[VSWTCH]);
#else
	st->c_cc[7] = 0;
#endif

Fix: Either define VSWTCH somewhere or change the above-cited assignment.

>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted: