Date: Thu, 20 Feb 2014 06:10:00 GMT From: =?ISO-2022-JP?B?GyRCRmJGI000MGxPOhsoQg==?= <naito.yuichiro@gmail.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/186563: databases/postgis21: error: use of undeclared identifier 'ICONV_SET_TRANSLITERATE' Message-ID: <201402200610.s1K6A0MD082164@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/186563; it has been noted by GNATS. From: =?ISO-2022-JP?B?GyRCRmJGI000MGxPOhsoQg==?= <naito.yuichiro@gmail.com> To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de Cc: Subject: Re: ports/186563: databases/postgis21: error: use of undeclared identifier 'ICONV_SET_TRANSLITERATE' Date: Thu, 20 Feb 2014 15:07:36 +0900 --089e01538a7a67ab3b04f2d0524b Content-Type: text/plain; charset=ISO-8859-1 Hello. I'm facing same problem on FreeBSD 10.0-R. For quick fix, please apply following path. --- Makefile.org 2014-02-20 14:22:22.000000000 +0900 +++ Makefile 2014-02-20 14:24:56.000000000 +0900 @@ -19,7 +19,7 @@ USE_GNOME= libxml2 USE_PGSQL= yes -USES= gmake iconv perl5 pkgconfig +USES= gmake iconv:wchar_t perl5 pkgconfig USE_LDCONFIG= yes GNU_CONFIGURE= yes USE_PERL5= build This problem occurs when all following conditions are satisfied. 1. on FreeBSD 10.0-R or later (means base system has iconv library) 2. converters/libiconv is installed 3. a ports application is using iconvctl() function. For the condition 1. and 2. , ports/Mk/Uses/iconv.mk adds 'CFLAGS+=-DLIBICONV_PLUG' . LIBICONV_PLUG undefines iconvctl() and ICONV_SET_TRANSLITERATE in /usr/local/include/iconv.h This is the reason of the compile error. But I'm not sure this path is correct fix by the following reasons. a) postgis does not need wchar_t conversion. (Making iconv:iconvctl option is better solution?) b) if postgis configure does not detect iconvctl() function, they do not use iconvctl() and the defenitions. (I should make a problem report of autoconf ?) -- Yuichiro NAITO (naito.yuichiro@gmail.com) --089e01538a7a67ab3b04f2d0524b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Hello.<br><br></div>I'm facing same problem = on FreeBSD 10.0-R.<br></div>For quick fix, please apply following path.<br>= <br>--- Makefile.org=A0=A0=A0 2014-02-20 14:22:22.000000000 +0900<br>+++ Ma= kefile=A0=A0=A0 2014-02-20 14:24:56.000000000 +0900<br> @@ -19,7 +19,7 @@<br>=A0<br>=A0USE_GNOME=3D=A0=A0=A0 libxml2<br>=A0USE_PGSQ= L=3D=A0=A0=A0 yes<br>-USES=3D=A0=A0=A0 =A0=A0=A0 gmake iconv perl5 pkgconfi= g<br>+USES=3D=A0=A0=A0 =A0=A0=A0 gmake iconv:wchar_t perl5 pkgconfig<br>=A0= USE_LDCONFIG=3D=A0=A0=A0 yes<br>=A0GNU_CONFIGURE=3D=A0=A0=A0 yes<br> =A0USE_PERL5=3D=A0=A0=A0 build<br><br>This problem occurs when all followin= g conditions are=A0 satisfied.<br><div>=A0 1. on FreeBSD 10.0-R or later (m= eans base system has iconv library)<br></div><div>=A0 2. converters/libicon= v is installed <br> </div><div>=A0 3. a ports application is using iconvctl() function.<br clea= r=3D"all"></div><div><div><div><br></div><div>For the condition 1. and 2.= =A0 , ports/Mk/Uses/<a href=3D"http://iconv.mk">iconv.mk</a> adds 'CFLA= GS+=3D-DLIBICONV_PLUG' .<br> </div><div>LIBICONV_PLUG undefines iconvctl() and ICONV_SET_TRANSLITERATE= =A0 in /usr/local/include/iconv.h<br><br></div><div>This is the reason of t= he compile error.<br></div><div><br><div>But I'm not sure this path is = correct fix by the following reasons.<br> <br></div>=A0a) postgis does not need wchar_t conversion.<br></div></div><d= iv><div>=A0=A0=A0=A0=A0 (Making iconv:iconvctl option is better solution?)<= br><br></div><div>=A0b) if postgis configure does not detect iconvctl() fun= ction, they=A0 do not use iconvctl() and the defenitions.<br> </div><div>=A0=A0=A0=A0=A0 (I should make a problem report of autoconf ?)<b= r></div><div><br></div><div><br>-- <br>Yuichiro NAITO<br>(<a href=3D"mailto= :naito.yuichiro@gmail.com">naito.yuichiro@gmail.com</a>) </div></div></div></div> --089e01538a7a67ab3b04f2d0524b--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402200610.s1K6A0MD082164>