On Wednesday 18 September 2002 06.13, Konstantin (Kastus) Shchuka wrote:
As binary package from usr-local-bin.org did not work for me I attempted to build it from source rpm.
The environment is:
SuSE 7.3 glibc-2.2.4-75 gnome 1.4 (from SuSE supplementary directory)
Build miserably fails for me at
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/mozilla -I/opt/mozilla/include -I/opt/mozilla/include/nspr -I/opt/mozilla/include/gtkembedmoz -I/opt/gnome/include/gconf/1 -I/opt/gnome/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/orbit-1.0 -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/opt/gnome/include/gdk-pixbuf-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/opt/gnome/include/gnome-vfs-1.0 -I/opt/gnome/lib/gnome-vfs-1.0/include -I/usr/include/gnome-xml -I/opt/gnome/include -I/usr/include/orbit-1.0 -I/opt/gnome/include/gconf/1 -D_REENTRANT -I/opt/gnome/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/opt/gnome/lib/gnome-libs/include -DSHARE_DIR=\"/opt/gnome/share/galeon\" -I/opt/gnome/include -O2 -mcpu=i486 -fno-strength-reduce -Wall -Wmissing-declarations -Wmissing-prototypes -Wsign-compare -Werror -D__const__= -c prefs_utils.c In file included from /opt/gnome/include/gnome-1.0/libgnome/libgnome.h:28, from /opt/gnome/include/gnome-1.0/gnome.h:16, from misc_gui.h:30, from prefs_utils.c:21: /opt/gnome/include/gnome-1.0/libgnome/gnome-i18n.h:30: warning: `gettext' redefined /usr/include/libintl.h:103: warning: this is the location of the previous definition /opt/gnome/include/gnome-1.0/libgnome/gnome-i18n.h:31: warning: `dgettext' redefined /usr/include/libintl.h:106: warning: this is the location of the previous definition
libgnome.h includes libintl.h and then redefines gettext and dgettext.
I am not a big C expert and can't understand, is it a problem with glibc or some bug in galeon or some misconfiguration in my environment.
It's a buglet in gnome that's triggered by the use of -Werror (treat warnings
as errors).
Edit the file /opt/gnome/include/gnome-1.0/libgnome/gnome-i18n.h and move the
#include inside the #ifdef, so it looks like this
BEGIN_GNOME_DECLS
#ifdef ENABLE_NLS
#include
Has anybody else tried to build galeon 1.2.6 from usr-local-bin.org source package?
After the above edit, the compile worked for me. //Anders