----- Forwarded message from "Luca Manai" -----

Hello.

I just compiled gtk-gnutella-0.96 on Solaris.SunOS ws12557 5.8
Generic_117350-25 sun4u sparc SUNW,Sun-Blade-1500

I got a compilation error:

gcc -c -I../.. -I.. -I/opt/csw/include/glib-1.2
-I/opt/csw/lib/glib/include    -DCURDIR=src/lib -O -W -Wall -Wformat=2
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
utf8.c

In file included from /usr/include/locale.h:51,
from utf8.c:49:/usr/include/libintl.h:31: error: parse error before
"const"/usr/include/libintl.h:32: error: parse error before
"const"/usr/include/libintl.h:33: error: parse error before
"const"/usr/include/libintl.h:34: error: parse error before
"const"/usr/include/libintl.h:35: error: parse error before
"const"/usr/include/libintl.h:45: error: parse error before
"unsigned"

I did not enable the national language support. it seems to
be the "locale.h" on Solaris includes also "libintl.h" and this was
causing the compilation error. I forced:

#define    _LIBINTL_H
#include <locale.h>

To prevent "locale.h" from including "libintl.h"...Dirty but
worked...Have a nice day.;-)

Luca.

----- End forwarded message -----

Attachment: pgpHapRpPXLLN.pgp
Description: PGP signature

Reply via email to