Date: Mon, 21 May 2012 21:37:32 +0200 From: "coder.tuxfamily" <coder@tuxfamily.org> To: freebsd-ports@freebsd.org Subject: Re: graphics/gdal 1.9.0 does not build on CURRENT Message-ID: <4FBA997C.6010000@tuxfamily.org> In-Reply-To: <4FBA9620.3020207@gwdg.de> References: <4FBA9620.3020207@gwdg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FBA997C.6010000>