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

NAM compilation problems under Solaris 2.6



When compiling NAM under Solaris 2.6 I received the following error.

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

This appears to be the result with a problem with configure. After a bit of
hacking I have come
up with a fix. For NAM 1.0a5 make the following changes:

	Add this to the file xwd.c as line 92         #define SIZEOF(x)
sz_##x

	Comment out line 59 of the file config.h.  /* typedef signed char
int8_t;  */

	Comment out line 45 in random.cc          /* extern "C" int
srandom(...);  */

Then do a 'make' and enjoy!. 
Note that the line numbers may be different for other versions of NAM.
I'm using Solaris 2.6 with gcc 2.8.1 on a Sparc 20. 

Art Mena
Boeing Reusable Space Systems
USC