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 105756 - nautilus 2.2.0.2 won't build without -O
nautilus 2.2.0.2 won't build without -O
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: [obsolete] Builds
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 105425 105924 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-02-10 22:51 UTC by Aron Griffis
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Aron Griffis 2003-02-10 22:51:16 UTC
Nautilus 2.2.0.2 doesn't build unless -O is used.  The reason is this line
in src/nautilus-server-connect.c:

  setlocale (LC_ALL, "");

The problem is that <libintl.h> only includes <locale.h> when __OPTIMIZE__
is defined.  I believe the correct solution to the problem is the following
patch:

--- nautilus-server-connect.c.old       2003-02-10 17:46:16.000000000 -0500
+++ nautilus-server-connect.c   2003-02-10 17:46:25.000000000 -0500
@@ -19,6 +19,7 @@
 #include <config.h>
 #include <stdio.h>
 #include <string.h>
+#include <locale.h>
 #include <glib.h>
 #include <gnome.h>
 #include <gconf/gconf-client.h>

Thanks!
Comment 1 John Fleck 2003-02-11 03:03:03 UTC
*** Bug 105425 has been marked as a duplicate of this bug. ***
Comment 2 Alexander Larsson 2003-02-13 09:47:41 UTC
fixed in cvs.
Comment 3 John Fleck 2003-02-13 14:11:18 UTC
*** Bug 105924 has been marked as a duplicate of this bug. ***