[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext 0.17 compilation troubles
From: |
Левашев Иван |
Subject: |
gettext 0.17 compilation troubles |
Date: |
Sat, 01 Dec 2007 06:34:07 +0600 |
User-agent: |
Internet Messaging Program (IMP) 3.2.2 |
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.
--
If you want to get to the top, you have to start at the bottom
- gettext 0.17 compilation troubles,
Левашев Иван <=