Hello,
I am trying to compile Pine 3.91 for Solaris 2.5. Whether I use gcc or
Sun's cc, it dies when it begins to build the pine binary. It complains
about redeclaration with stdlib.h and stdio.h. I am stumped. Pine compiled
without a hitch for both SunOS 4.1.4 and IRIX 5.3.
Running "./build sol" from the top of the source distribution ends with
this:
Making Pine.
cc -DSV4 -g -DDEBUG -DSYSTYPE=\"SOL\" -c addrbook.c
"/usr/include/stdlib.h", line 148: identifier redeclared: getopt
current : function(int, pointer to pointer to char, pointer to char)
returning int
previous: function(int, pointer to const pointer to char, pointer to
const char) returning int : "/usr/include/stdio.h", line 242
"/usr/include/stdlib.h", line 149: identifier redeclared: getsubopt
current : function(pointer to pointer to char, pointer to pointer to
char, pointer to pointer to char) returning int
previous: function(pointer to pointer to char, pointer to const
pointer to char, pointer to pointer to char) returning int : "/usr/include/stdio.h",
line 244
"/usr/include/unistd.h", line 230: identifier redeclared: rename
current : function(pointer to char, pointer to char) returning int
previous: function(pointer to const char, pointer to const char)
returning int : "/usr/include/stdio.h", line 148
"addrbook.c", line 3954: cannot recover from previous errors
cc: acomp failed for addrbook.c
make: *** [addrbook.o] Error 2
--
____________________________________________________________________
Department of Electrical and Computer Engineering
Concordia University, Montreal, Canada
http://www.ECE.Concordia.CA/~chris/addr.html