bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU sed version 4.1.3 doesn't compile on RH6.2


From: Greg Schafer
Subject: GNU sed version 4.1.3 doesn't compile on RH6.2
Date: Fri, 28 Jan 2005 08:53:29 +1100
User-agent: Mutt/1.4.1i

Hi

This new version doesn't compile on an old RedHat 6.2 distro:

gcc -DHAVE_CONFIG_H -I. -I. -I..  -I../lib -I../intl -I.. -I../lib -I../intl 
-DLOCALEDIR=\"/temptools/share/locale\"   -O2 -pipe -c regexp.c
regexp.c: In function `compile_regex_1':
regexp.c:65: parse error before `int' 
regexp.c:70: `syntax' undeclared (first use in this function)
regexp.c:70: (Each undeclared identifier is reported only once
regexp.c:70: for each function it appears in.)
make[2]: *** [regexp.o] Error 1
make[2]: Leaving directory `/mnt/sysroot/temptools/src/sed-4.1.3/sed'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/sysroot/temptools/src/sed-4.1.3'
make: *** [all] Error 2


But it does compile fine on newer distros. The last version (4.1.2) was fine
on RH6.2.

It seems the old compiler (egcs-2.91.66) is choking on this line:

  new_regex->pattern.fastmap = malloc (1 << (sizeof (char) * 8));

because it compiles OK when I comment out that line. Hopefully this can be
fixed.

Regards
Greg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]