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

Bug#178661: marked as done (mklibs: Confuses libm and libmd5)



Your message dated Tue, 28 Jan 2003 14:04:40 +0100
with message-id <20030128130440.GA1415@wavehammer.waldi.eu.org>
and subject line Bug#178661: mklibs: Confuses libm and libmd5
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; 27 Jan 2003 21:35:39 +0000
>From anthony@spectrumaccess.com Mon Jan 27 15:35:38 2003
Return-path: <anthony@spectrumaccess.com>
Received: from mail.spectrumaccess.com [66.170.96.8] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18dGuo-0007CX-00; Mon, 27 Jan 2003 15:35:38 -0600
Received: from whosthere (corpnat.spectrumaccess.com [66.170.96.180])
	by mail.spectrumaccess.com (8.9.3/8.9.3) with ESMTP id QAA02226;
	Mon, 27 Jan 2003 16:41:28 -0500
Received: from anthony by whosthere with local (Exim 3.35 #1 (Debian))
	id 18dGul-00009x-00; Mon, 27 Jan 2003 16:35:35 -0500
From: Anthony DeRobertis <anthony@spectrumaccess.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mklibs: Confuses libm and libmd5
X-Mailer: reportbug 1.50
Date: Mon, 27 Jan 2003 16:35:35 -0500
Message-Id: <[🔎] E18dGul-00009x-00@whosthere>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-0.4 required=5.0
	tests=LARGE_COLLECTION,PATCH_UNIFIED_DIFF,SPAM_PHRASE_00_01,
	      SUPERLONG_LINE
	version=2.41
X-Spam-Level: 

Package: mklibs
Version: 0.1.8
Severity: important
Tags: patch

      calling gcc -nostdlib -nostartfiles -shared -Wl,-soname=libm.so.6 -ufesetround -o lib//libm.so.6-so  /home/anthony/cvs/cvs.derobert.net/Soekris/src/libmd5/lib/libmd5_pic.a   -Wl,--version-script=/usr/lib/libm_pic.map -lgcc -L lib/ -L/home/anthony/cvs/cvs.derobert.net/Soekris/src/Anthony/SpecialCGILib/lib -L/home/anthony/cvs/cvs.derobert.net/Soekris/src/libmd5/lib -L/usr/lib/gcc-lib/i386-linux/3.0.4/ -L/lib/ -L/usr/lib/ -L/usr/X11R6/lib/ -lc

Notice:
      calling gcc [...]	\
	  -o lib//libm.so.6-so \
	  /home/anthony/cvs/cvs.derobert.net/Soekris/src/libmd5/lib/libmd5_pic.a [...]

mklibs seems to confuse libm and libmd5! Oddly enough, this is only
happening on my woody system; maybe because libm is never requested on
sarge due to a _pic.a file for libstdc++.

I think the reason is:
	def find_pic(lib):
		base_name = so_pattern.match(lib).group(1)
		for path in lib_path:
			for file in glob.glob(path + "/" + base_name + "*_pic.a"):
			                                                ^
															|
														evil splat!

Indeed, removing that splat fixes it on my woody system. Checking the
names of all the _pic.a files on both my woody and sarge systems shows:

WOODY:
	anthony@whosthere:anthony$ locate _pic.a
	/home/anthony/cvs/cvs.derobert.net/Soekris/src/libmd5/lib/libmd5_pic.a
	/usr/lib/libc_pic.a
	/usr/lib/libm_pic.a
	/usr/lib/libresolv_pic.a

SARGE:
	/usr/i386-linux-uclibc/lib/libcrypt_pic.a
	/usr/i386-linux-uclibc/lib/libc_pic.a
	/usr/i386-linux-uclibc/lib/libdl_pic.a
	/usr/i386-linux-uclibc/lib/libm_pic.a
	/usr/i386-linux-uclibc/lib/libpthread_pic.a
	/usr/i386-linux-uclibc/lib/libresolv_pic.a
	/usr/i386-linux-uclibc/lib/libutil_pic.a
	/usr/lib/gcc-lib/i386-linux/3.2.1/libstdc++_pic.a
	/usr/lib/libc_pic.a
	/usr/lib/libm_pic.a
	/usr/lib/libresolv_pic.a

So, this appears to be a safe patch to apply (not quite tested...):

diff -rdbU3 mklibs-0.1.8/mklibs.py mklibs-0.1.8asd1/mklibs.py
--- mklibs-0.1.8/mklibs.py	Mon Oct 28 13:23:21 2002
+++ mklibs-0.1.8asd1/mklibs.py	Mon Jan 27 16:31:48 2003
@@ -174,7 +174,7 @@
 def find_pic(lib):
     base_name = so_pattern.match(lib).group(1)
     for path in lib_path:
-        for file in glob.glob(path + "/" + base_name + "*_pic.a"):
+        for file in glob.glob(path + "/" + base_name + "_pic.a"):
             if os.access(file, os.F_OK):
                 return resolve_link(file)
     return ""
@@ -183,7 +183,7 @@
 def find_pic_map(lib):
     base_name = so_pattern.match(lib).group(1)
     for path in lib_path:
-        for file in glob.glob(path + "/" + base_name + "*_pic.map"):
+        for file in glob.glob(path + "/" + base_name + "_pic.map"):
             if os.access(file, os.F_OK):
                 return resolve_link(file)
     return ""

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux whosthere 2.4.18-whosthere #1 Mon Dec 16 16:19:07 EST 2002 i686
Locale: LANG=C, LC_CTYPE=

Versions of packages mklibs depends on:
ii  binutils               2.12.90.0.1-4     The GNU assembler, linker and bina
ii  gcc [c-compiler]       2:2.95.4-14       The GNU C compiler.
ii  gcc-2.95 [c-compiler]  1:2.95.4-11woody1 The GNU C compiler.
ii  gcc-3.0 [c-compiler]   1:3.0.4-7         The GNU C compiler.
ii  libc6-pic              2.2.5-11.2        GNU C Library: PIC archive library
ii  python                 2.1.3-3.2         An interactive object-oriented scr


---------------------------------------
Received: (at 178661-done) by bugs.debian.org; 28 Jan 2003 13:04:45 +0000
>From waldi@debian.org Tue Jan 28 07:04:43 2003
Return-path: <waldi@debian.org>
Received: from pd9e60053.dip.t-dialin.net (extern.mail.waldi.eu.org) [217.230.0.83] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18dVPv-00073Y-00; Tue, 28 Jan 2003 07:04:43 -0600
Received: by wavehammer.waldi.eu.org (Postfix, from userid 1000)
	id E035F74EE7; Tue, 28 Jan 2003 14:04:40 +0100 (CET)
Date: Tue, 28 Jan 2003 14:04:40 +0100
From: Bastian Blank <waldi@debian.org>
To: 178661-done@bugs.debian.org
Subject: Re: Bug#178661: mklibs: Confuses libm and libmd5
Message-ID: <20030128130440.GA1415@wavehammer.waldi.eu.org>
References: <[🔎] E18dGul-00009x-00@whosthere>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99"
Content-Disposition: inline
In-Reply-To: <[🔎] E18dGul-00009x-00@whosthere>
User-Agent: Mutt/1.4i
Delivered-To: 178661-done@bugs.debian.org
X-Spam-Status: No, hits=-11.7 required=5.0
	tests=IN_REP_TO,PGP_SIGNATURE_2,REFERENCES,SPAM_PHRASE_00_01,
	      USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 


--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 27, 2003 at 04:35:35PM -0500, Anthony DeRobertis wrote:
> Package: mklibs
> Version: 0.1.8

already fixed in unstable

bastian

--=20
Violence in reality is quite different from theory.
		-- Spock, "The Cloud Minders", stardate 5818.4

--5vNYLRcllDrimb99
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iEYEARECAAYFAj42f+gACgkQLkAIIn9ODhGySACgyZYEbF7A3wrWtNK69Sfs6ql6
pj0An2fIXkTTXm4BtaFSwWmULkKmjM7v
=PRgc
-----END PGP SIGNATURE-----

--5vNYLRcllDrimb99--



Reply to: