Subject: pkg/29717: gnuplot/gd can't find libiconv on Solaris
To: None <email@example.com, firstname.lastname@example.org,>
From: None <email@example.com>
Date: 03/16/2005 21:23:00
>Synopsis: gnuplot/gd can't find libiconv on Solaris
>Arrival-Date: Wed Mar 16 21:23:00 +0000 2005
>Originator: Simon Kuhn
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 buildlink3.mk file.
Building fails with a "Can't find -liconv" sort of message, even though /usr/local/lib/libiconv.so exists and is working.
If the reference is not placed in gd's buildlink3.mk 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.
to gd/buildlink3.mk 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/libiconv.so rather than -liconv does not work on my system (should it?)