NetBSD Problem Report #44579

From jschauma@netmeister.org  Tue Feb 15 18:08:12 2011
Return-Path: <jschauma@netmeister.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0A7DA63B889
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Feb 2011 18:08:12 +0000 (UTC)
Message-Id: <20110215180809.9DE1E356E03@panix.netmeister.org>
Date: Tue, 15 Feb 2011 13:08:09 -0500 (EST)
From: jschauma@netmeister.org
Reply-To: jschauma@netmeister.org
To: gnats-bugs@gnats.NetBSD.org
Subject: archivers/xz hoses bootstrap kit on FreeBSD
X-Send-Pr-Version: 3.95

>Number:         44579
>Category:       pkg
>Synopsis:       archivers/xz hoses bootstrap kit on FreeBSD
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    agc
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 18:10:00 +0000 2011
>Closed-Date:    
>Last-Modified:  Sun Nov 23 03:54:36 +0000 2014
>Originator:     Jan Schaumann
>Release:        FreeBSD 9.0-CURRENT
>Organization:

>Environment:


System: FreeBSD ip-10-112-59-246 9.0-CURRENT FreeBSD 9.0-CURRENT #122: Tue Jan  4 20:59:00 UTC 2011     root@chch.daemonology.net:/usr/obj/i386.i386/usr/src/sys/XEN  i386
>Description:

After bootstrapping pkgsrc (current) on a FreeBSD 9.0-CURRENT host, I get my pkg* tools
properly linked against /usr/lib/liblzma.  I can build a number of packages and all's peachy,
but if I install archivers/xz, the libraries installed by that package break the package tools:

 /bin/sh ../../libtool   --mode=install /usr/bin/install -c -o root -g wheel   liblzma.la '/usr/pkg/lib'
 libtool: install: /usr/bin/install -c -o root -g wheel .libs/liblzma.so.5 /usr/pkg/lib/liblzma.so.5
 libtool: install: (cd /usr/pkg/lib && { ln -s -f liblzma.so.5 liblzma.so || { rm -f liblzma.so && ln -s liblzma.so.5 liblzma.so; }; })
 libtool: install: /usr/bin/install -c -o root -g wheel .libs/liblzma.lai /usr/pkg/lib/liblzma.la   libtool: install: /usr/bin/install -c -o root -g wheel .libs/liblzma.a /usr/pkg/lib/liblzma.a
 libtool: install: chmod 644 /usr/pkg/lib/liblzma.a
 libtool: install: ranlib /usr/pkg/lib/liblzma.a
 [...]
 => Automatic manual page handling
 /libexec/ld-elf.so.1: /usr/pkg/lib/liblzma.so.5: version XZ_5.0 required by /usr/pkg/sbin/pkg_info not defined
 /libexec/ld-elf.so.1: /usr/pkg/lib/liblzma.so.5: version XZ_5.0 required by /usr/pkg/sbin/pkg_create not defined
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/archivers/xz
 [...]
 ip-10-112-59-246# ldd `which pkg_add`
 /usr/pkg/sbin/pkg_add:
	libcrypto.so.6 => /lib/libcrypto.so.6 (0x280d9000)
	liblzma.so.5 => /usr/pkg/lib/liblzma.so.5 (0x28235000)
	libbz2.so.4 => /usr/lib/libbz2.so.4 (0x28256000)
	libz.so.6 => /lib/libz.so.6 (0x28267000)
	libc.so.7 => /lib/libc.so.7 (0x2827b000)
	libthr.so.3 => /lib/libthr.so.3 (0x2839d000)
	librt.so.1 => /usr/lib/librt.so.1 (0x283bd000)



>How-To-Repeat:

Create a FreeBSD-9.0 host (for example an AWS instance, AMI ami-8cce3fe5).
bootstrap pkgsrc
cd /usr/pkgsrc/archivers/xz
bmake install

>Fix:


