[GRASS5] [bug #2076] (grass) Same compilation error for modules: src/misc/m.kappa and src/raster/r.in.doq

Glynn Clements glynn.clements at virgin.net
Mon Aug 25 08:27:49 EDT 2003


Request Tracker wrote:

> this bug's URL: http://intevation.de/rt/webrt?serial_num=2076
> -------------------------------------------------------------------------

> make[1]: Entering directory `/home/Stefano/grass5.0.2/src/misc/m.kappa/cmd'
> gcc -I/home/Stefano/grass5.0.2/src/include -g -O2     -c prt_hdr.c -o OBJ.i686-pc-linux-gnu/prt_hdr.o
> prt_hdr.c: In function `prn_header':
> prt_hdr.c:13: error: too few arguments to function `exit'

> make[1]: Entering directory `/home/Stefano/grass5.0.2/src/raster/r.in.doq/cmd'
> gcc -I/home/Stefano/grass5.0.2/src/include -g -O2     -c get_newhead.c -o OBJ.i686-pc-linux-gnu/get_newhead.o
> get_newhead.c: In function `get_newhead':
> get_newhead.c:46: error: too few arguments to function `exit'
> get_newhead.c:64: error: too few arguments to function `exit'

Both of these are fixed in both the CVS HEAD and in the release
branch, and so will be fixed in 5.0.3.

> Can you give my some hints to resolve the "too few arguments" error
> about the exit function?

In all cases, change:

	exit();
to:
	exit(1);

BTW, both of those files should be including <stdlib.h>; that hasn't
been fixed in either CVS branch.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-dev mailing list