GNOME Bugzilla – Bug 164904
failed compilation
Last modified: 2005-01-24 21:25:55 UTC
logrtns.c: In function `get_month': logrtns.c:127: error: `LC_TIME' undeclared (first use in this function) logrtns.c:127: error: (Each undeclared identifier is reported only once logrtns.c:127: error: for each function it appears in.) logrtns.c:127: warning: passing arg 1 of `g_strdup' makes pointer from integer without a cast logrtns.c:129: warning: comparison between pointer and integer make[3]: *** [logrtns.o] Error 1 make[3]: Leaving directory `/usr/src/GNOME/gnome-utils/logview' The installation path is /opt/gnome
*** Bug 164906 has been marked as a duplicate of this bug. ***
Luca : what is your setup ? Do you have a /usr/include/locale.h file ?
My GNOME HEAD installation uses --prefix=/opt/gnome Here are too: * autoconf-2.59 automake-1.[489].x and libtool-1.5.2; * some .m4 files from /usr/share/aclocal [intmax.m4,printf-posix.m4,size_max.m4 ...] * xlibs from freedektop CVS (only xlibs, not x.org) * some other support libs/apps Of course /usr/include/locale.h exists and there wasn't any failure before recent commit on gnome-utils
Could you please try this patch (I am in unknown territory here, so please be patient :)) : Index: logrtns.c =================================================================== RCS file: /cvs/gnome/gnome-utils/logview/logrtns.c,v retrieving revision 1.48 diff -u -p -r1.48 logrtns.c --- logrtns.c 6 Jan 2005 22:08:01 -0000 1.48 +++ logrtns.c 24 Jan 2005 19:43:05 -0000 @@ -22,6 +22,9 @@ #ifdef __CYGWIN__ #define timezonevar #endif +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif #ifdef HAVE_LOCALE_H #include <locale.h> #endif
Compilation works now. One shot! Please wait the "make install"..... ....done Launching gnome-system-log.... ....done OK it works fine.
Cool ! I'm marking as fixed. Thanks for the help - this bug is the only new thing for logview in release 2.9.90 ;-)