NetBSD Problem Report #43050
From kre@munnari.OZ.AU Wed Mar 24 05:30:17 2010
Return-Path: <kre@munnari.OZ.AU>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E41D163B11D
for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Mar 2010 05:30:16 +0000 (UTC)
Message-Id: <201003240530.o2O5UApg028545@jade.coe.psu.ac.th>
Date: Wed, 24 Mar 2010 12:30:10 +0700 (ICT)
From: kre@munnari.OZ.AU
To: gnats-bugs@gnats.NetBSD.org
Subject: math/mpfr (& others??) needs a revbump
X-Send-Pr-Version: 3.95
>Number: 43050
>Category: pkg
>Synopsis: math/mpfr (& others??) needs a revbump
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: asau
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 24 05:35:00 +0000 2010
>Closed-Date: Wed Mar 24 19:44:52 +0000 2010
>Last-Modified: Wed Mar 24 19:44:52 +0000 2010
>Originator: Robert Elz
>Release: NetBSD 4.0 / i386 pkgsrc current 2010-03-24
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE (JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 kre@jade.coe.psu.ac.th:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
The update of devel/gmp from version 4.3.1 to version 5.0.1
changed the major version of its shared lib from libgmp.so.3
to libgmp.so.10
math/mpfr installs a shares lib with a runtime dependency
upon libgmp.so - when the version of libgmp.so was
changed, mpfr needs to be rebuilt so it can link against
the correct version.
The pkgsrc way of achieving that is the (in)famous recursive
revbump - either that wasn't done at all in this case, or
(at the very least) math/mpfr was missed.
>How-To-Repeat:
I found this attempting to build the latest version of
lang/gcc44 - the build failed claiming that while building
libgcc it was unable to determine the suffix of object
files ...
The reason turned out to be that (even though there was
for the program being compiled no rational reason to need
any of this) the test program was linking against libmpfr.so
and that one (installed from my latest binary package building
of math/mpfr - predating the gmp update) required libgmp.so.3,
but installing devel/gmp had installed libgmp.so.10
pkg_comp:default.conf# ldd /pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/*.so
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libgmp.so:
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libgmpxx.so:
-lgmp.10 => /usr/pkg/lib/libgmp.so.10
-lstdc++.6 => /usr/lib/libstdc++.so.6
-lm.0 => /usr/lib/libm387.so.0
-lm.0 => /usr/lib/libm.so.0
-lgcc_s.1 => /usr/lib/libgcc_s.so.1
/pkg_comp/obj/pkgsrc/lang/gcc44/4x/.buildlink/lib/libmpfr.so:
-lgmp.3 => not found
Rebuilding math/mpfr fixed that problem.
>Fix:
Do a recursive revbump for the devel/gmp update if that
has not already been done (but not for any packages that
have been updated for other reasons in the past month or so).
Or, at the very least, revbump math/mpfr
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->asau
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 24 Mar 2010 09:37:35 +0000
Responsible-Changed-Why:
asau did the gmp update.
State-Changed-From-To: open->closed
State-Changed-By: asau@NetBSD.org
State-Changed-When: Wed, 24 Mar 2010 19:44:52 +0000
State-Changed-Why:
Done. Thanks for the report.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.