NetBSD Problem Report #43888
From www@NetBSD.org Mon Sep 20 11:13:55 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id A317263B974
for <gnats-bugs@gnats.NetBSD.org>; Mon, 20 Sep 2010 11:13:55 +0000 (UTC)
Message-Id: <20100920111355.4E3C863B970@www.NetBSD.org>
Date: Mon, 20 Sep 2010 11:13:55 +0000 (UTC)
From: daniel.vergien@googlemail.com
Reply-To: daniel.vergien@googlemail.com
To: gnats-bugs@NetBSD.org
Subject: sysutil/eggdbus-0.6 fails to build with gcc and non gnu-ld
X-Send-Pr-Version: www-1.0
>Number: 43888
>Category: pkg
>Synopsis: sysutil/eggdbus-0.6 fails to build with gcc and non gnu-ld
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 20 11:15:00 +0000 2010
>Last-Modified: Wed Oct 27 17:35:01 +0000 2010
>Originator: Daniel Vergien
>Release: pkgsrc-current
>Organization:
>Environment:
SunOS pkgsrc 5.10 Generic_142901-15 i86pc i386 i86pc
>Description:
Eggdbus fails to build if gcc and sun ld is used because it assumes to use the ldflag "--as-needed" is ok to use if gcc is used.
>How-To-Repeat:
Build eggdbus with the gcc shipped with solaris.
>Fix:
Patch line 122 of configure.ac from
if test "x$GCC" = "xyes"; then
to
if test "$lt_cv_prog_gnu_ld" = "yes"; then
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Mon, 20 Sep 2010 20:11:40 +0000
Responsible-Changed-Why:
A Solaris issue.
From: Tim Zingelman <zingelman@gmail.com>
To: gnats-bugs@netbsd.org
Cc: solaris-pkg-people@netbsd.org
Subject: Re: pkg/43888 (sysutil/eggdbus-0.6 fails to build with gcc and non gnu-ld)
Date: Tue, 21 Sep 2010 07:57:23 -0500
On Mon, Sep 20, 2010 at 3:11 PM, <hauke@netbsd.org> wrote:
> Synopsis: sysutil/eggdbus-0.6 fails to build with gcc and non gnu-ld
>
> Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
> Responsible-Changed-By: hauke@NetBSD.org
> Responsible-Changed-When: Mon, 20 Sep 2010 20:11:40 +0000
> Responsible-Changed-Why:
> A Solaris issue.
Is there a reason that items like this (gnu specific '--as-needed'
passed to solaris ld) is not handled in pkgsrc wrappers? I also
recently ran across a couple of packages that were passing
--as-needed, and fixed it with:
.if ${OPSYS} == "SunOS"
BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
.endif
and in fact this package already has a section like above, but for
${OPSYS} == "Darwin"
I can't find it right now but I know I've run into other similar
things where it seems like a wrapper would be the nice global fix,
rather than patching every package as it is found... maybe it was
--version-script xxx vs. -W xxx ?
- Tim
From: Daniel Vergien <daniel.vergien@googlemail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/43888 (sysutil/eggdbus-0.6 fails to build with gcc and non
gnu-ld)
Date: Wed, 27 Oct 2010 19:30:33 +0200
> Is there a reason that items like this (gnu specific '--as-needed'
> passed to solaris ld) is not handled in pkgsrc wrappers? I also
> recently ran across a couple of packages that were passing
> --as-needed, and fixed it with:
> .if ${OPSYS} == "SunOS"
> BUILDLINK_TRANSFORM+= rm:-Wl,--as-needed
> .endif
This seems to also work, but it will also remove the flag if someone
is using a gnu toolchain. But one of the tow solutions should be
committed.
Daniel
>Unformatted:
(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.