Subject: mscpprintf undefined if no MSCP devices (#406) Index: sys/pdp/kern_pdp.c 2.11BSD Description: The module kern_pdp.c will not compile if no MSCP devices are present in the kernel. Repeat-By: Configure a kernel with 'NRAC' set to 0 in the config file. Notice that the symbol 'mscpprintf' will be undefined during the compile of kern_pdp.c Fix: Apply the small patch below. There was a logical typographic error in kern_pdp.c - the '#ifdef' directive was used rather than the '#if' directive. Cut where indicated saving to a file (/tmp/406). Then: patch -p0 < /tmp/406 There is no need to recompile or install a new kernel at this time. Most PDP-11 systems have MSCP devices today so this fix will not affect those systems. Non-GENERIC kernels being built for use with various emulators are the ones which will benefit from this patch. As always this and previous updates to 2.11BSD are available via anonymous FTP to either FTP.IIPO.GTEGSC.COM or MOE.2BSD.COM in the directory /pub/2.11BSD. ---------------------------cut here-------------------------- *** /sys/pdp/kern_pdp.c.old Fri Apr 3 20:15:08 1998 --- /sys/pdp/kern_pdp.c Tue May 12 21:04:27 1998 *************** *** 3,9 **** * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)kern_pdp.c 1.3 (2.11BSD) 1998/4/3 */ #include "param.h" --- 3,9 ---- * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)kern_pdp.c 1.4 (2.11BSD) 1998/5/12 */ #include "param.h" *************** *** 242,248 **** return(EOPNOTSUPP); } #endif ! #ifdef NRAC > 0 case CPU_MSCP: /* All sysctl names at this level are terminal */ if (namelen != 2) --- 242,248 ---- return(EOPNOTSUPP); } #endif ! #if NRAC > 0 case CPU_MSCP: /* All sysctl names at this level are terminal */ if (namelen != 2) *** /VERSION.old Thu Apr 30 20:09:49 1998 --- /VERSION Tue May 12 21:03:49 1998 *************** *** 1,5 **** ! Current Patch Level: 405 ! Date: April 30, 1998 2.11 BSD ============ --- 1,5 ---- ! Current Patch Level: 406 ! Date: May 12, 1998 2.11 BSD ============