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

Re: Installation Problems with NAM (fwd)[4~



> 
> On Tue, 09 Feb 1999 22:36:31 GMT, Lloyd Wood wrote: 
> >On Tue, 9 Feb 1999, Gideon R. Saroufiem wrote:
> >
> >> I have just installed the all-in-one version for the
> >> SUN Sparc station.
> >
> >uname -a
> >might be helpful - Solaris 2.6, right?


SunOS queens.ece.gatech.edu 5.7 Generic sun4u sparc SUNW,Ultra-5_10 

> >
> >[..]
> >> xwd.c: In function `xwd_Window_Dump':
> >> xwd.c:279: `sz_' undeclared (first use this function)
> >> xwd.c:279: (Each undeclared identifier is reported only once
> >> xwd.c:279: for each function it appears in.)
> >
> >etc etc.

> >See:
> >http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9809/0093.html
> >for a fix.

I DID.

> 
> 
> Gideon, can you look at the current nam snapshot and see if that works
> for you?  I think the changes in the URL Lloyd points to are in the
> current version, but I want to make sure.
> 
> Thanks,
>    -John Heidemann
> 
> 

Yes and no.

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

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

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


I did step 1.
Step 2 did not correspond to that line. So I did not do Step 2.
Step 3 was not even there.

So I ran the make again, here is my new output:

.............................................................
rm -f paint.o; gcc -o paint.o -c -O2 -DTCL_TK  -DNDEBUG -mv8 -msupersparc
-D__svr4__ -DUS
_0B6 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A3 -DHAVE_OTCL_H -DHAVE_DBG_H
-DHAVE_LIBTK8_0 -DHAVE
 -DHAVE_TCL_H -I.   -I../tclcl -I../otcl -I/usr/local/include
-I/home/ee2/cwwu/gideon/ns-
../tk8.0/generic -I../tcl8.0/generic paint.cc
paint.cc: In method `Paint::Paint()':
paint.cc:50: warning: passing `char *' to argument 3 of
`Tk_GetColor(Tcl_Interp *, Tk_Win
int, char *)' lacks a cast
/usr/local/include/tk.h:578: too few arguments to function `struct XColor
* Tk_GetColor(s
ruct Tk_Window_ *, long unsigned int, char *)'
paint.cc:50: at this point in file
paint.cc: In method `struct _XGC * Paint::text_gc(long unsigned int)':
paint.cc:83: warning: passing `char *' to argument 3 of
`Tk_GetColor(Tcl_Interp *, Tk_Win
int, char *)' lacks a cast
/usr/local/include/tk.h:578: too few arguments to function `struct XColor
* Tk_GetColor(s
ruct Tk_Window_ *, long unsigned int, char *)'
paint.cc:83: at this point in file
paint.cc: In method `int Paint::lookup(const char *, int)':
paint.cc:104: warning: passing `const char *' as argument 1 of
`Tk_GetUid(char *)' discar
paint.cc:105: warning: passing `char *' to argument 3 of
`Tk_GetColor(Tcl_Interp *, Tk_Wi
 int, char *)' lacks a cast
/usr/local/include/tk.h:578: too few arguments to function `struct XColor
* Tk_GetColor(s
ruct Tk_Window_ *, long unsigned int, char *)'
paint.cc:105: at this point in file
paint.cc: In method `int Paint::lookupXor(const char *, int)':
paint.cc:142: warning: passing `const char *' as argument 1 of
`Tk_GetUid(char *)' discar
paint.cc:143: warning: passing `char *' to argument 3 of
`Tk_GetColor(Tcl_Interp *, Tk_Wi
 int, char *)' lacks a cast
/usr/local/include/tk.h:578: too few arguments to function `struct XColor
* Tk_GetColor(s
ruct Tk_Window_ *, long unsigned int, char *)'
paint.cc:143: at this point in file
*** Error code 1
make: Fatal error: Command failed for target `paint.o'
.......................................................................

Thanks again, any insight would be apreciated.

Gideon R. Saroufiem
Georgia Institute of Technology
Email: [email protected]