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

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

Re: Problem installing gettext 0.11.5 with prefix=...


From: Bruno Haible
Subject: Re: Problem installing gettext 0.11.5 with prefix=...
Date: Thu, 8 Aug 2002 16:27:22 +0200 (CEST)

Paul Smith writes:
> I'm using stow now, so I typically run commands like this (I don't
> really use /usr/gnu, this is just an example :):
> 
>   $ ./configure --prefix=/usr/gnu
> 
>   $ make
> 
>   $ make check
> 
>   $ make install prefix=/usr/gnu/stow/gettext-0.11.5

This is not supported. Use the DESTDIR facility instead:

    $ mkdir -p /tmp/prefix/usr
    $ rm -f /tmp/prefix/usr/gnu
    $ ln -s /usr/gnu/stow/gettext-0.11.5 /tmp/prefix/usr/gnu
    $ make install DESTDIR=/tmp/prefix

> Debugging shows that the libgettextlib.la file doesn't include a relink
> command, but that libgettextsrc.la _does_ include one.

This is normal, because libgettextsrc depends on libgettextlib.

> Because of this, apparently libtool thinks that you will need to relink
> the libgettextsrc shared library at install time.

Yes libtool needs to relink libgettextsrc.so at install time.

> For some reason this relinking is not working; it _appears_ that the
> code believes that the library will have already been linked and
> created, and it tries to move the existing library out of the way--but
> in fact it isn't created yet, so the mv fails.

It isn't created yet because your second 'prefix' specification causes
the library to be created elsewhere than where libtool and the linker
expect it.

> I have no idea how to fix this

Dig into libtool...

> except stop libgettextsrc linking with libgettextlib, which
> presumably means that all apps that want to add -lgettextsrc have to
> remember to use -lgettextlib as well.

This is not an option, because it would cause linker errors on AIX and
BeOS.

Bruno



reply via email to

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