Subject: pkg/29717: gnuplot/gd can't find libiconv on Solaris
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 03/16/2005 21:23:00
>Number:         29717
>Category:       pkg
>Synopsis:       gnuplot/gd can't find libiconv on Solaris
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 16 21:23:00 +0000 2005
>Originator:     Simon Kuhn
>Release:        pkgsrc-current
Case Western Reserve University
SunOS reducto 5.9 Generic_117171-13 sun4u sparc SUNW,Sun-Fire-V240 Solaris

gd will not build without placing libiconv buildlink references in its Makefile and file.

Building fails with a "Can't find -liconv" sort of message, even though /usr/local/lib/ exists and is working.

If the reference is not placed in gd's file as well, subsequent packages such as gnuplot will also fail in the same manner even though they do not depend upon libiconv themselves. gd seems to be at the center of this particular string of libiconv problems (although fontconfig may also be involved; no other low-level graphic packages seem to need libiconv that I have found yet).

Build gd or gnuplot from pkgsrc-current on Solaris 9.

.include "../../converters/libiconv/"

to gd/ and gd/Makefile. Then perform the builds; pkgsrc is now able to link libiconv correctly.

I think that this is indicative of larger problems with pkgsrc on Solaris. libiconv lines are required to build a fair number of packages; part of the problem seems to be that linking in the form of /usr/local/lib/ rather than -liconv does not work on my system (should it?)