On Mon, March 26, 2007 08:48, Ignacio Diaz-Emparanza wrote:
Installing gretl from the CVS on Kubuntu Linux,
I am obtaining an error in the "make install" step:
dialogs.c: In function âset_bs_replicsâ:
dialogs.c:713: error: âerrnoâ undeclared (first use in this function)
dialogs.c:713: error: (Each undeclared identifier is reported only once
dialogs.c:713: error: for each function it appears in.)
make[1]: *** [dialogs.o] Error 1
make[1]: se sale del directorio `/home/etpdihei/gretlcomp/gretl/gui2'
make: *** [gui2] Error 2
This should fix it:
Index: gui2/dialogs.c
===================================================================
RCS file: /cvsroot/gretl/gretl/gui2/dialogs.c,v
retrieving revision 1.239
diff -u -w -u -r1.239 dialogs.c
--- gui2/dialogs.c 24 Mar 2007 19:25:51 -0000 1.239
+++ gui2/dialogs.c 26 Mar 2007 08:55:11 -0000
@@ -710,9 +710,8 @@
char *test = NULL;
unsigned long u;
- errno = 0;
u = strtoul(s, &test, 10);
- if (*test != '\0' || errno || (int) u <= 0) {
+ if (*test != '\0' || (int) u <= 0) {
errbox(_("Invalid entry"));
} else {
*rs->B = (int) u;
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Facoltà di Economia "G. Fuà"
Ancona