From owner-freebsd-current@FreeBSD.ORG Tue Aug 3 11:20:27 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 20BD21065678; Tue, 3 Aug 2010 11:20:27 +0000 (UTC) (envelope-from swell.k@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 815B88FC16; Tue, 3 Aug 2010 11:20:26 +0000 (UTC) Received: by wyj26 with SMTP id 26so5206804wyj.13 for ; Tue, 03 Aug 2010 04:20:25 -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:in-reply-to:message-id:user-agent:mime-version:content-type; bh=wFvRbk6xNJHnOwsvGrCxrKxViyVEEK2/lC/GqHIo1wA=; b=m/pKD8nMr2WrWLsN8QNHgAWhUzUCDPNXxDEVSiVHCYjNHJXSFBE4xyNuWfXPfLB6MP OsOibTKNhC6tKCnl/nHz72DzZ1N5HE1423L96U3thecM35oNpx7DJ59Bc26j7d/l98EM DGf8SZXsXIyG9025dMZjAcXKUG/OSKhxsTMAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=HD2Rl6iOp1AAWcacT13wlzuSNSx8JuvVe5eKztuPRU4Ihl89U69Nf4Kw+6x31BPQzW eVEnbbtrPKENco9fMPvDPQrSLZ25I7jFA9s4rLIZJUQIjcPbSWzYQZjLo6wBHri41LCo b0kOSzLMPcSc1ase5QsTmK3+k0zNCPHmi/hPQ= Received: by 10.227.143.12 with SMTP id s12mr6134295wbu.125.1280834425544; Tue, 03 Aug 2010 04:20:25 -0700 (PDT) Received: from localhost (tor-exit01.piratpartiet.se [194.14.56.70]) by mx.google.com with ESMTPS id e31sm5963529wbe.17.2010.08.03.04.20.21 (version=SSLv3 cipher=RC4-MD5); Tue, 03 Aug 2010 04:20:23 -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> Date: Tue, 03 Aug 2010 15:15:58 +0400 In-Reply-To: <4C35EF85.6010905@FreeBSD.org> (Gabor Kovesdan's message of "Thu, 08 Jul 2010 17:32:21 +0200") Message-ID: <86lj8ot09d.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=us-ascii 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: Tue, 03 Aug 2010 11:20:27 -0000 Gabor Kovesdan writes: >> It works if I specify both `-t' and `-f'. And crashes when none >> specified or only one of them. >> > Thanks, I've fixed this and the mtree problem, as well. I hope this > one now works properly on amd64: > http://kovesdan.org/patches/iconv-20100708.diff $ bsd-iconv -l iconv: -l is not allowed with other flags. Usage: iconv [-cs] -f -t [file ...] iconv -f [-cs] [-t ] [file ...] iconv -t [-cs] [-f ] [file ...] iconv -l $ gnu-iconv -l ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII UTF-8 ... $ echo blah | bsd-iconv Usage: iconv [-cs] -f -t [file ...] iconv -f [-cs] [-t ] [file ...] iconv -t [-cs] [-f ] [file ...] iconv -l $ echo blah | gnu-iconv blah 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 from COPY relocation in LOCALBASE/bin/iconv And the case can be reduced to $ cc a.c /usr/bin/ld: /var/tmp//ccJOE7kn.o: in function main:a.c(.text+0x6): error: undefined reference to '_libiconv_version' collect2: ld returned 1 exit status $ cat a.c #include #include int main(void) { printf("iconv version = %d\n", _libiconv_version); return(0); }