From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 25 05:30:04 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 03690FD1 for ; Sun, 25 Aug 2013 05:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D2391289D for ; Sun, 25 Aug 2013 05:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r7P5U3jb082223 for ; Sun, 25 Aug 2013 05:30:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r7P5U3lr082222; Sun, 25 Aug 2013 05:30:03 GMT (envelope-from gnats) Resent-Date: Sun, 25 Aug 2013 05:30:03 GMT Resent-Message-Id: <201308250530.r7P5U3lr082222@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shane Ambler Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 10306F95 for ; Sun, 25 Aug 2013 05:20:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D371E2857 for ; Sun, 25 Aug 2013 05:20:37 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r7P5KZlr006015 for ; Sun, 25 Aug 2013 05:20:35 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r7P5KZJj005998; Sun, 25 Aug 2013 05:20:35 GMT (envelope-from nobody) Message-Id: <201308250520.r7P5KZJj005998@oldred.freebsd.org> Date: Sun, 25 Aug 2013 05:20:35 GMT From: Shane Ambler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/181515: WITH_ICONV breaks gettext-0.18.3 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Aug 2013 05:30:04 -0000 >Number: 181515 >Category: misc >Synopsis: WITH_ICONV breaks gettext-0.18.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 25 05:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Shane Ambler >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD leader.local 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0 r250752: Sat May 18 08:03:42 CST 2013 root@leader.local:/usr/obj/usr/src/sys/dtracekern amd64 >Description: If buildworld is compiled with WITH_ICONV=yes in src.conf then gettext-0.18.3 fails to run. The port compiles ok but when the binaries are run they fail. At least msgfmt fails. The previous version - gettext-0.18.1.1_1 - didn't exhibit this issue. The same issue is present with 9.1-RELEASE-p5 and 9.2-RC3 (I don't believe 8.x has the WITH_ICONV option) I have tested this within tinderbox. I can build a releng/9.2 jail (9.2-RC3 r254795), build gettext and it can be used. Then put WITH_ICONV=yes in the jails src.conf and re-make jail, re-build gettext and it will fail. I have used two tinderbox builds to test (both amd64), one using CC=gcc CC=g++ CPP=cpp in the tinderbox build environment the other CC=clang CXX=clang++ CPP=clang-cpp and I get the same results with both. A gettext binary built in a world compiled without WITH_ICONV runs fine in a world with WITH_ICONV, it needs to be compiled within a world that has WITH_ICONV to fail. A quick test example is misc/getopt - it fails to build with msgfmt giving an invalid multibyte sequence error. Part of the logfile -- ===> Building for getopt-1.1.5 gcc -c -DLIBCGETOPT=1 -DWITHOUT_GETTEXT=0 -DLOCALEDIR=\"/usr/local/share/locale\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"getopt\" -Dprogram_version=\"1.1.5\" -O2 -pipe -I/usr/local/include -fno-strict-aliasing getopt.c -o getopt.o msgfmt -o po/ca.mo po/ca.po msgfmt -o po/cs.mo po/cs.po msgfmt -o po/da.mo po/da.po po/da.po:66:7: invalid multibyte sequence po/da.po:66:8: invalid multibyte sequence po/da.po:66:18: invalid multibyte sequence po/da.po:66:19: invalid multibyte sequence >How-To-Repeat: steps taken to re-produce this issue using tinderbox - build a test jail based on releng/9.2 create a build using the new 9.2 jail use that build to compile devel/gettext test gettext by compiling misc/getopt - works at this point add WITH_ICONV=yes to ${pd}/jails/${TESTJAILNAME}/src.conf re-make the test jail re-compile devel/gettext re-compile misc/getopt - now fails >Fix: >Release-Note: >Audit-Trail: >Unformatted: