[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: compiling textutils-2.0.18 fails with gcc-2.8.1
From: |
Uwe H. Steinfeld |
Subject: |
Re: compiling textutils-2.0.18 fails with gcc-2.8.1 |
Date: |
Mon, 3 Dec 2001 20:03:00 +0100 |
----- Original Message -----
From: "Pierre HANSER" <address@hidden>
To: <address@hidden>
Sent: Monday, December 03, 2001 11:45 AM
Subject: compiling textutils-2.0.18 fails with gcc-2.8.1
> hello
>
> trying to compile textutils 2.0.18 on a sparc station
> with solaris 2.6 and gcc-2.8.1, i had the following
> problem:
>
> compilation of lib/regex.h fails, at the very point there is a NEXT call
> in the source:
>
> ----
> regex.c: In function `byte_re_match_2_internal':
> In file included from regex.c:635:
> regex.c:6111: syntax error before `ptr'
> regex.c:6111: `ptr' undeclared (first use in this function)
> ----
>
> If i disable __GNUC__ before the definition of the macro NEXT, line
> 5803,
> everything is OK
>
> --
> Pierre Hanser
Try the following patch. I had a similar problem on a different system.
Uwe
--- ../textutils-2.0.18/lib/regex.c Wed Nov 28 07:57:52 2001
+++ ./lib/regex.c Mon Dec 3 19:39:50 2001
@@ -28,6 +28,13 @@
#undef _GNU_SOURCE
#define _GNU_SOURCE
+/* Support for bounded pointers. */
+# ifndef __BOUNDED_POINTERS__
+# define __bounded /* nothing */
+# define __unbounded /* nothing */
+# define __ptrvalue /* nothing */
+# endif
+
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif