Re: [tkined] scotty-2.1.6 make fails with RedHat-4.2

Heiko Boch (boch@lrc.di.epfl.ch)
Fri, 5 Sep 1997 09:34:36 +0200

> When I try to make scotty-2.1.6 under RedHat Linux 4.2 (out of the box,
> pretty full install) it fails thus:
>
> ether_xdr.c: In function `xdr_etherstat':
> ether_xdr.c:34: parse error before `int'
> ether_xdr.c:64: `i' undeclared (first use this function)
> ether_xdr.c:64: (Each undeclared identifier is reported only once
> ether_xdr.c:64: for each function it appears in.)
> ether_xdr.c: In function `xdr_etheraddrs':
> ether_xdr.c:181: parse error before `int'
> make: *** [ether_xdr.o] Error 1
>
> (all I changed in the Makefile created by ./configure, was:
>
> prefix = /usr/local
>
> )
>
> Any ideas ?

Yes, your rpcgen is broken. Try the following script on the generated
C files (in the unix directory):

---------------------------------------------------------------
for f in *.c
do
echo $f
mv $f $f.bak
sed -e "s%^(void)buf;$%/*what's this?*/%g" $f.bak > $f
done
---------------------------------------------------------------

Heiko

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.