On 01/10/2013 01:04 AM, Paul Eggert wrote:
On 01/09/13 08:30, Tom G. Christensen wrote:
We get this chain of includes on Solaris 2.6 and 7:
c-strtod.c -> gnulib<locale.h> -> system<locale.h> -> gettext<libintl.h>
->
Sorry, what's the gettext<libintl.h>? I just now built and installed
gettext-0.18.2 on Solaris 11, and it didn't have or install a
libintl.h. There is a system libintl.h, but it includes only
<sys/isa_defs.h>.
I see in the Solaris 11 system libintl.h that it defines the
__GNU_GETTEXT_SUPPORTED_REVISION macro. I assume this is part of the
reason why GNU gettext thinks it is okay and does not install its own
copy of libintl.h.
For Solaris < 11 however it does install its own libintl.h and this is
the file I am referring to.
On the Solaris 2.6 host I am using it comes from GNU gettext 0.17.
If that<libintl.h> is left over from some old gettext installation,
maybe you can upgrade to gettext 0.18.2 and remove the old libintl.h.
GNU gettext 0.18.2 does not build on Solaris 2.6 & 7 and ironically it
is an issue similar to what I'm seeing with gnulib that causes it to fail.
From Solaris 2.6 build of gettext 0.18.2:
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl
-DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -D_REENTRANT -g -O2 -c
-o localename.o localename.c
In file included from ./locale.h:26,
from localename.c:33:
/usr/tgcware/gcc-4.3.6/lib/gcc/sparc-sun-solaris2.6/4.3.6/include-fixed/locale.h:63:
error: redefinition of 'struct rpl_lconv'
make[5]: *** [localename.o] Error 1
-tgc