[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep-2.6.3 build feedback
From: |
Nelson H. F. Beebe |
Subject: |
grep-2.6.3 build feedback |
Date: |
Tue, 6 Apr 2010 14:28:42 -0600 (MDT) |
I now have grep-2.6.3 successfully built, validated, and installed in
our test lab (25+ flavors of Unix). The only failures are on rather
old systems, or in small subset of tests where one wonders whether
grep is in error, or the tests themselves are possibly faulty:
DEC Alpha OSF/1 4.0:
FAIL: test-exclude2.sh
FAIL: test-exclude5.sh
FAIL: test-unsetenv
MirBSD 10 IA-32:
FAIL: test-mbrtowc3.sh
FAIL: test-mbsrtowcs3.sh
FAIL: test-wcrtomb.sh
NetBSD 5.0.2 IA-32:
FAIL: test-nl_langinfo.sh
OpenBSD 4.7 IA-32:
FAIL: test-unsetenv
Open Solaris 11 AMD64:
FAIL: test-exclude2.sh
FAIL: test-exclude5.sh
FAIL: test-quotearg.sh
Solaris 10 AMD64:
FAIL: test-exclude2.sh
FAIL: test-exclude5.sh
Solaris 10 IA-32:
FAIL: test-exclude2.sh
FAIL: test-exclude5.sh
Solaris 10 SPARC:
FAIL: test-exclude2.sh
FAIL: test-exclude5.sh
On OSF/1 Alpha, compilation failed like this:
CC kwset.o
kwset.c: In function `kwsalloc':
kwset.c:101: error: `malloc' undeclared (first use in this function)
kwset.c:101: error: (Each undeclared identifier is reported only once
kwset.c:101: error: for each function it appears in.)
I trapped the preprocessor output, and found that the line
obstack_init(&kwset->obstack);
expands to
_obstack_begin ((&kwset->obstack), 0, 0,
(void *(*) (long)) malloc,
(void (*) (void *)) free);
I replaced the line kwset.c:45
# define malloc(s) xmalloc(s)
by
# define malloc xmalloc
because malloc appears without an argument list in the definition of
_obstack_begin() in lib/obstack.h from the setting
#define obstack_chunk_alloc malloc
in kwset.c.
Compilation then completed successfully, and all tests passed, EXCEPT
for the three tests listed above.
On SGI IRIX 6.5, compilation fails because of type confusion from
gcc-3.4.6's <stdint.h>:
CC uniwidth/width.o
In file included from ./stdint.h:59,
from ./unitypes.h:23,
from ./uniwidth.h:23,
from uniwidth/width.c:23:
/usr/local/ashare/gcc-3.4.6/include/stdint.h:10: error: syntax error
before "int64_t"
/usr/local/ashare/gcc-3.4.6/include/stdint.h:15: error: syntax error
before "uint64_t"
/usr/local/ashare/gcc-3.4.6/include/stdint.h:20: error: syntax error
before "int_fast64_t"
/usr/local/ashare/gcc-3.4.6/include/stdint.h:25: error: syntax error
before "uint_fast64_t"
/usr/local/ashare/gcc-3.4.6/include/stdint.h:27: error: syntax error
before "uintmax_t"
/usr/local/ashare/gcc-3.4.6/include/stdint.h:28: error: syntax error
before "intmax_t"
The last version of GNU grep to build successfully on that system is
2.5.4, so we may just have to consider it unsupported in current grep
releases.
On Solaris 7 SPARC (another rather old system), compilation fails like
this:
CC isdir.o
In file included from sys/stat.h:48,
isdir.c:23:
sys/stat.h:861: warning: `struct stat' declared inside parameter list
sys/stat.h:861: warning: its scope is only this definition or
declaration, which is probably not what you want.
isdir.c: In function `isdir':
isdir.c:30: storage size of `stats' isn't known
The last successful grep build on that system was 2.5.1 (November
2004), so it too may be left behind.
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: address@hidden -
- 155 S 1400 E RM 233 address@hidden address@hidden -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
- grep-2.6.3 build feedback,
Nelson H. F. Beebe <=