From owner-freebsd-current@FreeBSD.ORG Mon Aug 23 11:02:00 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DC610656AD; Mon, 23 Aug 2010 11:02:00 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 012FA8FC19; Mon, 23 Aug 2010 11:01:59 +0000 (UTC) Received: by yxe42 with SMTP id 42so2346013yxe.13 for ; Mon, 23 Aug 2010 04:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=lzEUCW1ffFLeUrFzEpy/L54tN5YsOhSy/KxvidGhJn0=; b=Rx7tcF04av/Pk4ZAZX01jUytZxsnr8e1zdp8ViTGufL5wndHqh7wlQc6er34rfz3Ai dDV7WKvQJvlLIB5YYsOUDOInVV7a2Q10V2n2uJIWR4/Czca7J5TTP30RGmXa8TZLnPen 8wA7wwzH7t6dE3jfTzBw5IHO9zE6WagnjoITk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type:content-transfer-encoding; b=W3BfAG3e8QPnBg6zspTw6VKrvKnsnOt7nX7u3C7GGK61TGxa1jRJ07jvnaJNcM2ESD 0097jm5TLZxlnG4wIMKzIi7ETimcbDoOregQeX1QEldGDWAhF46i9XtvjKHRdMYJhU/7 Pb/9ZyJiyxE7f7CDDOqXA4QoQyGa+JX4yY2QY= Received: by 10.151.132.16 with SMTP id j16mr5181322ybn.21.1282561319231; Mon, 23 Aug 2010 04:01:59 -0700 (PDT) Received: from localhost (tor-exit-proxy1-readme.formlessnetworking.net [208.53.142.37]) by mx.google.com with ESMTPS id q3sm7129731ybe.14.2010.08.23.04.01.56 (version=SSLv3 cipher=RC4-MD5); Mon, 23 Aug 2010 04:01:58 -0700 (PDT) From: Anonymous To: Gabor Kovesdan References: <4C16C5B5.1070308@FreeBSD.org> <867hlzq4lb.fsf@gmail.com> <867hlzufl6.fsf@gmail.com> <4C1A7A57.3000006@FreeBSD.org> <86bpb9z77g.fsf@gmail.com> <4C2F7917.7040900@FreeBSD.org> <86pqz29sy2.fsf@gmail.com> <86mxu4sj0n.fsf@gmail.com> <4C35EF85.6010905@FreeBSD.org> <86lj8ot09d.fsf@gmail.com> Date: Mon, 23 Aug 2010 14:57:07 +0400 Message-ID: <86hbilha0s.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Current Subject: Re: [CFT] BSDL iconv in base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 11:02:00 -0000 Anonymous writes: [...] > BTW, running GNU iconv(1) with following in libmap.conf > > libiconv.so.3 libc.so.7 > > produces > > $ gnu-iconv > /libexec/ld-elf.so.1: Undefined symbol "_libiconv_version" referenced f= rom COPY relocation in LOCALBASE/bin/iconv I guess gettext hanging is due to ABI incompatibility, too. $ cat foo.po msgid "" msgstr "" "Content-Type: text/plain; charset=3DUTF-8\n" "Content-Transfer-Encoding: 8bit\n" msgid "don=E2=80=99t" msgstr "do not" $ msgmerge foo.po /dev/null # GNU iconv . done. msgid "" msgstr "" "Content-Type: text/plain; charset=3DUTF-8\n" "Content-Transfer-Encoding: 8bit\n" #~ msgid "don=E2=80=99t" #~ msgstr "do not" $ msgmerge foo.po /dev/null # BSD iconv . done. msgid "" load: 0.10 cmd: msgmerge 65132 [runnable] 2.74r 2.72u 0.00s 23% 2844k ^C (gdb) bt #0 _citrus_iconv_none_iconv_convert (ci=3D0x80f00f190, in=3D0x7fffffff0b= 40, inbytes=3D0x7fffffff0b40, out=3D0x7fffffff0b48, outbytes=3D0x7fffffff0b= 50, flags=3D0, invalids=3D0x7fffffff0aa0) at /usr/src/lib/libiconv_modules/iconv_non= e/citrus_iconv_none.c:119 len =3D 1 e2big =3D 0 #1 0x00000008064b9142 in _citrus_iconv_convert (cv=3D0x80f00f190, in=3D0= x7fffffff0b38, inbytes=3D0x7fffffff0b40, out=3D0x7fffffff0b48, outbytes=3D0= x7fffffff0b50, flags=3D0, nresults=3D0x7fffffff0aa0) at citrus_iconv.h:60 No locals. #2 0x00000008064b90b2 in libiconv (handle=3D0x80f00f190, in=3D0x7fffffff= 0b38, szin=3D0x7fffffff0b40, out=3D0x7fffffff0b48, szout=3D0x7fffffff0b50) at /usr/src/lib/libc/iconv/iconv.c:147 ret =3D 0 err =3D 0 #3 0x00000008036db20a in wrap (mp=3D0x80f020400, stream=3D0x80f0123c0, l= ine_prefix=3D0x0, extra_indent=3D0, css_class=3D0x80370a2f0 "msgstr", name=3D0x80370a3a9 "msgstr", value=3D0x80f01f0b0 "Content-Type: text/= plain; charset=3DUTF-8\nContent-Transfer-Encoding: 8bit\n", do_wrap=3Dundec= ided, page_width=3D79, charset=3D0x7fffffff0d80 "UTF-8") at write-po.c:724 #4 0x00000008036dcbdd in message_print (mp=3D0x80f020400, stream=3D0x80f= 0123c0, charset=3D0x7fffffff0d80 "UTF-8", page_width=3D79, blank_line=3Dfal= se, debug=3Dfalse) at write-po.c:1283 #5 0x00000008036dd736 in msgdomain_list_print_po (mdlp=3D0x80f0071c0, st= ream=3D0x80f0123c0, page_width=3D79, debug=3Dfalse) at write-po.c:1511 #6 0x00000008036d8859 in msgdomain_list_print (mdlp=3D0x80f0071c0, filen= ame=3D0x80370a0a6 "standard output", output_syntax=3D0x40d7b0, force=3Dfals= e, debug=3Dfalse) at write-catalog.c:246 #7 0x0000000000403604 in main (argc=3D3, argv=3D0x7fffffff0ff0) at msgme= rge.c:463 It's a bit tweaked version, though. %% Index: devel/gettext/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /a/.cvsup/ports/devel/gettext/Makefile,v retrieving revision 1.87 diff -u -p -r1.87 Makefile --- devel/gettext/Makefile 3 Jun 2010 09:46:38 -0000 1.87 +++ devel/gettext/Makefile 23 Aug 2010 10:04:26 -0000 @@ -28,7 +28,7 @@ CONFIGURE_ENV=3D ACLOCAL=3D"${TRUE}" \ AUTOHEADER=3D"${TRUE}" \ MAKEINFO=3D"makeinfo --no-split" \ CPPFLAGS=3D"-I${LOCALBASE}/include" \ - LDFLAGS=3D"-L${LOCALBASE}/lib" \ + LDFLAGS=3D"-L${LOCALBASE}/lib -liconv" \ EMACS=3D"no" CONFIGURE_ARGS=3D --disable-csharp --disable-threads --disable-openmp \ --with-included-gettext --with-included-glib \ @@ -65,6 +65,8 @@ pre-extract: .endif =20 post-patch: + @${REINPLACE_CMD} 's/-DENABLE_RELOCATABLE=3D1//' \ + ${WRKSRC}/gettext-runtime/intl/Makefile.in @${FIND} ${WRKSRC} -name configure -print | ${XARGS} \ ${REINPLACE_CMD} -e 's|mkdir gmkdir|mkdir|' .if defined (NOPORTDOCS) %%