[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: build problem on old Linux libc5
From: |
Bruno Haible |
Subject: |
Re: build problem on old Linux libc5 |
Date: |
Wed, 10 Sep 2003 16:29:27 +0200 |
User-agent: |
KMail/1.5 |
Alain Guibert wrote:
> On my old Linux box (Intel Debian bo: kernel 2.0.39, gcc 2.7.2.1,
> libc 5.4.33, libiconv 1.9.1, i586-pc-linux-gnulibc1) trying to build
> gettext 0.12.1, make fails:
> | gcc -g -O2 -o .libs/gettext gettext-gettext.o ../lib/libgrt.a
> | ../intl/.libs/libintl.so -L/usr/local/lib -lc /usr/local/lib/libiconv.so
> | -Wl,--rpath -Wl,/usr/local/lib ../intl/.libs/libintl.so: undefined
> | reference to `getline'
Thanks for reporting this.
> Note I first had the same undefined getline error while building
> libiconv 1.9.1, problem solved by Bruno Haible who sent me a patch.
The same patch should apply here also.
Bruno
*** gettext-runtime/intl/relocatable.c 23 Jun 2003 10:30:57 -0000
1.3
--- gettext-runtime/intl/relocatable.c 1 Aug 2003 16:39:57 -0000
***************
*** 313,319 ****
static void
find_shared_library_fullname ()
{
! #ifdef __linux__
FILE *fp;
/* Open the current process' maps file. It describes one VMA per line. */
--- 313,320 ----
static void
find_shared_library_fullname ()
{
! #if defined __linux__ && __GLIBC__ >= 2
! /* Linux has /proc/self/maps. glibc 2 has the getline() function. */
FILE *fp;
/* Open the current process' maps file. It describes one VMA per line. */