bug-grep
[Top][All Lists]
Advanced

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

[bug #24813] grep 2.5.3 fails to compile on Sun Solaris with "void funct


From: Nada O'Neal
Subject: [bug #24813] grep 2.5.3 fails to compile on Sun Solaris with "void function cannot return value" error
Date: Thu, 22 Jan 2009 14:57:25 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Follow-up Comment #1, bug #24813 (project grep):

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)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?24813>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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