Subject: Re: libiconv not working
To: None <port-i386@NetBSD.ORG>
From: MLH <MLH@goathill.org>
List: port-i386
Date: 08/09/2003 22:20:53
On 9 Aug 2003 14:45:00 -0500, Steven M. Bellovin wrote:
> In message <20030809084107.GE4661@veracruz.starfleet.univ-paris7.fr>, Stoned El
> ipot writes:
>>On Sat, Aug 09, 2003 at 03:55:51AM -0400, Steve Bellovin wrote:
>>> I'm having trouble trying to build a number of different packages that 
>>> depend on libiconv.  Here's one example:
>>[SNIP]
>>> I've seen pkg/22262, but the proposed fix seems to be package-specific. 
>>> I'm seeing this in a number of different places.  I'm running -current 
>>> of 4 August with a newly-cvs'd pkgsrc.
>>
>>Aren't you using packages compiled a little while back when
>>/usr/include/iconv.h did not exist? If so you may have a package saying
>>that it need -liconv (as recoded in a says gtk-config like script) but now
>>your system does have /usr/include/iconv.h (but not libiconv.*) so
>>converters/libiconv/buildlink2.mk only links /usr/include/iconv.h in the
>>buildlink area, it does not link the libiconv packages includes
>>and libs, hence the linking is failing.
>>
>>Try identifying the package concerned and rebuild it.
> 
> Any hints on how to do that?  I've pkg_delete'd everything in sight 
> that appears to be a prerequisite.

I filed pkg/22298 on this back on 29 Jul :

(Don't hardcode '/usr/pkg' - only for demonstrational purposes)

Index: buildlink2.mk
===================================================================
RCS file: /cvsroot/pkgsrc/converters/libiconv/buildlink2.mk,v
retrieving revision 1.8
diff -b -u -r1.8 buildlink2.mk
--- buildlink2.mk       2003/07/13 13:32:30     1.8
+++ buildlink2.mk       2003/07/29 21:55:00
@@ -41,7 +41,7 @@
 BUILDLINK_LIBICONV_LDADD=      -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib
 BUILDLINK_LIBICONV_LDADD+=     ${_BLNK_ICONV_LDFLAGS}
 .else
-BUILDLINK_PREFIX.iconv=                /usr
+BUILDLINK_PREFIX.iconv=                /usr/pkg
 .  if ${_BLNK_LIBICONV_FOUND} == "YES"
 _BLNK_ICONV_LDFLAGS=           -liconv
 .  else