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

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

Re: gettext 0.17 compilation troubles


From: Bruno Haible
Subject: Re: gettext 0.17 compilation troubles
Date: Wed, 26 Dec 2007 17:09:58 +0100
User-agent: KMail/1.5.4

Dear Иван,

Левашев Иван wrote:
> My platform :
> Mac OS X 10.4.8
> ppc-apple-darwin8.8.1
> 
> I wanted to build gettext relocatable (--enable-relocatable) and
> install it to some temporary directory (DESTDIR=). Then compiled
> gettext is to be copied to a self-contained bundle.
> 
> Troubles I had:
> configure doesn't detect unsetenv presence. It just doesn't check for
> it. Probably gettext needs autoreconf with newer autotools. I've
> manually added -DHAVE_UNSETENV to aid compilation (otherwise ld
> reports conflicts).
> 
> gettext got compiled, but wrappers don't.
> 
> Relocation wrapper references void xalloc_die (void)
> 
> gettext-runtime/gnulib-lib :
> 
> relocwrapper references progreloc, progreloc references xreadlink
> 
> And xreadlink calls xalloc_die despite the NO_XMALLOC flag set. grep
> -r didn't find any another source file with English-only xalloc_die()
> version.
> xmalloc can't be used in a wrapper because libintl.dylib can't be
> located for a wrapper, it's a wrapper's job to set
> DYLD_LIBRARY_PATH.
> I first linked libintl statically (for every wrapper), and it worked,
> then I've used xalloc_die.c from GNU inetutils/lib:
> 
> #include <stdio.h>
> 
> void
> xalloc_die (void)
> {
>   fprintf (stderr, "out of memory\n");
>   exit (1);
> }
> 
> That's all. After adding it wrappers get compiled.
> 
> Next. Wrappers got compiled, but they don't work because of DESTDIR=
> 
> build-aux/install-reloc :
> 
> installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'`
> 
> It's wrong when DESTDIR is used.
> For example, my destprog is
> /Users/OCTAGRAM/Documents/Unix_Build/Dia-app/Intermediate/gettext/out/ppc/bin/gettext
> 
> installdir is detected as everything above but "/gettext"
> 
> But installdir must be just "/bin" instead.

Thank you for reporting this. --enable-relocatable had not been tested
immediately before the gettext 0.17 release, because I was in a hurry.

I'm fixing the unsetenv declaration conflict through a patch to gnulib.

I'm fixing the xalloc_die trouble by using 'areadlink' instead of 'xreadlink'
in progreloc.c, in gnulib as well.

I'm fixing the DESTDIR problem by passing the DESTDIR explicitly to the
install-reloc program, so that it can be removed from installdir.

Thank you very much! Well done. I'm sorry that it took me so long to find
some time to reply to you.

Bruno





reply via email to

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