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

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

Re: glade: undefined reference to bind_textdomain_codeset


From: Felix Natter
Subject: Re: glade: undefined reference to bind_textdomain_codeset
Date: 05 Jun 2002 22:58:24 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

TODO: this is the LDADD-problem !!!

Bruno Haible <address@hidden> writes:

> Felix Natter writes:
> 
> > 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):
> > 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
> 
> This is not a bug in GNU gettext. The problem comes from the
> obsolete macros AM_GLIB_WITH_NLS and AM_GLIB_GNU_GETTEXT in
> glade-1.1.0/aclocal.m4. It would work if the package was using the
> GNU gettext 0.11.2 macros instead, and invoking it using
> AM_GNU_GETTEXT([need-ngettext]). (The bind_textdomain_codeset
> function was introduced at the same time as ngettext, therefore the
> requirement for bind_textdomain_codeset is equivalent to the
> requirement for ngettext.)

hi Bruno, thanks for your help.
I tried to do as you suggested, but



$ tar -xzf glade-1.1.0.tar.gz 
$ cd glade-1.1.0
$ gettextize --version
/usr/local/bin/gettextize (GNU gettext) 0.11.2
Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper
$ gettextize -f -c
[...]
$ cp po/Makevars.template po/Makevars
$ automake m4/Makefile
$ rm aclocal.m4      
$ aclocal -I m4
edit configure.in: replace AM_GLIB_GNU_GETTEXT with
AM_GNU_GETTEXT([no-libtool], [need-ngettext])
$ aclocal -I m4
$ autoconf
$ ./configure
[...]
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 -lc -Wl,-rpath 
-Wl,/usr/local/lib
[...]
$

-- 
Felix Natter




reply via email to

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