From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: guile+iconv fails on windows Date: Sun, 10 Nov 2013 10:16:51 +0100 Message-ID: References: <837gcg534b.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0158b154675d2f04eacf131e X-Trace: ger.gmane.org 1384075019 18678 80.91.229.3 (10 Nov 2013 09:16:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2013 09:16:59 +0000 (UTC) Cc: "guile-user@gnu.org" To: Eli Zaretskii Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 10 10:17:04 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VfR8h-0005Ka-KJ for guile-user@m.gmane.org; Sun, 10 Nov 2013 10:17:03 +0100 Original-Received: from localhost ([::1]:59594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfR8h-00006M-7B for guile-user@m.gmane.org; Sun, 10 Nov 2013 04:17:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfR8X-00005J-AR for guile-user@gnu.org; Sun, 10 Nov 2013 04:16:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfR8W-0001bj-AQ for guile-user@gnu.org; Sun, 10 Nov 2013 04:16:53 -0500 Original-Received: from mail-vb0-x232.google.com ([2607:f8b0:400c:c02::232]:44209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfR8W-0001bQ-6E; Sun, 10 Nov 2013 04:16:52 -0500 Original-Received: by mail-vb0-f50.google.com with SMTP id x16so2572903vbf.9 for ; Sun, 10 Nov 2013 01:16:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=J2l4uIGuml1CWuPgRoH+z7GpCeYlOZIOjIq7k5Zm31I=; b=KZWwnnzKZKjfQcz6H+t3GCJK9ja6g34PgJpaMiPzKOw9GNeckyK8CSUyfSDv2A93kT MmRVgtihPaD9khakge7MMlxNKZoAaWlMjDbE1MaVauUBNC1kfZu9eztlY9Asp7acfIQ5 veoebgaWjwN9mNBj5yo8IVDlWJTf2X5IxQF8rBVimkb3b+B9E8WokMO0DBBfkb3PMIxN upw+mP2uVphAk2Rqrf7glHdnEwbjNp2nJXr5HA4doH3JeZsU4Yg5dt85sc559V2YlyKg kQu4pCFA1PHSShV1t6RRGgbsRe3j8D8jxiPX8MQiLkYO0PJK27Za1nlF8BG4sH9hw4fi iAbw== X-Received: by 10.220.173.134 with SMTP id p6mr26423vcz.36.1384075011511; Sun, 10 Nov 2013 01:16:51 -0800 (PST) Original-Received: by 10.220.113.142 with HTTP; Sun, 10 Nov 2013 01:16:51 -0800 (PST) In-Reply-To: <837gcg534b.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c02::232 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10879 Archived-At: --089e0158b154675d2f04eacf131e Content-Type: text/plain; charset=ISO-8859-1 Hi! > > ;;; compiling .\extra\common.scm > > ;;; compiling c:/guile2/share/guile/2.0\system\vm\frame.scm > > Backtrace: > > In unknown file: > > ?: 1 ;;; compiling system\vm\frame.scm > > Exception thrown while printing backtrace: > > ERROR: In procedure open_iconv_descriptors: invalid or unknown character > > encoding "utf8" > > > > Do you know what could be the reason and solution? > > Should I rebuild libiconv and then relink guile against it? > > Would that work? Or is there any quick workaround? > > Assuming you link against libiconv as DLL, then if you run the > dependency walker on your libiconv DLL, does it show that it depends > on libgcc DLL? If so, try a version of libiconv that doesn't depend > on libgcc, or build libiconv yourself that way. > The dependency walker shows that libiconv depends only on dlls supplied by Windows (kernel32.dll, msvcrt.dll and ntdll.dll). The dependency on libgcc appears only in libguile, but it seems to have nothing to do with iconv. Rebuilding libiconv didn't change anything (I believe that since those are dlls and libguile plainly depends on libiconv-2.dll, there should be no need to rebuild guile afterwards?) --089e0158b154675d2f04eacf131e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi!
=A0
> ;;; compiling .\extra\common.scm
> ;;; compiling c:/guile2/share/guile/2.0\system\vm\frame.scm
> Backtrace:
> In unknown file:
> =A0 =A0?: 1 ;;; compiling system\vm\frame.scm
> Exception thrown while printing backtrace:
> ERROR: In procedure open_iconv_descriptors: invalid or unknown charact= er
> encoding "utf8"
>
> Do you know what could be the reason and solution?
> Should I rebuild libiconv and then relink guile against it?
> Would that work? Or is there any quick workaround?

Assuming you link against libiconv as DLL, then if you run the
dependency walker on your libiconv DLL, does it show that it depends
on libgcc DLL? =A0If so, try a version of libiconv that doesn't depend<= br> on libgcc, or build libiconv yourself that way.

The dependency walk= er shows that libiconv depends only on dlls supplied
by Windows (kernel32.dll, msvcrt.dll and ntdll.dll). The dependen= cy on libgcc appears only in libguile, but it seems to have nothing to do w= ith iconv. Rebuilding libiconv didn't change anything (I believe that s= ince those are dlls and libguile plainly depends on libiconv-2.dll, there s= hould be no need to rebuild guile afterwards?)

--089e0158b154675d2f04eacf131e--