bug-coreutils
[Top][All Lists]
Advanced

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

Re: libintl related link error


From: Jim Meyering
Subject: Re: libintl related link error
Date: Fri Sep 20 15:47:24 2002
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Thank you!
I've applied that patch.

Bruno Haible <address@hidden> wrote:
> Compiling coreutils-4.5.1 on FreeBSD, I get a link error
>
> gcc -Wall  -g -O2   -o uptime  uptime.o ../lib/libfetish.a 
> /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib ../lib/libfetish.a
> uptime.o: In function `print_uptime':
> /gnu/build/coreutils-4.5.1/build/src/../../src/uptime.c(.text+0x1a8): 
> undefined reference to `ngettext'
> /gnu/build/coreutils-4.5.1/build/src/../../src/uptime.c(.text+0x1e0): 
> undefined reference to `ngettext'
> *** Error code 1
>
> The reason is that I have an older libintl installed and your configure.ac
> doesn't specify the ngettext requirement. (This is documented in the
> gettext manual, in section AM_GNU_GETTEXT.) Here is a fix.
>
>
> 2002-09-07  Bruno Haible  <address@hidden>
>
>       * configure.ac: Add need-ngettext to AM_GNU_GETTEXT invocation.
>
> *** configure.ac.bak  Fri Aug  9 11:59:57 2002
> --- configure.ac      Sat Sep  7 15:23:43 2002
> ***************
> *** 244,250 ****
>   
>   jm_LIB_CHECK
>   
> ! AM_GNU_GETTEXT([external])
>   
>   AC_CONFIG_FILES(
>     Makefile
> --- 244,250 ----
>   
>   jm_LIB_CHECK
>   
> ! AM_GNU_GETTEXT([external], [need-ngettext])
>   
>   AC_CONFIG_FILES(
>     Makefile




reply via email to

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