NetBSD Problem Report #29706

From wennmach@wennmacher.org  Wed Mar 16 10:27:39 2005
Return-Path: <wennmach@wennmacher.org>
Received: from mail.wennmacher.org (mail.wennmacher.org [213.146.113.245])
	by narn.netbsd.org (Postfix) with ESMTP id 6DB4563B117
	for <gnats-bugs@gnats.netbsd.org>; Wed, 16 Mar 2005 10:27:38 +0000 (UTC)
Message-Id: <200503161027.j2GARbp17467@mail.wennmacher.org>
Date: Wed, 16 Mar 2005 11:27:37 +0100 (MET)
From: lex-pr-2005-03-16@wennmacher.org
Reply-To: lex-pr-2005-03-16@wennmacher.org
To: gnats-bugs@netbsd.org
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
>Organization:
>Environment:
System: NetBSD mail.wennmacher.org 1.6.1 NetBSD 1.6.1 (MAIL) #0: Sun Jul 13 22:22:21 MEST 2003 wennmach@mail.wennmacher.org:/usr/src/sys/arch/i386/compile/MAIL i386
Architecture: i386
Machine: i386
>Description:
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.

>How-To-Repeat:
Try to build net/arla without the numerous patches to work around this.

>Fix:
Not provided.

>Release-Note:

>Audit-Trail:

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


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


>Unformatted:
 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: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.