RE: Compiling problems under scotty-2.1.6

David Poole (davep@extendsys.com)
Thu, 24 Jul 1997 13:09:36 -0600

I had this problem as well. Just move the declaration of 'i' before the
declaration of 'buf' so the code looks like:

int i;
register long *buf;
(void)buf;

There are a few other places with this difficulty as well. All are easy
to fix and the compile completes with no problems

ps - I'm using gcc 2.7.2.1 on (RedHat) Linux kernel 2.0.30.

>----------
>From: Armando Montiel Caba[SMTP:amontiel@www.ujsierra.mx]
>Sent: Thursday, July 24, 1997 7:45 AM
>To: tkined@ibr.cs.tu-bs.de
>Subject: Compiling problems under scotty-2.1.6
>
>Hi:
>
>This is the scotty version I was waiting for, because my system is using
>tcl7.6 an tk4.2, I'm now a mirror for:
>
>ftp.ibr.cs.tu-bs.de/pub/local/tkined/ (updated everyday)
>
>but I have the next error in compiling this:
>---------------------------------------------------------------------
>cc -c -O -fPIC -I. -I./../tnm/generic -I/usr/include ether_xdr.c
>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
>---------------------------------------------------------------------
>
>Some ideas? I'm not an expert in C++ coding but I'm trying to fix that.
>Any help would be appreciated.
>
>
>Armando Montiel Caba mailto:amontiel@www.ujsierra.mx
>http://www.ujsierra.mx/~amontiel Tel: (525) 752-14-44
>Beeper (525) 629-98-00 Clave 152906 Universidad Justo Sierra
>PGP fingerprint = 7C 61 38 2F 69 96 7A 95 E3 09 FF 7B D7 86 02 20
>
>--
>!! 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.
>

--
!! 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.