From owner-freebsd-ports@FreeBSD.ORG Mon May 21 19:23:23 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 28BE1106566C; Mon, 21 May 2012 19:23:23 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) by mx1.freebsd.org (Postfix) with ESMTP id B1AAE8FC22; Mon, 21 May 2012 19:23:22 +0000 (UTC) Received: from p508c7b2b.dip.t-dialin.net ([80.140.123.43] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SWYCK-0003tm-Gx; Mon, 21 May 2012 21:23:16 +0200 Message-ID: <4FBA9620.3020207@gwdg.de> Date: Mon, 21 May 2012 21:23:12 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: sunpoet@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-ports@freebsd.org Subject: 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:23:23 -0000 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?