From owner-freebsd-gnome@FreeBSD.ORG Tue Mar 12 17:33:05 2013 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4A9AFC19; Tue, 12 Mar 2013 17:33:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 244B33E8; Tue, 12 Mar 2013 17:33:04 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 6940F33C3E; Tue, 12 Mar 2013 13:32:58 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 4E53D3983C; Tue, 12 Mar 2013 13:32:56 -0400 (EDT) From: Lowell Gilbert To: Walter Hurry Subject: iconv issue (Re: Pan-0.139 won't compile) References: <44zjy8lorr.fsf@lowell-desk.lan> Date: Tue, 12 Mar 2013 13:32:56 -0400 In-Reply-To: (Walter Hurry's message of "Tue, 12 Mar 2013 14:06:35 +0000 (UTC)") Message-ID: <44vc8wle0n.fsf_-_@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-questions@freebsd.org, freebsd-gnome@freebsd.org X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2013 17:33:05 -0000 Walter Hurry writes: > On Tue, 12 Mar 2013 09:40:40 -0400, Lowell Gilbert wrote: > >> Walter Hurry writes: >> >>> Trying to upgrade /usr/ports/news/pan I get this: >>> ___________________________________________________________________ >>> mime-utils.cc: In function 'char* pan::__g_mime_iconv_strndup(void*, >>> const char*, size_t, const char*)': >>> mime-utils.cc:80: error: invalid conversion from 'char**' to 'const >>> char**' >>> mime-utils.cc:80: error: initializing argument 2 of 'size_t libiconv >>> (void*, const char**, size_t*, char**, size_t*)' >>> gmake[3]: *** [mime-utils.o] Error 1 gmake[3]: Leaving directory >>> `/usr/ports/news/pan/work/pan-0.139/pan/ usenet-utils' >>> gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory >>> `/usr/ports/news/pan/work/pan-0.139/pan' gmake[1]: *** [all-recursive] >>> Error 1 gmake[1]: Leaving directory >>> `/usr/ports/news/pan/work/pan-0.139' gmake: *** [all] Error 2 *** >>> [do-build] Error code 1 >>> >>> Stop in /usr/ports/news/pan. >>> *** [build] Error code 1 >>> ___________________________________________________________________ >>> >>> What should I do next? >> >> Hmm. Interesting; looks like a compiler issue (the error strikes me as >> likely bogus). What compiler were you using? > > Well, this is 9.1-RELEASE on amd64, and I'm using the default, which I > believe is the cc1plus in gcc-4.2.1 On closer look, the error isn't bogus, but looks like it results from an unnecessary pair of type casts. There's nothing in the autotools setups about iconv, nor are there any patches in the port, so I'm not seeing an obvious candidate for why this broke. My guess would be that this works if built with the base iconv, because the test builds must have worked. That is not guaranteed, because the port changes were both updating the version of pan and updating glib/gtk updates as part of a wider set of updates. I'll put in a PR, because I won't have a chance to look more at this today. Be well.