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

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

gawk 3.1.1 has bad configure check for mmap() on Solaris


From: Drazen Kacar
Subject: gawk 3.1.1 has bad configure check for mmap() on Solaris
Date: Sun, 19 May 2002 20:15:38 +0200

Hi,

Configure script for gawk 3.1.1 on Solaris 8 with Sun's compiler claims
that mmap() doesn't work. config.log reports this:

"configure", line 2900: identifier redeclared: malloc
        current : function() returning pointer to char
        previous: function(unsigned int) returning pointer to void :
                  "/usr/include/iso/stdlib_iso.h", line 105
cc: acomp failed for conftest.c

The problem is in the following lines in mmap configure check:

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif


Changing the declaration to "void *malloc();" fixes the problem.

-- 
 .-.   .-.    I don't work here. I'm a consultant.
(_  \ /  _)
     |        address@hidden
     |



reply via email to

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