Re: libgnome HEAD compilation fails



On Fri, 2004-01-23 at 02:39, Luca Ferretti wrote:
> here is the gcc output
> 
>         gnome-program.c: In function `gnome_program_parse_args':
>         gnome-program.c:1451: warning: implicit declaration of function
>         `setlocale'
>         gnome-program.c:1451: error: `LC_ALL' undeclared (first use in
>         this function)
>         gnome-program.c:1451: error: (Each undeclared identifier is
>         reported only once
>         gnome-program.c:1451: error: for each function it appears in.)
>         make[2]: *** [gnome-program.lo] Error 1
>         make[2]: Leaving directory `/tmp/GNOME/libgnome/libgnome'
>         make[1]: *** [all-recursive] Error 1
>         make[1]: Leaving directory `/tmp/GNOME/libgnome'
>         make: *** [all-recursive-am] Error 2
>         
> the quick solution is add
>         #include <locale.h> 
> to libgnome/libgnome/gnome-program.c

I think you have something stranger going on here. Firstly, one would
only want to include locale.h if ENABLE_NLS was defined. Secondly, all
of the i18n stuff in libgnome is included via gnome-i18nP.h. Following
the path of includes here, we can see that locale.h is included (using
'->' to mean 'includes'):

gnome-i18nP.h -> gnome-i18n.h -> bonobo-i18n.h -> libintl.h -> locale.h

So, I think we need more details. What platform are your trying to build
on (if Linux, what distribution)? Are you building from tarballs or CVS?
Look in libgnome/config.h. Do you have "#define ENABLE_NLS 1" (I cannot
think why this would not be defined, but let's be careful)?

Cheers,
Malcolm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]