Re: compilation error on Scotty

Cameron Laird (claird@Starbase.NeoSoft.COM)
Mon, 23 Dec 1996 06:38:54 -0600 (CST)

From owner-tkined@ibr.cs.tu-bs.de Fri Dec 20 20:44:41 1996
Date: Fri, 20 Dec 96 16:56:50 CST
From: jayj@comm.mot.com (Jay W. Jung)
.
.
.
I am trying to compile Scotty on my machine (SunOS 4.1.3), but it is not
successful so far.

I am getting compilation errors as below when I compile to create tnm.so
The configuration shell script runned fine.

$ make
cc -c -O -PIC -I. -I./../tnm/generic -I/usr/local/include
./../tnm/generic/tnmIcmp.c
"./../tnm/generic/tnmIcmp.c", line 118: no automatic aggregate initialization
"./../tnm/generic/tnmIcmp.c", line 118: no automatic aggregate initialization
"./../tnm/generic/tnmIcmp.c", line 118: operands of = have incompatible types
.
.
.
Make this change:
===================================================
118c118,119
< TnmIcmpTarget target = icmpPtr->targets[i];

---
> 	TnmIcmpTarget target;
> 	target = icmpPtr->targets[i];
===================================================

Juergen, let's include this in the Porting Notes <URL:http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ porting.notes>. The one question I have is whether you might want to change the source itself. I know it's a nuisance for the SunOS compiler not to under- stand this initialization, but the fact is that many people working in network management *do* rely on this compiler.

Cameron Laird Network Engineered Solutions http://starbase.neosoft.com/~bodi/nesi.html claird@calladan.com +1 713 763 8366 claird@NeoSoft.com +1 281 996 8546 FAX Houston WWW Business Guide: http://starbase.neosoft.com/~bodi/HouGuide.html