Hi, I am trying to compile GNU gettext 0.18.3.1 on Solaris 10 Sparc with Sun Studio 12 and get the following error:
> /bin/bash ../libtool --tag=CC --mode=compile /opt/SUNWspro/bin/cc > -DLOCALEDIR=\"/opt/csw/share/locale\" > -DBISON_LOCALEDIR=\"/opt/csw/share/locale\" > -DLOCALE_ALIAS_PATH=\"/opt/csw/share/locale\" -DUSEJAVA=1 -DUSEJEXE=0 > -DGETTEXTJEXEDIR=\"/opt/csw/lib/gettext\" > -DGETTEXTJAR=\"/opt/csw/share/gettext/gettext.jar\" -DLIBDIR=\"/opt/csw/lib\" > -DGETTEXTDATADIR=\"/opt/csw/share/gettext\" > -DPROJECTSDIR=\"/opt/csw/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. > -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl > -I../../gettext-runtime/intl -I/opt/csw/include -D_REENTRANT -xO3 -m32 > -xarch=sparc -xc99=all -c -o libgettextsrc_la-po-lex.lo `test -f 'po-lex.c' > || echo './'`po-lex.c > libtool: compile: /opt/SUNWspro/bin/cc -DLOCALEDIR=\"/opt/csw/share/locale\" > -DBISON_LOCALEDIR=\"/opt/csw/share/locale\" > -DLOCALE_ALIAS_PATH=\"/opt/csw/share/locale\" -DUSEJAVA=1 -DUSEJEXE=0 > -DGETTEXTJEXEDIR=\"/opt/csw/lib/gettext\" > -DGETTEXTJAR=\"/opt/csw/share/gettext/gettext.jar\" -DLIBDIR=\"/opt/csw/lib\" > -DGETTEXTDATADIR=\"/opt/csw/share/gettext\" > -DPROJECTSDIR=\"/opt/csw/share/gettext/projects\" -DHAVE_CONFIG_H -I. -I.. > -I. -I. -I.. -I.. -I../libgrep -I../gnulib-lib -I../gnulib-lib -I../intl > -I../../gettext-runtime/intl -I/opt/csw/include -D_REENTRANT -xO3 -m32 > -xarch=sparc -xc99=all -c po-lex.c -KPIC -DPIC -o > .libs/libgettextsrc_la-po-lex.o > "po-lex.c", line 604: identifier redeclared: pass_obsolete_entries > current : signed char > previous: _Bool : "po-lex.h", line 63 > "po-lex.c", line 1140: identifier redeclared: po_lex_pass_comments > current : function(signed char) returning void > previous: function(_Bool) returning void : "po-lex.h", line 78 > "po-lex.c", line 1149: identifier redeclared: po_lex_pass_obsolete_entries > current : function(signed char) returning void > previous: function(_Bool) returning void : "po-lex.h", line 82 > cc: acomp failed for po-lex.c > Makefile:2397: recipe for target 'libgettextsrc_la-po-lex.lo' failed I thought the issue may be related to having a compliant C99 environment and added -xc99=all manually to CFLAGS. Not adding -xc99=all results in configure adding -D_STDC_C99= which finally results in the same error. With gcc 4.8.1 the compile finishes, but fails in the testsuite during ACL checks. The filesystem is local zfs inside a zone loopbackb-mounted from the global zone:
test-suite.log
Description: Binary data
Any insight is of course welcome! Best regards -- Dago -- "You don't become great by trying to be great, you become great by wanting to do something, and then doing it so hard that you become great in the process." - xkcd #896
smime.p7s
Description: S/MIME cryptographic signature