[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] gettext compilation problem on FreeBSD
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] gettext compilation problem on FreeBSD |
Date: |
Mon, 15 Aug 2005 13:16:32 +0200 |
User-agent: |
KMail/1.5 |
Oskar Liljeblad wrote:
> I'm having a little problem compiling gettext support using recent Gnulib
> gettext module on FreeBSD 5.4. Or should I say: A user of one of my
> programs has this problem, not me.
>
> Here's some snippets from the build log:
>
> checking build system type... i386-unknown-freebsd5.4
> checking host system type... i386-unknown-freebsd5.4
> [..]
> checking for GNU gettext in libc... no
> checking for iconv... yes
> checking how to link with libiconv... /usr/local/lib/libiconv.so -Wl,-rpath
> -Wl,/usr/local/lib checking for GNU gettext in libintl... yes
> checking whether to use NLS... yes
> checking where the gettext function comes from... external libintl
> checking how to link with libintl... /usr/local/lib/libintl.so -Wl,-rpath
> -Wl,/usr/local/lib [..]
> if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../lib
> -I/usr/local/include -Wall -D_THREAD_SAFE -pthread -g -O2 -MT command.o
> -MD -MP -MF ".deps/command.Tpo" -c -o command.o command.c; then mv -f
> ".deps/command.Tpo" ".deps/command.Po"; else rm -f ".deps/command.Tpo";
> exit 1; fi [..]
> gcc -Wall -D_THREAD_SAFE -pthread -g -O2 -o microdc command.o [..]
> ../lib/libgnu.a -lreadline command.o(.text+0x105): In function
> `command_init':
> /stuff/download/microdc-0.8.0/src/command.c:163: undefined reference to
> `libintl_gettext'
> command.o(.text+0x114):/stuff/download/microdc-0.8.0/src/command.c:163:
> undefined reference to `libintl_gettext' [and so on, more undefined
> references to libintl_* symbols]
>
> It seems to detect libiconv and libintl correctly, but it doesn't seem to
> link with it properly?
Actually the problem is that the include file <libintl.h> and the
library libintl.so appear not to fit together. It looks like libintl.h
is from GNU gettext, but libintl.so is not.
It's also worth looking whether the user has several <libintl.h> or
several libintl.so on his system.
Bruno