grep - Bugs: bug #24813, grep 2.5.3 fails to compile on Sun...
You are not allowed to post comments on this tracker with your current authentication level.
bug #24813: grep 2.5.3 fails to compile on Sun Solaris with "void function cannot return value" error
Submitter: | Kamaraju Kusumanchi <kamaraju> | ||
Submitted: | Tue 11 Nov 2008 03:00:16 PM UTC | ||
Votes: | 1 | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | In Progress |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Tue 28 Jun 2011 12:06:50 PM UTC, comment #3: |
Paolo Bonzini <bonzini> |
Wed 30 Mar 2011 08:21:43 AM UTC, comment #2: Can you please check the status of this bug with 2.7 or the latest version from git? |
Paolo Bonzini <bonzini> |
Thu 22 Jan 2009 02:57:23 PM UTC, comment #1: I don't know what compiler you're using, but we had the same problem using Sun Studio 12, which we were able to get around using "-features=extensions" as CFLAGS, as suggested here: http://forums.sun.com/thread.jspa?threadID=5182898 .
COMPILE_FCT(Acompile) { return GEAcompile (pattern, size, RE_SYNTAX_AWK); } which strictly speaking should be this: ++++ COMPILE_FCT(Acompile) { GEAcompile (pattern, size, RE_SYNTAX_AWK); } ++++ (gcc ignores the "void function should not return a value" convention) |
Nada O'Neal <nadaoneal> |
Tue 11 Nov 2008 03:00:16 PM UTC, original submission:
I downloaded the source for grep 2.5.3 from http://ftp.gnu.org/gnu/grep/grep-2.5.3.tar.bz2 .
|
Kamaraju Kusumanchi <kamaraju> |
Depends on the following items: None found
Items that depend on this one: None found
There is 1 vote so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2011-06-28 | bonzini | Status | Need Info | In Progress | |
2011-03-30 | bonzini | Status | None | Need Info | |
2010-03-24 | dagobert | Carbon-Copy | - | Added dagobert | |
2009-01-20 | jamesprescott | Carbon-Copy | - | Added jamesprescott | |
2008-11-11 | kamaraju | Attached File | - | Added configure.log, #16830 | |
Attached File | - | Added make.log, #16831 |
Powered by Savane 3.13-4448.
Corresponding source code
That particular problem has gone way, but a couple of others sneaked in:
the compiler used) failed: the last relevant line in config.log is
configure:12489: checking for MAP_ANONYMOUS
configure:3255: error: fn_grep: regular expressions not supported
For some reason, configure decides that the GNU grep 2.5.1 I have in
PATH is insufficient and falls back to fn_grep, which fails on several
patterns that are taken as regular expressions. Removing the
offending dots lets configure complete:
--- configure.dist 2011-06-21 20:05:44.000000000 +0200
+++ configure 2011-06-28 12:49:25.971164000 +0200
@@ -12496 +12496 @@
- I cant identify this map.
+ I cant identify this map
@@ -12501 +12501 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
@@ -12512 +12512 @@
- I cant identify this map.
+ I cant identify this map
@@ -12517 +12517 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
@@ -25456 +25456 @@
- I cant identify this map.
+ I cant identify this map
@@ -25461 +25461 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
@@ -25472 +25472 @@
- I cant identify this map.
+ I cant identify this map
@@ -25477 +25477 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
@@ -26958 +26958 @@
- I cant identify this map.
+ I cant identify this map
@@ -26963 +26963 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
@@ -26974 +26974 @@
- I cant identify this map.
+ I cant identify this map
@@ -26979 +26979 @@
- $EGREP "I cant identify this map." >/dev/null 2>&1; then :
+ $EGREP "I cant identify this map" >/dev/null 2>&1; then :
"/vol/src/gnu/grep/grep-2.9/src/dfa.c", line 1546: warning: initializer does not fit or is out of range: 0xfffffffc
FAIL: test-mbrtowc4.sh
FAIL: test-mbrtowc3.sh
FAIL: test-mbsrtowcs4.sh
FAIL: test-setlocale2.sh
FAIL: test-mbrtowc3.sh (exit: 262)
FAIL: test-mbrtowc4.sh (exit: 262)
FAIL: test-mbsrtowcs4.sh (exit: 262)
FAIL: test-setlocale2.sh (exit: 1)
(Thanks to Rainer Orth for passing me the above results).