GNU bug report logs - #28728
libtool on NetBSD: bug in shared library versioning

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Thomas Klausner <tk@HIDDEN>; dated Sat, 7 Oct 2017 07:40:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Oct 2017 07:39:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 07 03:39:59 2017
Received: from localhost ([127.0.0.1]:53709 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1e0jiH-0006Fe-Re
	for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:39:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:43374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wiz@HIDDEN>) id 1e0jiF-0006FM-Pg
 for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:39:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1e0ji9-00063D-Jt
 for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:39:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36647)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <wiz@HIDDEN>)
 id 1e0ji9-00062y-G5
 for submit <at> debbugs.gnu.org; Sat, 07 Oct 2017 03:39:49 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34342)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1e0ji8-0001CW-Bj
 for bug-libtool@HIDDEN; Sat, 07 Oct 2017 03:39:49 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <wiz@HIDDEN>) id 1e0ji5-000619-9p
 for bug-libtool@HIDDEN; Sat, 07 Oct 2017 03:39:48 -0400
Received: from danbala.ifoer.tuwien.ac.at ([128.130.168.114]:56699)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <wiz@HIDDEN>)
 id 1e0ji5-0005zu-0I
 for bug-libtool@HIDDEN; Sat, 07 Oct 2017 03:39:45 -0400
Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116)
 id 7D683A50B; Sat,  7 Oct 2017 09:39:41 +0200 (CEST)
Date: Sat, 7 Oct 2017 09:39:41 +0200
From: Thomas Klausner <tk@HIDDEN>
To: bug-libtool@HIDDEN
Subject: libtool on NetBSD: bug in shared library versioning
Message-ID: <20171007073941.tjd7reknzuayq2ux@danbala>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="wbvkyms7o6ihmpsu"
Content-Disposition: inline
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


--wbvkyms7o6ihmpsu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi!

According to the libtool documentation at
https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html,
when adding a function to a shared library, one should bump current
and age by one each and set revision to zero (current because of rule
3, revision because of rule 4, and age because of rule 5).

So if the library versioninfo was 5:0:0, it should become 6:0:1.

When I do that on Linux, I get *.so.5.0.0 -> *.so.5.1.0 which looks
fine to me.

However, when I do that on NetBSD, I get *.so.5.0 -> *.so.6.0 which is
not fine, because it's a quite unnecessary shared library major bump.

That's with libtool-2.4.6.

I've attached a very simple project as a testcase, just unpack it and
run 'autoreconf -fiv; ./configure; make'.

I'm not quite sure why NetBSD needs to be different from Linux at all,
since it has been following the ELF specification for a very long
time.

Please fix this!

Thanks,
 Thomas

--wbvkyms7o6ihmpsu
Content-Type: application/x-tar-gz
Content-Disposition: attachment; filename="libtooltest.tar.gz"
Content-Transfer-Encoding: base64

H4sIADeE2FkAA+3VT2+bMBwG4Jz9Kaz2QqQE7IQSqVumMUJSNBIyIFKlrEIukMQqMRV/2mnT
vvuANFs6acolSnf4PQcQ2MaW8Wsn/L5I06SI80KZsod4xZNYZtvWKRFKiKapLUIIHVyR+k6o
2jw3+gPaon2qabSqqfVbdWmPDFrkpKP4hzIvWIZx65l/P1IvzvJzDOi89IXvTPXPZuDMfcuZ
ecNVmsV8LRDSDdsxdDvQp2Nbn3jDroW3Kq6uSplnSpKGLFHyDctihYXNE0IJvw9s37Y+ubpr
mR4e4uTP8pIThtAlZkme4vIxYkWMjXrF2Twvcrn4VuDnTSxwuGFizcUaP1XzzVOBDj4RJCyw
Ry/DEWm3FFG1YEUc4e5L7S4XqxRr1+Sa/t3QcxauYXrDZiwheuuJ/08cTJISpmLF12VWbQDh
Kfs4nv/ePv9kQAdN/lUV8n8OuhHMXdM1v0jLnqyRu3aV+8CaWb60PFgad50llUl1LR4+rvma
yWkms2JX2XBmY2sSeK4xslxpuYvXq6IbUx+ZrictdwtM3rwqneqG6wRN261al0yb/oP9zoSa
ITqTwDBQ00yfOTOr3pluHM+v35i3pnnrI9tvGqKDb48t26z63R9su36dhT9f+LABNA7zv/t1
p+/jWP5pT/2df41e1fnv9wYq5P8MLrkIkzKK8fu8iHgqbz4g9JTy6PD0lOoXbfQD4cpjxkWx
ki7qguqYliuYdnCvg/tfxUX7HfoJyQIAAAAAAAAAAAAAAAAAAAAAgDfwC8XIb2EAKAAA

--wbvkyms7o6ihmpsu--




Acknowledgement sent to Thomas Klausner <tk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#28728; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.