Package: libtool
Version: 1.5.22-2
Severity: normal

With something like:
libtool --mode=link gcc -g -O2 -std=c99 -Wall -pedantic 
-D_POSIX_C_SOURCE=200112L \
  -Wall -export-dynamic -module -avoid-version -rpath /test -o test.la file.lo 
../lib1/libtest.la ../lib2/libtest.la

I get the error:
[...]
ar: .libs/test.lax/libtest.a/test1.o: No such file or directory
make[1]: *** [test.la] Error 1

The error is quite obvious from libtool output:
[...]
rm -fr .libs/test.lax/libtest.a
mkdir .libs/test.lax/libtest.a
(cd .libs/test.lax/libtest.a && ar x /test/lib1/.libs/libtest.a)
rm -fr .libs/test.lax/libtest.a
mkdir .libs/test.lax/libtest.a
(cd .libs/test.lax/libtest.a && ar x /test/lib2/.libs/libtest.a)
[...]

As you can see, the directory libtest.a is first created.
There, lib1/libtest.a is extracted with ar x. Then, since lib2/libtest.a
has the same filename, the directory libtest.a is removed, 
and recreated. The final result is that during link time
the file test1.o is missing.. (lib1/libtest.a contains test1.o, while
lib2/libtest.a contains test2.o).

In the example above, I had to edit some paths. Hope it
doesn't impair too much the ability to reproduce the bug.

Cheers,
Carlo

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libtool depends on:
ii  autotools-dev                 20050422.1 Update infrastructure for config.{
ii  cpp                           4:3.3.5-3  The GNU C preprocessor (cpp)
ii  file                          4.12-1     Determines file type using "magic"
ii  gcc [c-compiler]              4:3.3.5-3  The GNU C compiler
ii  gcc-3.3 [c-compiler]          1:3.3.6-5  The GNU C compiler
ii  gcc-3.4 [c-compiler]          3.4.4-0    The GNU C compiler
ii  gcc-4.0 [c-compiler]          4.0.2-4    The GNU C compiler
ii  libc6-dev [libc-dev]          2.3.5-3    GNU C Library: Development Librari

Versions of packages libtool recommends:
ii  libltdl3-dev                  1.5.6-6    A system independent dlopen wrappe

-- no debconf information

-- 
  GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
                        -------------
Vitamin C deficiency is apauling.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to