Error #2 Compiling Grass5.0beta
egm2 at jps.net
egm2 at jps.net
Sat Jul 31 02:36:55 EDT 1999
(sorry if this is a repost)
On a GNU/Linux, Debian-potato system:
Make fails with:
gcc -g -O2 -I/usr/local/src/grass5.0beta/src/include -c symtab.c
symtab.c: In function `ExecuteReclass':
symtab.c:263: incompatible type for argument 1 of `wait'
make[1]: *** [OBJ.i686-pc-linux-gnu/symtab.o] Error 1
make[1]: Leaving directory
`/usr/local/src/grass5.0beta/src/raster/r.binfer'
GISGEN failure at STEP: src/raster/r.binfer
make: *** [do-install] Error 1
Here's the function code snippet:
253 int
254 ExecuteReclass (char *file)
255 {
256 int pid;
257 unsigned int status;
258
259 if ( (pid = fork()) == 0) {
260 execl("/bin/sh","sh",file);
261 _exit(1);
262 }
263 wait(&status);
264
265 return 0;
266 }
Changing the status declaration to:
int * status;
And changing the wait() call to:
wait(status);
allowed the compile to continue. "status" is just thrown away anyways.
--
Eric G. Miller
Powered by the POTATO (http://www.debian.org)!
More information about the grass-user
mailing list