bug-libtool
[Top][All Lists]
Advanced

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

libtool 1.4.2 (gettext 0.11): Relinking fails when DESTDIR set


From: Maciej W. Rozycki
Subject: libtool 1.4.2 (gettext 0.11): Relinking fails when DESTDIR set
Date: Tue, 5 Feb 2002 18:54:04 +0100 (MET)

Hello,

 It seems that libtool cannot handle the standard DESTDIR way of handling
chrooted installations.  The following happens with gettext 0.11:

$ CC=i386-linux-gcc CFLAGS='-pipe -O2 -fomit-frame-pointer -mcpu=i486'
./configure --prefix=/usr --cache-file=config.cache --build=i386-linux
--host=i386-linux
$ make
$ make DESTDIR=/var/tmp/gettext-0.11-root install-strip

The last command fails as follows (I've separated output lines for
readability):

[...]
make[3]: Entering directory
`/home/macro/src/redhat/BUILD/gettext-0.11/src'

/bin/sh ../mkinstalldirs /var/tmp/gettext-0.11-root/usr/lib

 /bin/sh ../libtool --mode=install /usr/bin/install -c  libgettextsrc.la
/var/tmp/gettext-0.11-root/usr/lib/libgettextsrc.la

libtool: install: warning: relinking `libgettextsrc.la'

cd /home/macro/src/redhat/BUILD/gettext-0.11/src; /bin/sh ../libtool
--mode=relink i386-linux-gcc -pipe -O2 -fomit-frame-pointer -mcpu=i486 -o
libgettextsrc.la -rpath /usr/lib -release 0.11 ../lib/libgettextlib.la -lc
-no-undefined message.lo po.lo po-lex.lo po-gram-gen.lo po-hash-gen.lo
po-charset.lo open-po.lo dir-list.lo str-list.lo read-po.lo write-po.lo
msgl-ascii.lo msgl-iconv.lo msgl-equal.lo msgl-cat.lo msgl-english.lo
file-list.lo msgl-charset.lo po-time.lo plural.lo format.lo format-c.lo
format-java.lo format-lisp.lo format-elisp.lo format-librep.lo
format-python.lo format-pascal.lo format-ycp.lo

i386-linux-gcc -shared  message.lo po.lo po-lex.lo po-gram-gen.lo
po-hash-gen.lo po-charset.lo open-po.lo dir-list.lo str-list.lo read-po.lo
write-po.lo msgl-ascii.lo msgl-iconv.lo msgl-equal.lo msgl-cat.lo
msgl-english.lo file-list.lo msgl-charset.lo po-time.lo plural.lo
format.lo format-c.lo format-java.lo format-lisp.lo format-elisp.lo
format-librep.lo format-python.lo format-pascal.lo format-ycp.lo
-L/usr/lib -lgettextlib -lc   -Wl,-soname -Wl,libgettextsrc-0.11.so -o
.libs/libgettextsrc-0.11.so

/usr/i386-linux/bin/ld: cannot find -lgettextlib

collect2: ld returned 1 exit status

libtool: install: error: relink `libgettextsrc.la' with the above command
before installing it

libtool: install: warning: remember to run `libtool --finish /usr/lib'

/bin/sh ../mkinstalldirs /var/tmp/gettext-0.11-root/usr/bin
[...]

As a result libgettextsrc gets removed from .libs and doesn't get
installed in $libdir.  Additionally, as you might see, libtool doesn't
propagate the error as returned by i386-linux-gcc back to make.

 The behavior is the same for both the gettext's included libtool: 

ltmain.sh (GNU libtool) 1.4 (1.920 2001/04/24 23:26:18)

and the current libtool after updating the scripts:

ltmain.sh (GNU libtool) 1.4.2 (1.922.2.54 2001/09/11 03:33:37)

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: address@hidden, PGP key available        +




reply via email to

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