After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 164904 - failed compilation
failed compilation
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: logview
trunk
Other Linux
: High normal
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
: 164906 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-22 14:09 UTC by Luca Ferretti
Modified: 2005-01-24 21:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Luca Ferretti 2005-01-22 14:09:06 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
Comment 1 Paolo Borelli 2005-01-24 14:44:07 UTC
*** Bug 164906 has been marked as a duplicate of this bug. ***
Comment 2 Vincent Noel 2005-01-24 15:25:31 UTC
Luca : what is your setup ? Do you have a /usr/include/locale.h file ?
Comment 3 Luca Ferretti 2005-01-24 19:19:02 UTC
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
Comment 4 Vincent Noel 2005-01-24 19:44:44 UTC
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
Comment 5 Luca Ferretti 2005-01-24 21:06:06 UTC
Compilation works now. One shot!

Please wait the "make install".....

....done 

Launching gnome-system-log....

....done

OK it works fine.
Comment 6 Vincent Noel 2005-01-24 21:25:55 UTC
Cool ! I'm marking as fixed.
Thanks for the help - this bug is the only new thing for logview in release
2.9.90 ;-)