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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 16 10:28:00 +0000 2005
>Closed-Date: Wed Nov 21 09:15:33 +0000 2018
>Last-Modified: Wed Nov 21 09:20:01 +0000 2018
>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.
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 21 Nov 2018 09:15:33 +0000
State-Changed-Why:
Old wrapper problem that supposedly does nto affect new wrappers.
From: maya@netbsd.org
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/29706 (buildlink3 incorrectly reorders link objects)
Date: Wed, 21 Nov 2018 09:16:36 +0000
Only saying supposedly because I asked joerg and he said new wrappers
don't do this, but I forgot to save logs so I am going by memory.
>Unformatted:
pkgsrc as of 2005-03-16
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.