From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.bugs Subject: Re: i18n broken on mingw cross compile Date: Tue, 09 Sep 2008 23:38:28 -0300 Message-ID: References: <87ljy17jk9.fsf@gnu.org> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1221014421 20067 80.91.229.12 (10 Sep 2008 02:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 02:40:21 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Sep 10 04:41:16 2008 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdFdr-0000jr-Tp for guile-bugs@m.gmane.org; Wed, 10 Sep 2008 04:41:16 +0200 Original-Received: from localhost ([127.0.0.1]:39672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdFcr-00071S-Cx for guile-bugs@m.gmane.org; Tue, 09 Sep 2008 22:40:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdFcm-00071E-GK for bug-guile@gnu.org; Tue, 09 Sep 2008 22:40:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdFck-00070u-Su for bug-guile@gnu.org; Tue, 09 Sep 2008 22:40:08 -0400 Original-Received: from [199.232.76.173] (port=60583 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdFck-00070r-Jx for bug-guile@gnu.org; Tue, 09 Sep 2008 22:40:06 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:57361 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdFck-0003bd-1j for bug-guile@gnu.org; Tue, 09 Sep 2008 22:40:06 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KdFcg-0003Wd-5p for bug-guile@gnu.org; Wed, 10 Sep 2008 02:40:02 +0000 Original-Received: from 201.80.3.52 ([201.80.3.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2008 02:40:02 +0000 Original-Received: from hanwen by 201.80.3.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Sep 2008 02:40:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 35 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 201.80.3.52 User-Agent: Thunderbird 2.0.0.16 (X11/20080723) In-Reply-To: <87ljy17jk9.fsf@gnu.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3984 Archived-At: Ludovic Courtès escreveu: > Hi, > > Han-Wen Nienhuys writes: > >> i686-mingw32-gcc -mms-bitfields -DHAVE_CONFIG_H -I/home/lilydev/vc/gub/target/mingw/src/guile-1.9.git -I.. -I/home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/lib -I../lib -Wall -Wmissing-prototypes -g -O2 -MT libguile_i18n_v_0_la-i18n.lo -MD -MP -MF .deps/libguile_i18n_v_0_la-i18n.Tpo -c /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/i18n.c -DDLL_EXPORT -DPIC -o .libs/libguile_i18n_v_0_la-i18n.o >> In file included from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/i18n.c:296: >> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h: In function 'get_current_locale_settings': >> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: 'LC_MESSAGES' undeclared (first use in this function) >> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: (Each undeclared identifier is reported only once >> /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/locale-categories.h:24: error: for each function it appears in.) > > Can you try out the attached patch? Seems to work. Next problem: In file included from /home/lilydev/vc/gub/target/mingw/root/usr/include/sys/time.h:3, from ../libguile/scmconfig.h:25, from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/__scm.h:52, from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile.h:30, from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/discouraged.c:22: ../lib/time.h:76: error: expected ';', ',' or ')' before '__timer' ../lib/time.h:78: error: expected ';', ',' or ')' before '__timer' This is 7ddb9baf80744f0ea4810c35b465d96f4833875, with your patch on top. Curiously, the same location in uncompiled source (my guile devel directory) has an #if 0 rather than #if 1 around the code. -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen