[3012] in Athena Bugs
VAX 6.3B, bug in cc
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Sat Aug 26 18:47:28 1989
Date: Sat, 26 Aug 89 05:06:00 -0400
From: Theodore Ts'o <tytso@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Reply-To: tytso@ATHENA.MIT.EDU
Bug:
If there is a argument of a subroutine which is of type void *,
the cc dies with a "schain botch" error.
Repeat-by:
Attempting to compile /afs/sipb/project/sunrpc/etc/rpcinfo.c or
/afs/athena/user/t/tytso/src/unfsd/unfsd.c using cc and gcc. Note that
pcc dies a horrible death, while gcc happily compiles the files.
(Makefiles in the directories)
Fix:
(Excerpted from /afs/sipb/project/sunrpc/README)
RPCSRC 3.9 11/30/87
This distribution contains Sun Microsystem's implementation of the
RPC and XDR protocols and is compatible with 4.2BSD and 4.3BSD. Also
included is complete documentation, utilities, RPC service
specification files, and demonstration services in the format used by
the RPC protocol compiler (rpcgen). See WHAT'S NEW below for
details.
.......
BUGFIX FOR 4.3BSD COMPILER
The use of a 'void *' declaration for one of the arguments in
the reply_proc() procedure in etc/rpcinfo.c will trigger a bug
in the 4.3BSD compiler. The bug is fixed by the following change to
the compiler file mip/manifest.h:
*** manifest.h.r1.1 Thu Apr 30 13:52:25 1987
--- manifest.h.r1.2 Mon Nov 23 18:58:17 1987
***************
*** 21,27 ****
/*
* Bogus type values
*/
! #define TNULL PTR /* pointer to UNDEF */
#define TVOID FTN /* function returning UNDEF (for void) */
/*
--- 21,27 ----
/*
* Bogus type values
*/
! #define TNULL INCREF(MOETY) /* pointer to MOETY -- impossible type */
#define TVOID FTN /* function returning UNDEF (for void) */
/*
Fix Mark II: Ditch pcc, and use gcc. :-)
- Ted