From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: i18n broken on mingw cross compile Date: Fri, 12 Sep 2008 09:45:41 +0200 Message-ID: <87r67pst7e.fsf@gnu.org> References: <87ljy17jk9.fsf@gnu.org> <87bpyueah3.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1221205586 4244 80.91.229.12 (12 Sep 2008 07:46:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 07:46:26 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Sep 12 09:47:22 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 1Ke3Mz-0003nV-KJ for guile-bugs@m.gmane.org; Fri, 12 Sep 2008 09:47:09 +0200 Original-Received: from localhost ([127.0.0.1]:52466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ke3Lz-0006oE-9p for guile-bugs@m.gmane.org; Fri, 12 Sep 2008 03:46:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ke3Lu-0006lx-9u for bug-guile@gnu.org; Fri, 12 Sep 2008 03:46:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ke3Ls-0006iO-LP for bug-guile@gnu.org; Fri, 12 Sep 2008 03:46:01 -0400 Original-Received: from [199.232.76.173] (port=37791 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ke3Ls-0006hz-Aj for bug-guile@gnu.org; Fri, 12 Sep 2008 03:46:00 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:33147) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ke3Ls-0002iG-2P for bug-guile@gnu.org; Fri, 12 Sep 2008 03:46:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ke3Lq-0001vb-CB for bug-guile@gnu.org; Fri, 12 Sep 2008 03:45:58 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ke3Lk-0006dj-QU for bug-guile@gnu.org; Fri, 12 Sep 2008 07:45:52 +0000 Original-Received: from 193.50.110.60 ([193.50.110.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2008 07:45:52 +0000 Original-Received: from ludo by 193.50.110.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2008 07:45:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 79 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.60 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Fructidor an 216 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:b4cRyNc+OTDfYOiRCOhxGSAdVDA= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:3986 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, ludo@gnu.org (Ludovic Courtès) writes: > Han-Wen Nienhuys writes: > >> 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' > > Reported here: > > http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/14574 Actually, as suggested by Eric Blake, this is probably fixed by the attached patch (committed). Can you confirm it? Thanks, Ludo'. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Include-config.h-in-discouraged.c.patch Content-Description: The patch >From 1778e9f5fba27a08af73c2757e16ba01ac1d1c23 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 12 Sep 2008 09:41:54 +0200 Subject: [PATCH] Include in `discouraged.c'. * libguile/discouraged.c: Include first so that files that rely on `config.h' macros (such as Gnulib-provided headers) work as expected. --- libguile/discouraged.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libguile/discouraged.c b/libguile/discouraged.c index 07663e0..3ffbed1 100644 --- a/libguile/discouraged.c +++ b/libguile/discouraged.c @@ -2,7 +2,7 @@ discourage something, move it here when that is feasible. */ -/* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004, 2006, 2008 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -19,7 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libguile.h" +#if HAVE_CONFIG_H +# include +#endif + +#include + #if (SCM_ENABLE_DISCOURAGED == 1) -- 1.6.0 --=-=-=--