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

Bug#252245: marked as done (libtool1.4: Assumes libraries begin with 'lib' during relinking.)

Your message dated Tue, 01 Nov 2005 09:49:55 +0100
with message-id <87ll0821n0.fsf@diziet.irb.hr>
and subject line libtool1.4 removed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 2 Jun 2004 10:13:29 +0000
>From Paul.Hampson@anu.edu.au Wed Jun 02 03:13:29 2004
Return-path: <Paul.Hampson@anu.edu.au>
Received: from obitoo.bu.net.au (smtp.bu.net.au) [] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BVSkT-00021h-00; Wed, 02 Jun 2004 03:13:29 -0700
Received: from localhost (obitoo [])
	by smtp.bu.net.au (Postfix) with ESMTP
	id D18172F046B; Wed,  2 Jun 2004 20:13:27 +1000 (EST)
Received: from smtp.bu.net.au ([])
	by localhost (obitoo []) (amavisd-new, port 10024) with LMTP
	id 24766-03-2; Wed, 2 Jun 2004 20:13:27 +1000 (EST)
Received: from keitarou (dsl- [])
	by smtp.bu.net.au (Postfix) with ESMTP
	id 370692F041C; Wed,  2 Jun 2004 20:13:27 +1000 (EST)
Received: from localhost (keitarou [])
	by keitarou (Postfix) with ESMTP
	id 61D8F1A0003; Wed,  2 Jun 2004 20:12:18 +1000 (EST)
Received: from keitarou ([])
	by localhost (keitarou []) (amavisd-new, port 10024)
	with LMTP id 01882-03; Wed, 2 Jun 2004 20:12:17 +1000 (EST)
Received: by keitarou (Postfix, from userid 1000)
	id A33B31A0002; Wed,  2 Jun 2004 20:12:17 +1000 (EST)
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Paul Hampson <Paul.Hampson@anu.edu.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libtool1.4: Assumes libraries begin with 'lib' during relinking.
X-Mailer: reportbug 2.59
Date: Wed, 02 Jun 2004 20:12:17 +1000
Message-Id: <20040602101217.A33B31A0002@keitarou>
X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at keitarou.bubblesworth.net
X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at bu.net.au
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25

Package: libtool1.4
Version: 1.4.3-19
Severity: normal

When trying to link other libtool libraries (*.la), libtool1.4 replaces
/path/to/name.la with -lname during relink which fails if
name does not start with 'lib'.

Attempting to fix #244578 in FreeRADIUS's source, the path to the
dependee's .la file was added to the dependant's libtool link line.
(The same fix worked for ../../libeap/libeap.la, since it begins with

This produced the following:
/usr/bin/libtool --mode=link gcc -release 1.0.0-pre1 \
-module -export-dynamic  -Wall -g -O2 -D_REENTRANT
-I./../.. -I./../../libeap    -I../rlm_eap_tls -DOPENSSL_NO_KRB5  \
-o rlm_eap_ttls.la -rpath /usr/lib/freeradius rlm_eap_ttls.lo ttls.lo
-L./../../libeap -leap
-lcrypto -lssl
-lnsl -lresolv  -lpthread -lcrypto -lssl

rm -fr .libs/rlm_eap_ttls.la .libs/rlm_eap_ttls.* .libs/rlm_eap_ttls-1.0.0-pre1.*

gcc -shared  rlm_eap_ttls.lo ttls.lo  -Wl,--rpath
-Wl,--rpath -Wl,/usr/lib/freeradius
-lnsl -lresolv -lpthread -lcrypto -lssl    -Wl,-soname -Wl,rlm_eap_ttls-1.0.0-pre1.so -o

(cd .libs && rm -f rlm_eap_ttls.so && ln -s rlm_eap_ttls-1.0.0-pre1.so rlm_eap_ttls.so)

ar cru .libs/rlm_eap_ttls.a  rlm_eap_ttls.o ttls.o

ranlib .libs/rlm_eap_ttls.a

creating rlm_eap_ttls.la

(cd .libs && rm -f rlm_eap_ttls.la && ln -s ../rlm_eap_ttls.la rlm_eap_ttls.la)

The indented lines are the important bits. We are trying to link
../rlm_eap_tls/rlm_eap_tls.la into this module.

This is all fine. The relink command generated is:
/bin/sh /usr/bin/libtool --mode=relink gcc -release 1.0.0-pre1
-module -export-dynamic -Wall -g -O2 -D_REENTRANT
-I./../.. -I./../../libeap -I../rlm_eap_tls -DOPENSSL_NO_KRB5 -o
rlm_eap_ttls.la -rpath /usr/lib/freeradius rlm_eap_ttls.lo ttls.lo
-L./../../libeap -leap
-lcrypto -lssl
-lnsl -lresolv -lpthread -lcrypto -   lssl @inst_prefix_dir@)

