[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Trouble compiling NAM 1.0a5



I think its an apparent problem with configure and Solaris, maybe due to an
"improvement".
Heres my "fix":
http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9809/0093.html

art mena



> ----------
> From: 	Lloyd Wood[SMTP:[email protected]]
> Reply To: 	Lloyd Wood
> Sent: 	Wednesday, September 30, 1998 9:56 AM
> To: 	Chris
> Cc: 	[email protected]
> Subject: 	Re: Trouble compiling NAM 1.0a5
> 
> On Wed, 30 Sep 1998, Chris wrote:
> 
> > I am having trouble compiling the latest release (1.0a5) of NAM.  I am
> > running Solaris 2.6 and using gcc version 2.8.1.  I get the following
> > error message:
> > 
> > --------------------------------------------------------------------
> > make
> > rm -f xwd.o; gcc -o xwd.o -c -O2 -DTCL_TK  -DNDEBUG -mv8 -msupersparc
> -D__svr4__ -DUSE_SHM -DHAVE_LIBTCLCL1_0B5 -DHAVE_TCLCL_H
> -DHAVE_LIBOTCL1_0A2 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H
> -DHAVE_LIBTCL8_0 -DHAVE_TCL_H -I.   -I../TclCL -I..
> > ../otcl
> -I/projects/ccrg3/chris/ns-allinone-2.1b3/nam-1.0a5/../tk8.0/generic
> > I../tcl8.0/generic xwd.c
> > xwd.c: In function `xwd_Window_Dump':
> > xwd.c:279: `sz_' undeclared (first use in this function)
> > xwd.c:279: (Each undeclared identifier is reported only once
> > xwd.c:279: for each function it appears in.)
> > xwd.c:279: parse error before `XWDheader'
> > xwd.c:328: parse error before `XWDheader'
> > xwd.c: At top level:
> > xwd.c:339: parse error before `for'
> > xwd.c:347: parse error before `1'
> > xwd.c:347: warning: data definition has no type or storage class
> > xwd.c:364: parse error before `1'
> > xwd.c:364: warning: data definition has no type or storage class
> > xwd.c:377: parse error before `->'
> > *** Error code 1
> > make: Fatal error: Command failed for target `xwd.o'
> > 
> > Compilation exited abnormally with code 1 at Wed Sep 30 09:22:40
> > ---------------------------------------------------------------------
> > 
> > The strange thing is, I cannot find any parameter 'sz_'....
> 
> latest daily snapshot or 1.0a5? I built 1.0a5 without problems...
> 
> It looks like a typo. An extra inserted space?
> 
> You'll see that XWDFile.h contains:
> 
> XWDFile.h:#define sz_XWDheader 100
> XWDFile.h:#define sz_XWDColor 12
> 
> but in the nams I've built, the XWDheader struct is referred to by
> itself, e.g.:
> 
> header_size = SIZEOF(XWDheader) + win_name_size;
> 
> hth,
> 
> L.
> 
> vaguely wondering about X changes under Solaris 2.6.
> 
> <http://www.ee.surrey.ac.uk/Personal/L.Wood/>PGP<[email protected]>
>