Subject: pkg/25850: php4-iconv faild to find libiconv (xs4)
To: None <>
From: Rogier Krieger <>
List: pkgsrc-bugs
Date: 06/06/2004 22:20:40
>Number:         25850
>Category:       pkg
>Synopsis:       configure stage for php4-iconv fails to find libiconv
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 06 22:48:00 UTC 2004
>Originator:     Rogier Krieger
>Release:        NetBSD 1.6.1
System: NetBSD 1.6.1 NetBSD 1.6.1 (KARRES) #1: Sun Oct 12 05:00:57 CEST 2003 i386
Architecture: i386
Machine: i386
	When trying to build php4-iconv, the configure stage fails to find libiconv, causing
	a terminal error before starting the build stage.

	Software versions:
		pkgsrc collection up to date until 2004/06/07 15:00 CET (+0200)
		php-iconv version 4.3.6nb2
		libiconv 1.9.1nb2

	Make clean; make install results in the following output:

	checking for iconv support... yes, shared
	checking for iconv... no
	checking for libiconv... no
	configure: error: Please specify the install prefix of iconv with --with-iconv=<DIR>
	*** Error code 1

	make: stopped in /usr/pkgsrc/converters/php4-iconv
	*** Error code 1

	make: stopped in /usr/pkgsrc/converters/php4-iconv

	cd /usr/pkgsrc/converters/php4-iconv
	make clean; make install
	Apparently, the configure lines need different info. The following diff works for
	me (i.e. allowing the software to compile and function afterwards).

	Undoubtedly there may be a cleaner or more elegant solution to this,
	but this seemed to do the trick for me. I hope it is of use.

--- Makefile	Sun Jun  6 23:56:35 2004
+++ Makefile.old	Sun Jun  6 23:54:45 2004
@@ -14,7 +14,7 @@
# --with-iconv=shared,${BUILDLINK_PREFIX.iconv} assumes libiconv exists
# the PHP_ICONV in environment is to make configure find alternative
# libiconv
-CONFIGURE_ARGS+=	--with-iconv=${PREFIX}
+CONFIGURE_ARGS+=	--with-iconv
 .include "../../converters/libiconv/"