From owner-freebsd-current Fri Jan 5 14:58:22 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA08710 for current-outgoing; Fri, 5 Jan 1996 14:58:22 -0800 (PST) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA08704 for ; Fri, 5 Jan 1996 14:58:11 -0800 (PST) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.11/8.6.9) id SAA11650; Fri, 5 Jan 1996 18:00:45 -0500 From: A boy and his worm gear Message-Id: <199601052300.SAA11650@skynet.ctr.columbia.edu> Subject: Re: Make world fails on /usr/include/rpcsvc To: james@miller.cs.uwm.edu (Jim Lowe) Date: Fri, 5 Jan 1996 18:00:44 -0500 (EST) Cc: current@freebsd.org In-Reply-To: <199601051716.LAA02836@miller.cs.uwm.edu> from "Jim Lowe" at Jan 5, 96 11:16:48 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-current@freebsd.org Precedence: bulk Of all the gin joints in all the towns in all the world, Jim Lowe had to walk into mine and say: > > > > ===> lib/librpcsvc > > > cc -O -m486 -pipe -I/usr/include/rpcsvc -c klm_prot_xdr.c -o klm_prot_xdr.o > > > In file included from klm_prot_xdr.c:6: > > > /usr/include/rpcsvc/klm_prot.h:10: parse error before `xdr_klm_stats' > > > /usr/include/rpcsvc/klm_prot.h:10: warning: data definition has no type or storage class > > [chop] > > > > For the _third_ time: > > > > You need to build and _install_ the new rpcgen and then rebuild > > /usr/include/rpcsvc _before_ you build librpcsvc: > > > > # cd /usr/src/usr.bin/rpcgen > > # make > > # make install > > # cd /usr/src > > # make includes > > > > Then it'll work fine. > > > Not quite... I tried this and it didn't work (See attached script). > Is there something else that we are I and some other people are missing? [output of make includes removed] > (miller-genuine-draft) 55# cd /usr/src/lib/librpcsvc > (miller-genuine-draft) 56# make > cc -O -I/usr/include/rpcsvc -c klm_prot_xdr.c -o klm_prot_xdr.o > In file included from klm_prot_xdr.c:6: > /usr/include/rpcsvc/klm_prot.h:10: parse error before `xdr_klm_stats' > /usr/include/rpcsvc/klm_prot.h:10: warning: data definition has no type or storage class > /usr/include/rpcsvc/klm_prot.h:15: parse error before `netobj' > /usr/include/rpcsvc/klm_prot.h:15: warning: no semicolon at end of struct or union I can't explain it, but somehow, some way, you still haven't properly rebuilt the /usr/include/rpcsvc directory. I can tell because the line numbers in these errors don't correspond to the klm_prot.h generated by the new rpcgen, but they do correspond to the output of the old rpcgen. The klm_prot.h header should begin like this: /* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _KLM_PROT_H_RPCGEN #define _KLM_PROT_H_RPCGEN #include #define LM_MAXSTRLEN 1024 enum klm_stats { klm_granted = 0, klm_denied = 1, klm_denied_nolocks = 2, klm_working = 3 }; typedef enum klm_stats klm_stats; [... and so on ...] Take a look at the headers after you run make includes and see if it matches this. Note that the new rpcgen inserts the 'please do not edit' message at the top of the file, whereas the old one didn't. This is a sure fire way to tell if things worked correctly. You can also try running the klm_prot.x file through the new rpcgen by hand to see if you get the correct output. If you don't, then somehow you're still using the old rpcgen. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= License error: The license for this .sig file has expired. You must obtain a new license key before any more witty phrases will appear in this space. =============================================================================