NetBSD Problem Report #46778

From www@NetBSD.org  Tue Aug  7 10:47:36 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 8E20763B882
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  7 Aug 2012 10:47:36 +0000 (UTC)
Message-Id: <20120807104735.8F67663B85F@www.NetBSD.org>
Date: Tue,  7 Aug 2012 10:47:35 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: graphics/p5-GD needs libiconv
X-Send-Pr-Version: www-1.0

>Number:         46778
>Category:       pkg
>Synopsis:       graphics/p5-GD needs libiconv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 07 10:50:00 +0000 2012
>Last-Modified:  Wed Aug 08 12:15:02 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Don't know why this wasn't a problem before:

LD_RUN_PATH="/usr/pkgsrc/20120411/lib" gcc  -Wl,-R/usr/pkgsrc/20120411/lib -G -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkgsrc/20120411/lib -L/usr/local/lib -fstack-protector GD.o -L/usr/pkgsrc/20120411/lib -Wl,-R/usr/pkgsrc/20120411/lib -L/usr/lib -Wl,-R/usr/lib -o blib/arch/auto/GD/GD.so     -L/usr/pkgsrc/20120411/lib -Wl,-R/usr/pkgsrc/20120411/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkgsrc/20120411/lib -L/usr/pkgsrc/20120411/lib -L/usr/pkgsrc/20120411/lib -L/usr/pkgsrc/20120411/lib -ljpeg -lfontconfig -lfreetype -lpng15 -lz -lm -lpthread -lrt -lgd -liconv     
ld: fatal: library -liconv: not found
ld: fatal: File processing errors. No output written to blib/arch/auto/GD/GD.so
collect2: error: ld returned 1 exit status
*** Error code 1

>How-To-Repeat:

>Fix:
--- Makefile    2012/08/07 10:45:31     1.2
+++ Makefile    2012/08/07 10:46:07
@@ -31,4 +31,5 @@

 .include "../../graphics/gd/buildlink3.mk"
 .include "../../lang/perl5/module.mk"
+.include "../../converters/libiconv/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


or is it builtin.mk?

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 07 Aug 2012 11:40:06 +0000
Responsible-Changed-Why:
PR for Solaris.


From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46778: graphics/p5-GD needs libiconv
Date: Tue, 07 Aug 2012 20:47:40 +0900

 On Tue, 07 Aug 2012 19:50:01 +0900, <joern.clausen@uni-bielefeld.de> wrote:

 > ld: fatal: library -liconv: not found
 > ld: fatal: File processing errors. No output written to blib/arch/auto/GD/GD.so
 > collect2: error: ld returned 1 exit status
 > *** Error code 1

 Is it possible to remove "workaround for solarsi systems?" from Makefile.PL?

 -- 
 OBATA Akio / obache@NetBSD.org

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@NetBSD.org>, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/46778: graphics/p5-GD needs libiconv
Date: Wed, 08 Aug 2012 14:12:52 +0200

 >   Is it possible to remove "workaround for solarsi systems?" from Makefile.PL?

 Good question. I don't see any trace of iconv usage, neither in 
 graphics/p5-GD nor in graphics/gd or any of the dependencies. After 
 removing this "workaround", the package still compiles - and fails with 
 and without iconv in the same way on "bmake test"...

 So instead of adding a dependency, I suggest this patch:

 --- Makefile.PL 2012/08/08 11:57:50     1.1
 +++ Makefile.PL 2012/08/08 11:58:00
 @@ -134,11 +134,6 @@
     @LIBS    = qw(-llibgd.olb -llibpng.olb -llibz.olb);
   }

 -# workaround for solaris systems?
 -elsif ($^O =~ /solaris/i) {
 -    push @LIBS,'-liconv';
 -}
 -
   ###################################################################
   # path to libgd, skip prompt if passed in from above
   ###################################################################

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

>Unformatted:

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.