Building 4.1.0 rc1 on Solaris 8 and 9 with Sun Workshop 8 cc

Yngve Svendsen <[email protected]> Thu, 18 Nov 2004 13:19:20 +0100
Newsgroups gmane.comp.bug-tracking.gnats.bugs
Message-ID <[email protected]>
cvs co -r gnats-4_1_0-rc1 gnats
CC=/opt/SUNWspro8/bin/cc ./configure
gmake stops with the following:

--------------------------
/opt/SUNWspro8/bin/cc -c -I. -I. -I./../include  -g -Dconst= 
-DHAVE_CONFIG_H 
-DGNATSD_USER_ACCESS_FILE=\"/usr/local/etc/gnats/gnatsd.user_access\" 
-DGNATSD_HOST_ACCESS_FILE=\"/usr/local/etc/gnats/gnatsd.host_access\" 
-DDEFAULT_GNATS_SERVICE=\"support\" 
-DGLOBAL_DB_LIST_FILE=\"/usr/local/etc/gnats/databases\" 
-DGNATS_USER=\"gnats\" fconfigl.c
"/usr/include/unistd.h", line 286: identifier redeclared: getopt
         current : function(int, pointer to const pointer to char, 
pointer to const char) returning int
         previous: function(int, pointer to pointer to char, pointer to 
char) returning int : "/usr/include/stdio.h", line 273
"/usr/include/unistd.h", line 387: identifier redeclared: rename
         current : function(pointer to const char, pointer to const 
char) returning int
         previous: function(pointer to char, pointer to char) returning 
int : "/usr/include/iso/stdio_iso.h", line 165
"/usr/include/stdlib.h", line 165: identifier redeclared: getsubopt
         current : function(pointer to pointer to char, pointer to const 
pointer to char, pointer to pointer to char) returning int
         previous: function(pointer to pointer to char, pointer to 
pointer to char, pointer to pointer to char) returning int : 
"/usr/include/stdio.h", line 275
"./fconfigl.l", line 584: cannot recover from previous errors
cc: acomp failed for fconfigl.c
gmake[1]: *** [fconfigl.o] Error 2
--------------------------

Yngve Svendsen
Gnatsweb maintainer