From owner-freebsd-ports@FreeBSD.ORG Mon May 21 19:37:41 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 55ACB106566B for ; Mon, 21 May 2012 19:37:41 +0000 (UTC) (envelope-from coder@tuxfamily.org) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [IPv6:2a01:e0c:1:1599::12]) by mx1.freebsd.org (Postfix) with ESMTP id 97D8E8FC14 for ; Mon, 21 May 2012 19:37:38 +0000 (UTC) Received: from [192.168.0.2] (unknown [88.184.221.231]) by smtp3-g21.free.fr (Postfix) with ESMTP id 0D053A6267 for ; Mon, 21 May 2012 21:37:33 +0200 (CEST) Message-ID: <4FBA997C.6010000@tuxfamily.org> Date: Mon, 21 May 2012 21:37:32 +0200 From: "coder.tuxfamily" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120502 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4FBA9620.3020207@gwdg.de> In-Reply-To: <4FBA9620.3020207@gwdg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: graphics/gdal 1.9.0 does not build on CURRENT X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 May 2012 19:37:41 -0000 Hello, It's a problem know by GDAL. In the 1.9.0 with PGSQL, gdal don't build because of include in cpl_recode_iconv.cpp. You can corrige this with include "${CPPFLAGS}" in configure files. You can see the trac on OSGeo : http://trac.osgeo.org/gdal/ticket/4525 That will be fix on 1.9.1 version. Loïc. Le 21.05.2012 21:23, Rainer Hurling a écrit : > Thanks for the update of graphics/gdal to version 1.9.0. > > It builds fine on 9.0 (amd64), but fails on 10.0-CURRENT (amd64): > > [..snip..] > libtool: compile: c++ -O2 -pipe -O2 -fno-strict-aliasing -pipe -msse3 > -Wall -DOGR_ENABLED -I/usr/local/include > -I/usr/ports/graphics/gdal/work/gdal-1.9.0/port -I/usr/local/include > -I/usr/local -I/usr/local/include -I/usr/local/include -I/usr/local > -I/usr/local/include -I/usr/local -I/usr/local/include > -I/usr/local/include -I/usr/local/include -I/usr/local > -I/usr/local/include -I/usr -I/usr/include -DHAVE_LIBZ -c > cpl_recode_iconv.cpp -fPIC -DPIC -o .libs/cpl_recode_iconv.o > cpl_recode_iconv.cpp: In function 'char* CPLRecodeIconv(const char*, > const char*, const char*)': > cpl_recode_iconv.cpp:92: error: invalid conversion from 'char**' to > 'const char**' > cpl_recode_iconv.cpp:92: error: initializing argument 2 of 'size_t > libiconv(void*, const char**, size_t*, char**, size_t*)' > cpl_recode_iconv.cpp: In function 'char* CPLRecodeFromWCharIconv(const > wchar_t*, const char*, const char*)': > cpl_recode_iconv.cpp:243: error: invalid conversion from 'char**' to > 'const char**' > cpl_recode_iconv.cpp:243: error: initializing argument 2 of 'size_t > libiconv(void*, const char**, size_t*, char**, size_t*)' > gmake[1]: *** [cpl_recode_iconv.lo] Fehler 1 > gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.9.0/port' > gmake: *** [port-target] Fehler 2 > *** [do-build] Error code 1 > Stop in /usr/ports/graphics/gdal. > > > It seems there is a portability issue with ICONV_CPP_CONST like it is > described in port/cpl_recode_iconv.cpp:l76ff ? > > /* -------------------------------------------------------------------- */ > /* XXX: There is a portability issue: iconv() function could be */ > /* declared differently on different platforms. The second */ > /* argument could be declared as char** (as POSIX defines) or */ > /* as a const char**. Handle it with the ICONV_CPP_CONST macro here. */ > /* -------------------------------------------------------------------- */ > > Please let me know, if you need more details. > > Thanks again, > Rainer > > > P.S.: ports/166605 should be obsolete now? > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"