>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Tue, 15 Feb 2011 19:38:06 +0100

 On Tue, Feb 15, 2011 at 06:10:01PM +0000, jschauma@netmeister.org wrote:
 >  ip-10-112-59-246# ldd `which pkg_add`
 >  /usr/pkg/sbin/pkg_add:
 > 	libcrypto.so.6 => /lib/libcrypto.so.6 (0x280d9000)
 > 	liblzma.so.5 => /usr/pkg/lib/liblzma.so.5 (0x28235000)
 > 	libbz2.so.4 => /usr/lib/libbz2.so.4 (0x28256000)
 > 	libz.so.6 => /lib/libz.so.6 (0x28267000)
 > 	libc.so.7 => /lib/libc.so.7 (0x2827b000)
 > 	libthr.so.3 => /lib/libthr.so.3 (0x2839d000)
 > 	librt.so.1 => /usr/lib/librt.so.1 (0x283bd000)

 pkg_add shouldn't have a rpath entry for /usr/pkg/lib.

 Joerg

From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Wed, 16 Feb 2011 15:04:53 +1300 (NZDT)

 On Tue, 15 Feb 2011, jschauma@netmeister.org wrote:

 >  ip-10-112-59-246# ldd `which pkg_add`
 >  /usr/pkg/sbin/pkg_add:
 > 	libcrypto.so.6 => /lib/libcrypto.so.6 (0x280d9000)
 > 	liblzma.so.5 => /usr/pkg/lib/liblzma.so.5 (0x28235000)
 > 	libbz2.so.4 => /usr/lib/libbz2.so.4 (0x28256000)
 > 	libz.so.6 => /lib/libz.so.6 (0x28267000)
 > 	libc.so.7 => /lib/libc.so.7 (0x2827b000)
 > 	libthr.so.3 => /lib/libthr.so.3 (0x2839d000)
 > 	librt.so.1 => /usr/lib/librt.so.1 (0x283bd000)

 Does /etc/ld-elf.so.conf contain /usr/pkg/lib, if so I recommend that
 you remove it!

 -- 
 Steven

State-Changed-From-To: open->feedback
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 18 Feb 2011 08:03:12 +0000
State-Changed-Why:
Feedback given, does it help?


From: Jan Schaumann <jschauma@netmeister.org>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Sun, 20 Feb 2011 19:57:33 -0500

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

 Steven Drake <sbd@NetBSD.org> wrote:
 =20
 >  On Tue, 15 Feb 2011, jschauma@netmeister.org wrote:
 > =20
 >  >  ip-10-112-59-246# ldd `which pkg_add`
 >  >  /usr/pkg/sbin/pkg_add:
 >  > 	libcrypto.so.6 =3D> /lib/libcrypto.so.6 (0x280d9000)
 >  > 	liblzma.so.5 =3D> /usr/pkg/lib/liblzma.so.5 (0x28235000)
 >  > 	libbz2.so.4 =3D> /usr/lib/libbz2.so.4 (0x28256000)
 >  > 	libz.so.6 =3D> /lib/libz.so.6 (0x28267000)
 >  > 	libc.so.7 =3D> /lib/libc.so.7 (0x2827b000)
 >  > 	libthr.so.3 =3D> /lib/libthr.so.3 (0x2839d000)
 >  > 	librt.so.1 =3D> /usr/lib/librt.so.1 (0x283bd000)
 > =20
 >  Does /etc/ld-elf.so.conf contain /usr/pkg/lib, if so I recommend that
 >  you remove it!

 /etc/ld-elf.so.conf does not exist on the host in question:

 # ls -l /etc/ld*
 ls: No match.
 #=20

 -Jan

 --gatW/ieO32f1wygP
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)

 iD8DBQFNYbh9fFtkr68iakwRAk4uAJ9KW1EEK38wTvuT1DLJjLSn9m/hZwCg5Gw3
 Fip7bsQeVya7GDyM0t4Z/1M=
 =8aAH
 -----END PGP SIGNATURE-----

 --gatW/ieO32f1wygP--

From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Mon, 21 Feb 2011 17:25:14 +1300 (NZDT)

 On Mon, 21 Feb 2011, Jan Schaumann wrote:
 >  Steven Drake <sbd@NetBSD.org> wrote:
 >  >  On Tue, 15 Feb 2011, jschauma@netmeister.org wrote:
 >  >
 >  >  >  ip-10-112-59-246# ldd `which pkg_add`
 >  >  >  /usr/pkg/sbin/pkg_add:
 >  >  > 	libcrypto.so.6 => /lib/libcrypto.so.6 (0x280d9000)
 >  >  > 	liblzma.so.5 => /usr/pkg/lib/liblzma.so.5 (0x28235000)
 >  >  > 	libbz2.so.4 => /usr/lib/libbz2.so.4 (0x28256000)
 >  >  > 	libz.so.6 => /lib/libz.so.6 (0x28267000)
 >  >  > 	libc.so.7 => /lib/libc.so.7 (0x2827b000)
 >  >  > 	libthr.so.3 => /lib/libthr.so.3 (0x2839d000)
 >  >  > 	librt.so.1 => /usr/lib/librt.so.1 (0x283bd000)
 >  >
 >  >  Does /etc/ld-elf.so.conf contain /usr/pkg/lib, if so I recommend that
 >  >  you remove it!
 >  
 >  /etc/ld-elf.so.conf does not exist on the host in question:

 What about the LD_LIBRARY_PATH or LD_32_LIBRARY_PATH environment variables?

 -- 
 Steven

From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Mon, 21 Feb 2011 17:52:40 +0900

 On my FreeBSD-8.1 box,

 % objdump -x /usr/pkg/sbin/pkg_info | grep RPATH
    RPATH       /usr/pkg/lib

From: Jan Schaumann <jschauma@netmeister.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Wed, 23 Feb 2011 15:56:54 -0500

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

 Steven Drake <sbd@NetBSD.org> wrote:
  =20
 >  What about the LD_LIBRARY_PATH or LD_32_LIBRARY_PATH environment variabl=
 es?

 Neither is set.

 The pkg* tools are built with -Wl,-R/usr/pkg/lib -- at least the
 compiler invocations displayed use these flags (who knows if the
 underlying transform magic strips those out or not).

 -Jan

 --jq0ap7NbKX2Kqbes
 Content-Type: application/pgp-signature
 Content-Disposition: inline

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (NetBSD)

 iD8DBQFNZXSVfFtkr68iakwRArYHAKChMh/x2Tqb8vzNquiWIhdKpBoD1wCgrT5M
 hTJxSOkeegB/fiiPwJkvcK8=
 =7srS
 -----END PGP SIGNATURE-----

 --jq0ap7NbKX2Kqbes--

Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: sbd@NetBSD.org
Responsible-Changed-When: Thu, 24 Feb 2011 06:41:31 +0000
Responsible-Changed-Why:
Over to pkg_install maintainer.


State-Changed-From-To: feedback->open
State-Changed-By: sbd@NetBSD.org
State-Changed-When: Thu, 24 Feb 2011 06:41:31 +0000
State-Changed-Why:
The problem is with pkg_add have an rpath entry for /usr/pkg/lib not the
dynamic linker search path.


From: Steven Drake <sbd@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Thu, 24 Feb 2011 19:35:10 +1300 (NZDT)

 On Tue, 15 Feb 2011, Joerg Sonnenberger wrote:

 >  pkg_add shouldn't have a rpath entry for /usr/pkg/lib.

 I agree but it does, pkg_install needs to have 
 "WRAPPER_TRANSFORM_CMDS+=no-rpath" added to its Makefile.

 -- 
 Steven

From: Julian Fagir <gnrp@komkon2.de>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Mon, 24 Oct 2011 18:49:34 +0200

 Hi,

 I had the same issue. Modifying the Makefile did the job.
 Why isn't this committed?

 Regards, Julian

From: Alistair Crooks <agc@pkgsrc.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org, jschauma@netmeister.org
Subject: Re: pkg/44579: archivers/xz hoses bootstrap kit on FreeBSD
Date: Mon, 24 Oct 2011 19:14:19 +0200

 On Mon, Oct 24, 2011 at 04:50:05PM +0000, Julian Fagir wrote:
 >  I had the same issue. Modifying the Makefile did the job.
 >  Why isn't this committed?

 I was waiting for confirmation.

 Thanks,
 Alistair

State-Changed-From-To: open->analyzed
State-Changed-By: agc@NetBSD.org
State-Changed-When: Thu, 06 Feb 2014 21:32:32 +0000
State-Changed-Why:
any idea if this is still the case?

i've successfully bootstrapped on freebsd 9 and 10 and HEAD on
a number of occasions


State-Changed-From-To: analyzed->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 23 Nov 2014 03:54:36 +0000
State-Changed-Why:
I think agc meant "feedback" last february.
Is this problem still current?


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.