buggrep - 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: 

That particular problem has gone way, but a couple of others sneaked in:

  • Initially, the configure step (with Studio 12.2 cc, but independent of

  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 :

  • There's one compiler warning:


"/vol/src/gnu/grep/grep-2.9/src/dfa.c", line 1546: warning: initializer does not fit or is out of range: 0xfffffffc

  • A couple of tests fail:


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).

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 .

Depending on your compiler, there might be another option you can set to get it to ignore the "void function cannot return value" error.

You can also change the source code... "void function cannot return value" is caused by lines like this:



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 .

I configured the source using

nohup ./configure --prefix=/home/kkusuman/software/myroot 2>&1 > configure.log &

I tried to compile the source using

nohup make 2>&1 > make.log &

The compilation stops with the following errors

Making all in src
make[2]: Entering directory `/home/kkusuman/software/compileHere/grep-2.5.3/src'
source='search.c' object='search.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/bash ../depcomp \
        cc -DHAVE_CONFIG_H -I. -I.. -I../intl -I../lib -DLOCALEDIR=\"/home/kkusuman/software/myroot/share/locale\"  -I/home/kkusuman/software/myroot/include  -g -c search.c
"search.c", line 169: warning: argument #1 is incompatible with prototype:
        prototype: pointer to char : "/usr/include/iso/wchar_iso.h", line 194
        argument : pointer to const char
"search.c", line 284: void function cannot return value
"search.c", line 289: void function cannot return value
"search.c", line 294: void function cannot return value
cc: acomp failed for search.c
make[2]: * [search.o] Error 2
make[2]: Leaving directory `/home/kkusuman/software/compileHere/grep-2.5.3/src'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/home/kkusuman/software/compileHere/grep-2.5.3'
make: * [all] Error 2


The configure.log, make.log are attached for your reference.

thanks
raju

Kamaraju Kusumanchi <kamaraju>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #16831:  make.log added by kamaraju (18KiB - application/octet-stream)
file #16830:  configure.log added by kamaraju (8KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bonzini (Posted a comment)
  • -email is unavailable- added by dagobert (Also seen this bug)
  • -email is unavailable- added by nadaoneal (Posted a comment)
  • -email is unavailable- added by jamesprescott (Voted in favor of this item)
  • -email is unavailable- added by kamaraju (Submitted the item)
  •  

    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 StatusNeed Info In Progress
    2011-03-30 bonzini StatusNone 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

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code