Subject: Solution for iconv problems on Linux
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 07/09/2003 16:41:11
Hi!

I'm still having problems with libiconv on my Gentoo Linux. I used
the patch below to print out the current settings from a Makefile which
uses libiconv's buildlink2.mk.

As you can see I have the include file but not any libraries and still
_NEED_ICONV is YES...

This seems to fix my problems. Could someone (jlam?) take a look
at and commit this?


@@ -18,6 +18,7 @@
 .    if ${_BLNK_LIBICONV_LIST} != "/usr/lib/libiconv.*"
 _BLNK_LIBICONV_FOUND=	YES
 .    else
+_NEED_ICONV=		YES
 _BLNK_LIBICONV_FOUND=	NO
 .    endif
 .  else


Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/




# ls -l /usr/include/iconv.h
-rw-r--r--    1 root     root         1776 Apr 16 14:06 /usr/include/iconv.h

# ls -l /usr/lib/*iconv*
ls: /usr/lib/*iconv*: No such file or directory

# bmake x
USE_GNU_ICONV=
_NEED_ICONV=YES
_BLNK_LIBICONV_FOUND=NO
_BLNK_LIBICONV_LIST=/usr/lib/libiconv.*
_INCOMPAT_ICONV=
INCOMPAT_ICONV=


Index: buildlink2.mk
===================================================================
RCS file: /cvsroot/pkgsrc/converters/libiconv/buildlink2.mk,v
retrieving revision 1.7
diff -u -r1.7 buildlink2.mk
--- buildlink2.mk	2003/06/29 19:43:58	1.7
+++ buildlink2.mk	2003/07/09 13:27:48
@@ -62,6 +62,14 @@
 BUILDLINK_TARGETS+=		iconv-buildlink
 BUILDLINK_TARGETS+=		iconv-libiconv-la

+x:
+	@echo USE_GNU_ICONV=${USE_GNU_ICONV}
+	@echo _NEED_ICONV=${_NEED_ICONV}
+	@echo _BLNK_LIBICONV_FOUND=${_BLNK_LIBICONV_FOUND}
+	@echo _BLNK_LIBICONV_LIST=${_BLNK_LIBICONV_LIST}
+	@echo _INCOMPAT_ICONV=${_INCOMPAT_ICONV}
+	@echo INCOMPAT_ICONV=${INCOMPAT_ICONV}
+
 iconv-buildlink: _BUILDLINK_USE

 iconv-libiconv-la: