Re: GNOME vs GNU gcc & glibc



Sergio Brandano <sb@dcs.qmw.ac.uk> writes:
>> >/sw/gnome/lib/libgnomeui.so: undefined reference to `dgettext'
>> >/sw/gnome/lib/libgnomeui.so: undefined reference to `gettext'
>> >/sw/gnome/lib/libgnome.so: undefined reference to `bindtextdomain'
>> >collect2: ld returned 1 exit status
>> >make[1]: *** [xchat] Error 1
>
> I then smoothly make distclean, configure --prefix=/sw/gnu, make,
                                            ^^^^^^^^^^^^^^^^^
> make check, make install and ldconfig gnome-libs-1.0.5, this time
> using gcc. I went back to gnome-media-1.0.1, then again make
> distclean and configure as usual (i.e. triggering configure and
> setting the prefix). I still get the above message.

I get this all the time.  There is a disconnect between the directories
that autoconf looks in when it does the -lintl test (among others) and 
the directories it configures for linking based on the --prefix directive.

What you should do is this:

 1. Locate your libintl.[a|so] files
 2. Set the INTLLIBS environment variable to '-L/<dir> -lintl' (where <dir>
    is the location of libintl)
 3. make distclean; configure --prefix=/sw/gnu; etc...

This will force autoconf to put the correct linking information into the
Makefiles.  If that still doesn't work, you may need to compile a "compat" 
libintl (but probably not on Linux; I needed it for BSD).

	-Michael Robinson



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