bug-gnu-utils
[Top][All Lists]
Advanced

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

glade: undefined reference to bind_textdomain_codeset


From: Felix Natter
Subject: glade: undefined reference to bind_textdomain_codeset
Date: 01 Jun 2002 20:12:51 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

hi,

I have problems building glade 1.1.0
 (you can find it here but this requires gtk+ 2.0:
  http://ftp.gnome.org/pub/GNOME/pre-gnome2/sources/glade/glade-1.1.0.tar.gz):

make[3]: Entering directory `/home/felix/.src/gtk/glade/glade'
/bin/sh ../libtool --mode=link gcc  -g -O2   -o glade-2  debug.o editor.o gb.o 
gbwidget.o glade_widget_data.o gbsource.o glade.o glade_atk.o glade_clipboard.o 
glade_gnome.o glade_gnomelib.o glade_gnomedblib.o glade_gtk12lib.o 
glade_keys_dialog.o glade_menu_editor.o glade_palette.o glade-parser.o 
glade_plugin.o glade_project.o glade_project_options.o glade_project_view.o 
glade_project_window.o keys.o load.o main.o palette.o property.o save.o 
source.o source_os2.o styles.o tree.o utils.o gbwidgets/libgbwidgets.a   
-L/usr/local/lib -lxml2 -lz -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 
-lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl 
-lglib-2.0    -L/usr/X11R6/lib  -lSM -lICE -lX11  
gcc -g -O2 -o glade-2 debug.o editor.o gb.o gbwidget.o glade_widget_data.o 
gbsource.o glade.o glade_atk.o glade_clipboard.o glade_gnome.o glade_gnomelib.o 
glade_gnomedblib.o glade_gtk12lib.o glade_keys_dialog.o glade_menu_editor.o 
glade_palette.o glade-parser.o glade_plugin.o glade_project.o 
glade_project_options.o glade_project_view.o glade_project_window.o keys.o 
load.o main.o palette.o property.o save.o source.o source_os2.o styles.o tree.o 
utils.o  gbwidgets/libgbwidgets.a -L/usr/local/lib /usr/local/lib/libxml2.so 
-lz /usr/local/lib/libgtk-x11-2.0.so /usr/local/lib/libgdk-x11-2.0.so 
/usr/local/lib/libatk-1.0.so /usr/local/lib/libgdk_pixbuf-2.0.so -lm 
/usr/local/lib/libpangox-1.0.so /usr/local/lib/libpango-1.0.so 
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl 
/usr/local/lib/libglib-2.0.so -L/usr/X11R6/lib -lSM -lICE -lX11 -Wl,--rpath 
-Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
main.o: In function `main':
/home/felix/src/gtk/glade/glade/main.c:173: undefined reference to 
`bind_textdomain_codeset'
collect2: ld returned 1 exit status

I get the same undefined reference with gettext 0.10.40 and gettext
0.11.2.  I can build it without nls if I remove gettext from my
system, but then glade-2 crashes frequently (but that might not be an
nls problem).

If this is off-topic, where can I post such help-requests ?

This is the relevant (IMHO) part of the configure output:

checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /usr/local/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/local/bin/msgfmt
checking for xgettext... /usr/local/bin/xgettext
checking for catalogs to be installed...  az ca cs da de el en_GB es fr ga gl 
hu it ja ko lv nn no pl pt pt_BR ro ru sk sv tr uk vi zh_CN

checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking how to link with libintl... /usr/local/lib/libintl.so -Wl,-rpath 
-Wl,/usr/local/lib

I tried to replace AM_GLIB_GNU_GETTEXT with AM_GNU_GETTEXT, that
changes nothing.

I added a call to bind_textdomain_codeset in another project (which
uses the AM_GNU_GETTEXT from gettext 0.11.2), and it works fine (it
decides to use libintl.so because it needs `ngettext'), but the
configure-output is completely different:

checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... yes
checking how to link with libintl... /usr/local/lib/libintl.so -Wl,-rpath 
-Wl,/usr/local/lib

Maybe my glibc (2.1.3) doesn't have bind_textdomain_codeset and
AM_GLIB_GNU_GETTEXT/AM_GNU_GETTEXT aren't smart enough to use a
libintl.a instead of the one in glibc ? (In that case: should we
upgrade the gettext in glade)

Could it be a problem with glibc 2.1.3? Unforunately if I do "nm
libc-2.1.3.so" I get "no symbols".

please cc any replies to me, I am not subscribed to this list.


thanks,

-- 
Felix Natter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]