Again, fine.

Running this however, produces the following:

gcc -shared  rlm_eap_ttls.lo ttls.lo  -Wl,--rpath
-L/usr/lib/freeradius -leap
-lnsl -lresolv -lpthread
-lcrypto -lssl    -Wl,-soname -Wl,rlm_eap_ttls-1.0.0-pre1.so -o

Which errors with:
/usr/bin/ld: cannot find -lrlm_eap_tls
collect2: ld returned 1 exit status
libtool: install: error: relink `rlm_eap_ttls.la' with the above command before installing it

Here you can see that ./../rlm_eap_tls/rlm_eap_tls.la has become
-lrlm_eap_ttls, which is completely incorrect, where before it quite
correctly became ./../rlm_eap_tls/.libs/rlm_eap_tls.so

The offending stanza is the if statement from lines 2213 to 2241. We are
hitting the line 2240, while during link we hit 2147.

Some other details are available in the FreeRADIUS bugzilla at 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.5
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8

Versions of packages libtool1.4 depends on:
ii  autotools-dev               20040312.1   Update infrastructure for config.{
ii  cpp                         4:3.3.3-3    The GNU C preprocessor (cpp)
ii  file                        4.07-2       Determines file type using "magic"
ii  gcc [c-compiler]            4:3.3.3-3    The GNU C compiler
ii  gcc-3.3 [c-compiler]        1:3.3.3-8    The GNU C compiler
ii  libc6-dev [libc-dev]        2.3.2.ds1-12 GNU C Library: Development Librari

-- no debconf information

Received: (at 252245-done) by bugs.debian.org; 1 Nov 2005 08:50:03 +0000
>From vela@debian.org Tue Nov 01 00:50:03 2005
Return-path: <vela@debian.org>
Received: from mail.irb.hr [] (UNKNOWN)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EWrqE-0006bg-00; Tue, 01 Nov 2005 00:50:02 -0800
Received: from diziet.irb.hr (diziet.irb.hr [])
	by mail.irb.hr (8.13.3/8.13.3/Debian-6) with ESMTP id jA18nrH2019445;
	Tue, 1 Nov 2005 09:49:53 +0100
Received: from diziet.irb.hr (localhost [])
	by diziet.irb.hr (8.13.5/8.13.5/Debian-3) with ESMTP id jA18ntrZ014696;
	Tue, 1 Nov 2005 09:49:55 +0100
Received: (from mvela@localhost)
	by diziet.irb.hr (8.13.5/8.13.5/Submit) id jA18ntQM014694;
	Tue, 1 Nov 2005 09:49:55 +0100
From: Matej Vela <vela@debian.org>
To: 157072-done@bugs.debian.org, 216313-done@bugs.debian.org,
        224437-done@bugs.debian.org, 226997-done@bugs.debian.org,
        241862-done@bugs.debian.org, 247299-done@bugs.debian.org,
        252245-done@bugs.debian.org, 253574-done@bugs.debian.org
Subject: libtool1.4 removed
Date: Tue, 01 Nov 2005 09:49:55 +0100
Message-ID: <87ll0821n0.fsf@diziet.irb.hr>
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Scanned-By: MIMEDefang 2.51 on
Delivered-To: 252245-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_00,SORTED_RECIPS 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

libtool1.4 no longer has any reverse dependencies and has been removed
from Debian.

Reply to: