NetBSD Problem Report #34108

From  Sat Jul 29 04:13:58 2006
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 33AFE63B850
	for <>; Sat, 29 Jul 2006 04:13:58 +0000 (UTC)
Message-Id: <>
Date: Sat, 29 Jul 2006 04:13:58 +0000 (UTC)
Subject: Wrong rpath order in BUILDLINK_LDFLAGS
X-Send-Pr-Version: 3.95

>Number:         34108
>Category:       pkg
>Synopsis:       Wrong rpath order in BUILDLINK_LDFLAGS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 29 04:15:00 +0000 2006
>Last-Modified:  Sun Jun 30 11:58:52 +0000 2013
>Originator:     Min Sik Kim
>Release:        pkgsrc-current
	Linux 2.6.12-10-amd64-xeon
After adding LIBABISUFFIX for amd64 in mk/platform/, packages are
linked against native libraries instead of pkgsrc ones.

% cd textproc/libxml2
% bmake show-var VARNAME=PREFIX
% bmake show-var PKG_PHASE=build VARNAME=BUILDLINK_LDFLAGS -L/usr/lib64 -Wl,-R/usr/lib64 -Wl,-R/home/msk/pkg/lib
% bmake install
% ldd /home/msk/pkg/bin/xmlcatalog => /usr/lib64/ (0x00002aaaaabc3000) => /lib/ (0x00002aaaaadfe000) => /usr/lib64/ (0x00002aaaaaf02000) => /lib/ (0x00002aaaab018000) => /lib/ (0x00002aaaab19e000)
       /lib64/ (0x00002aaaaaaab000)

Because of /usr/lib64 in BUILDLINK_LDFLAGS, xmlcatalog (installeld by
libxml2) uses /usr/lib64/ instead of
${PREFIX}/, and /usr/lib64/ instead of

Build a package depending on a pkgsrc library of which an older,
incompatible version is in /usr/lib64.

Change the order in BUILDLINK_LDFLAGS so that ${PREFIX}/lib always
preceds /usr/lib64.



State-Changed-From-To: open->feedback
State-Changed-When: Sun, 30 Jun 2013 11:58:52 +0000
With mk/buildlink3/ rev1.221, system default paths will be
never added to RPATH, and should be fixed.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.