It seems like stdio.h has a definition of the function getopt that is different from something already compiled, my guess being this one: ./ext/SDBM_File/sdbm/dbe.c:getopt(int argc, char **argv, char *optstring) Anyone seen this before? I don't have enough experience compiling C to know whether this can be fixed by just changing the include paths, or if there's a compiler option to suppress the error or what. For the record, we're installing a legacy Perl system on a new box and need to keep 5.6.1. Thanks.`sh cflags hash.o` -DPERL_FOR_X2P hash.c CCCMD = cc -c -I/usr/local/include -D_LARGEFILE_SOURCE -D_F +ILE_OFFSET_BITS=64 -O "/usr/include/stdlib.h", line 165: identifier redeclared: getsubopt current : function(pointer to pointer to char, pointer to poin +ter to char, pointer to pointer to char) returning int previous: function(pointer to pointer to char, pointer to cons +t pointer to char, pointer to pointer to char) returning int : "/usr/ +include/stdio.h", line 267 "/usr/include/stdlib.h", line 189: 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, poin +ter to const char) returning int : "/usr/include/stdio.h", line 265 cc: acomp failed for hash.c *** Error code 2 make: Fatal error: Command failed for target `hash.o'
In reply to Perl 5.6.1 compilation problems by brinogordon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |