[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.33 testsuite.log
From: |
Pascal Bart |
Subject: |
Re: 1.33 testsuite.log |
Date: |
Fri, 8 Feb 2002 20:43:30 +0000 (GMT) |
Hi John,
Thanks for this report, in fact <error.h> is a part of glibc, so
if you don't to have another bug like that install it. Here I include a
patch which should solve your problem.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/bison/bison/ChangeLog,v
retrieving revision 1.173.2.276
diff -u -u -r1.173.2.276 ChangeLog
--- ChangeLog 7 Feb 2002 17:39:55 -0000 1.173.2.276
+++ ChangeLog 8 Feb 2002 19:33:08 -0000
@@ -1,3 +1,13 @@
+2002-02-08 Pascal Bart <address@hidden>
+
+ * src/files.c (error.h): No longer include.
+ * tests/regression.at: Likewise.
+ * src/complain.h: Declare error_one_per_line.
+ * configure.in: Check if <error.h> exists.
+ * src/complain.c (error_one_per_line): Global variable defined if
+ <error.h> is absent, e.g. on Irix 6.5.
+ Reported by John Barry.
+
2002-02-07 Akim Demaille <address@hidden>
Version 1.33.
Index: configure.in
===================================================================
RCS file: /cvsroot/bison/bison/configure.in,v
retrieving revision 1.39.2.42
diff -u -u -r1.39.2.42 configure.in
--- configure.in 7 Feb 2002 17:39:57 -0000 1.39.2.42
+++ configure.in 8 Feb 2002 19:33:12 -0000
@@ -71,7 +71,7 @@
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h)
+AC_CHECK_HEADERS(ctype.h locale.h memory.h stdlib.h string.h unistd.h error.h)
# Checks for typedefs.
cvs server: missing no longer exists, no comparison available
cvs server: mkinstalldirs no longer exists, no comparison available
cvs server: Diffing config
Index: src/complain.c
===================================================================
RCS file: /cvsroot/bison/bison/src/complain.c,v
retrieving revision 1.4.2.3
diff -u -u -r1.4.2.3 complain.c
--- src/complain.c 12 Dec 2001 15:21:59 -0000 1.4.2.3
+++ src/complain.c 8 Feb 2002 19:33:13 -0000
@@ -42,7 +42,11 @@
#endif
/* To get error_one_per_line. */
-#include "error.h"
+#ifdef HAVE_ERROR_H
+# include "error.h"
+#else
+const int error_one_per_line = 0;
+#endif
#include "complain.h"
Index: src/complain.h
===================================================================
RCS file: /cvsroot/bison/bison/src/complain.h,v
retrieving revision 1.2.2.3
diff -u -u -r1.2.2.3 complain.h
--- src/complain.h 12 Dec 2001 15:21:59 -0000 1.2.2.3
+++ src/complain.h 8 Feb 2002 19:33:13 -0000
@@ -56,6 +56,13 @@
/* This variable is incremented each time `complain' is called. */
extern unsigned int complain_message_count;
+#ifndef HAVE_ERROR_H
+
+/* Defined if <error.h> doesn't exist. */
+extern int error_one_per_line;
+
+#endif
+
#ifdef __cplusplus
}
#endif
Index: src/files.c
===================================================================
RCS file: /cvsroot/bison/bison/src/files.c,v
retrieving revision 1.51.2.18
diff -u -u -r1.51.2.18 files.c
--- src/files.c 21 Jan 2002 15:48:25 -0000 1.51.2.18
+++ src/files.c 8 Feb 2002 19:33:13 -0000
@@ -24,7 +24,6 @@
#include "getargs.h"
#include "files.h"
#include "gram.h"
-#include "error.h"
#include "complain.h"
/* From basename.c. Almost a lie, as it returns a char *. */
cvs server: Diffing tests
Index: tests/regression.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/regression.at,v
retrieving revision 1.1.2.29
diff -u -u -r1.1.2.29 regression.at
--- tests/regression.at 7 Feb 2002 17:30:49 -0000 1.1.2.29
+++ tests/regression.at 8 Feb 2002 19:33:14 -0000
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <config.h>
#define YYERROR_VERBOSE 1
#define yyerror(Msg) \
do { \
cvs server: tests/suite.at no longer exists, no comparison available
Pascal Bart (address@hidden)