bug-libtool
[Top][All Lists]
Advanced

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

looks like bug


From: Arkadiusz Miskiewicz
Subject: looks like bug
Date: Thu, 10 May 2001 20:28:00 +0200
User-agent: Mutt/1.3.17i

libtool 1.4 does strange thing:
address@hidden libtool-test]$ ls -l
razem 1336
-rw-r--r--    1 misiek   users      704478 maj  2 15:28 libdb-3.1.a
-rwxr-xr-x    1 misiek   users         623 maj 10 20:16 libdb-3.1.la
-rwxr-xr-x    1 misiek   users      488304 maj  2 15:31 libdb-3.1.so
-rwxr-xr-x    1 misiek   users      147057 maj 10 09:09 libtool
-rw-------    1 misiek   users         127 maj 10 20:21 Makefile
-rw-------    1 misiek   users          25 maj 10 17:25 test.c
address@hidden libtool-test]$ cat libdb-3.1.la 
# libdb-3.1.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.3.4 (1.385.2.196 1999/12/07 21:47:57)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname=''

# Names of this library.
library_names='libdb-3.1.so libdb-3.1.so libdb-3.1.so'

# The name of the static archive.
old_library=''

# Libraries that this one depends upon.
dependency_libs=''

# Version information for libdb-3.1.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Directory that this library needs to be installed in:
libdir='./'
address@hidden libtool-test]$ 

Note that there is no static library in old_library and now:
address@hidden libtool-test]$ make
gcc -c test.c
/bin/sh libtool --mode=link gcc  -o test -s -all-static test.o ./libdb-3.1.la
                                            ^^^^^^^^^^^
gcc -o test -s -static test.o  .//libdb-3.1.so -Wl,--rpath -Wl,./ -Wl,--rpath 
-Wl,./
                               ^^^^^^^^^^^^^^^
/usr/bin/ld: /lib/ld-linux.so.2: indirect symbol `__libc_internal_tsd_set' to 
`__libc_internal_tsd_set@@GLIBC_2.0' is a loop
/lib/ld-linux.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [all] Błąd 1
address@hidden libtool-test]$ 

(this caused loop in linker; cvs version of ld from binutils detects such loop)

IMVHO libtool shouldn't put libdb-3.1.so into gcc comand line. Am I right?

-- 
Arkadiusz Miśkiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/   [ enabled ]



reply via email to

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