Compiling Tcltkgrass

Here I go to try to install again.

Currently, the program will compile fine with a few warnings.
The problem is I get a core dump when I try to run the
program. The warnings are the following:

"draw.c", line 50: warning: argument is incompatible with prototype: arg #2
"draw.c", line 74: warning: argument is incompatible with prototype: arg #2"draw.c", line 115: warning: argument is incompatible with prototype: arg #
"draw.c", line 829: warning: assignment type
"draw.c", line 978: warning: assignment type mismatch

Line 50, 74, and 115 are the same line:

timer = Tk_CreateTimerHandler(TIMEINTERVAL, timerproc, (ClientData)

Line 829

rcolor_ptr = layer->rcolor;

Line 978

  rcolor_ptr = layer->rcolor;

I do have tcl7.3 and tk3.6 working. Sample tests have been
run on both of them.

My hardware is a SUN SPARC10 running Solaris 2.2.

Has anyone had this problem before?

Kym M. Lenkus
Davidson Laboratory

KLENKUS1@VAXC.STEVENS-TECH.EDU writes on 11 May 94:

Currently, the program will compile fine with a few warnings.
The problem is I get a core dump when I try to run the
program. The warnings are the following:

"draw.c", line 50: warning: argument is incompatible with prototype: arg #2

timer = Tk_CreateTimerHandler(TIMEINTERVAL, timerproc, (ClientData)

timerproc is supposed to be void, not int as it is in draw.c (see
tk.h).

--Darrell

  I had the same problem, but when I re-installed a fresh copy
of tcl7.3, everything seemed fine. Something might be out of sync in
your setup. If you're sure your running tcl7.3 and can't figure out
whats going on, just try installing a fresh copy from sprite.

  don't ask me why, Im not sure I know.

  -drew

In mailgate.grass.user you write:

"Kym" == grassu-list <grassu-list@max.cecer.army.mil> writes:

    Kym> Currently, the program will compile fine with a few warnings.
    Kym> The problem is I get a core dump when I try to run the
    Kym> program. The warnings are the following:
...
    Kym> Has anyone had this problem before?

What compiler are you using? If it is gcc you must use the
compiler switch '-fwritable-strings'.

Tom
--
Tom Moore tmoore@pnfi.forestry.ca
Petawawa National Forestry Institute
Canadian Forest Service, Box 2000, Chalk River +1 (613) 589-3048
ONT K0J 1J0 CANADA +1 (613) 589-2275 telefax