Mon, Aug 25 2003
13:14:53
|
|
Request created by guest
|
|
Subject: Same compilation error for modules: src/misc/m.kappa and src/raster/r.in.doq
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: GRASS 5.0.2
Hi! My name is Stefano Perona
I have found the same compilation error (gcc version 3.3-23) in modules:
- src/misc/m.kappa
- src/raster/r.in.doq
About the "m.kappa" module the makelog is:
SRC = /home/Stefano/grass5.0.2/src
CMD = /home/Stefano/grass5.0.2/src/CMD
UNUSED = /home/Stefano/grass5.0.2/unused
HEADER = head.i686-pc-linux-gnu
ARCH = i686-pc-linux-gnu
GISBASE = /home/Stefano/grass5.0.2/dist.i686-pc-linux-gnu
VERSION = 5.0.2 April 2003
#################################################################
/home/Stefano/grass5.0.2/src/misc/m.kappa
make -f OBJ.i686-pc-linux-gnu/make.rules
/usr/local/bin/gmake5 -all
SRC = /home/Stefano/grass5.0.2/src
CMD = /home/Stefano/grass5.0.2/src/CMD
UNUSED = /home/Stefano/grass5.0.2/unused
HEADER = head.i686-pc-linux-gnu
ARCH = i686-pc-linux-gnu
GISBASE = /home/Stefano/grass5.0.2/dist.i686-pc-linux-gnu
VERSION = 5.0.2 April 2003
#################################################################
/home/Stefano/grass5.0.2/src/misc/m.kappa/cmd
make -f OBJ.i686-pc-linux-gnu/make.rules
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]: *** [OBJ.i686-pc-linux-gnu/prt_hdr.o] Error 1
make[1]: Leaving directory `/home/Stefano/grass5.0.2/src/misc/m.kappa/cmd'
make: *** [all] Error 1
The file "prt_hdr.c" is:
#include "mkappa.h"
prn_header()
{
FILE *fd;
if (output == NULL)
fd = stdout;
else
if ((fd = fopen(output, "w")) == NULL) {
fprintf (stderr,
"ERROR: can't open <%s> to write header information\n", output);
exit();
}
fprintf (fd, "\n\t\t%s\n", title);
fprintf (fd, "\t\t\t\t(%s)\n\n", G_date());
if (output != NULL)
fclose(fd);
}
The same error about the "exit" function occour in the makelog of "r.in.doq"
module:
SRC = /home/Stefano/grass5.0.2/src
CMD = /home/Stefano/grass5.0.2/src/CMD
UNUSED = /home/Stefano/grass5.0.2/unused
HEADER = head.i686-pc-linux-gnu
ARCH = i686-pc-linux-gnu
GISBASE = /home/Stefano/grass5.0.2/dist.i686-pc-linux-gnu
VERSION = 5.0.2 April 2003
#################################################################
/home/Stefano/grass5.0.2/src/raster/r.in.doq
make -f OBJ.i686-pc-linux-gnu/make.rules
/usr/local/bin/gmake5 cmd
SRC = /home/Stefano/grass5.0.2/src
CMD = /home/Stefano/grass5.0.2/src/CMD
UNUSED = /home/Stefano/grass5.0.2/unused
HEADER = head.i686-pc-linux-gnu
ARCH = i686-pc-linux-gnu
GISBASE = /home/Stefano/grass5.0.2/dist.i686-pc-linux-gnu
VERSION = 5.0.2 April 2003
#################################################################
/home/Stefano/grass5.0.2/src/raster/r.in.doq/cmd
make -f OBJ.i686-pc-linux-gnu/make.rules
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'
make[1]: *** [OBJ.i686-pc-linux-gnu/get_newhead.o] Error 1
make[1]: Leaving directory `/home/Stefano/grass5.0.2/src/raster/r.in.doq/cmd'
make: *** [all] Error 2
Can you give my some hints to resolve the "too few arguments" error about the
exit function?
Thanks in advance!
|
|
Mon, Aug 25 2003
14:08:09
|
|
Status changed to resolved by pkelly
|
|
Mon, Aug 25 2003
14:08:08
|
|
Mail sent by pkelly
|
|
The r.in.doq bug was already fixed in CVS and will be in 5.0.3 anyway
I have fixed m.kappa now. The exit() function needed to have a number passed
to it. But this usage is not standard for GRASS anyway so I changed it to use
G_fatal_error() instead. Releasebranch changed also so this fix should make
it into the 5.0.3 release.
|
|
Mon, Aug 25 2003
14:08:53
|
|
Mail sent by pkelly
|
|
The r.in.doq bug was already fixed in CVS and will be in 5.0.3 anyway
I have fixed m.kappa now. The exit() function needed to have a number passed
to it. But this usage is not standard for GRASS anyway so I changed it to use
G_fatal_error() instead. Releasebranch changed also so this fix should make
it into the 5.0.3 release.
|
|
Mon, Aug 25 2003
14:18:54
|
|
Comments added by pkelly
|
|
Cc: grass5@grass.itc.it
In fact m.kappa had also already been fixed---don't know how I missed
that---but the change will do no harm
|
|
Mon, Aug 25 2003
14:40:20
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<16202.197.463503.827731@cerise.nosuchdomain.co.uk>
|
Date |
Mon, 25 Aug 2003 13:27:49 +0100
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #2076] (grass) Same compilation error for modules: src/misc/m.kappa and src/raster/r.in.doq
|
In-Reply-To |
<20030825111453.21A9D13AE9@lists.intevation.de>
|
References |
<20030825111453.21A9D13AE9@lists.intevation.de>
|
X-Mailer |
VM 7.07 under 21.4 (patch 13) "Rational FORTRAN" XEmacs Lucid
|
X-Spam-Status |
No, hits=-2.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, RCVD_IN_UNCONFIRMED_DSBL,REFERENCES,REPLY_WITH_QUOTES version=2.55
|
X-Spam-Level |
|
X-Spam-Checker-Version |
SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) |
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_hd
r.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/ge
t_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@virgin.net>
|
|
Mon, Aug 25 2003
14:40:21
|
|
Status changed to open by _rt_system
|
|
Mon, Aug 25 2003
16:41:52
|
|
Status changed to resolved by mneteler
|
|