NetBSD Problem Report #29706

From  Wed Mar 16 10:27:39 2005
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id 6DB4563B117
	for <>; Wed, 16 Mar 2005 10:27:38 +0000 (UTC)
Message-Id: <>
Date: Wed, 16 Mar 2005 11:27:37 +0100 (MET)
Subject: buildlink3 incorrectly reorders link objects
X-Send-Pr-Version: 3.95

>Number:         29706
>Category:       pkg
>Synopsis:       buildlink3 incorrectly reorders link objects
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 16 10:28:00 +0000 2005
>Last-Modified:  Sun Mar 21 16:08:13 +0000 2010
>Originator:     Lex Wennmacher
>Release:        NetBSD 1.6.1
System: NetBSD 1.6.1 NetBSD 1.6.1 (MAIL) #0: Sun Jul 13 22:22:21 MEST 2003 i386
Architecture: i386
Machine: i386
Consider the following libtool command:

libtool --mode link cc -o test test.o -lfoo libbar.a

The buildlink3 infrastructure processes and reorders this to:
${WRKSRC}/.gcc/bin/gcc -o test test.o libbar.a -L${WRKSRC}.buildlink/lib \
-I${WRKSRC}.buildlink/include -lfoo

Note that the order of the libraries has changed. This can cause
unresolved externals.

Notably net/arla suffers from this as the Makefiles of this package
use both alternatives, "../../lib/foo/libfoo.a" and "-L../../lib/foo -lfoo"
to specify libraries.

Try to build net/arla without the numerous patches to work around this.

Not provided.



Responsible-Changed-From-To: pkg-manager->jlam
Responsible-Changed-When: Wed, 16 Mar 2005 11:06:57 +0000
buildlink3 problem.

Responsible-Changed-From-To: jlam->pkg-manager
Responsible-Changed-When: Sun, 21 Mar 2010 16:08:13 +0000
Back to role account, jlam lost his commit bit.

 pkgsrc as of 2005-03-16

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.