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: Sat, 13 Sep 2008 12:13:37 -0300 Message-ID: References: <87ljy17jk9.fsf@gnu.org> <87bpyueah3.fsf@gnu.org> <87r67pst7e.fsf@gnu.org> <87abeccfqb.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 1221318939 22977 80.91.229.12 (13 Sep 2008 15:15:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2008 15:15:39 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Sep 13 17:16:35 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 1KeWrQ-0003t9-Ec for guile-bugs@m.gmane.org; Sat, 13 Sep 2008 17:16:32 +0200 Original-Received: from localhost ([127.0.0.1]:33138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeWqP-0004af-Mb for guile-bugs@m.gmane.org; Sat, 13 Sep 2008 11:15:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KeWqL-0004Yg-3Y for bug-guile@gnu.org; Sat, 13 Sep 2008 11:15:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KeWqJ-0004WU-Lw for bug-guile@gnu.org; Sat, 13 Sep 2008 11:15:24 -0400 Original-Received: from [199.232.76.173] (port=51538 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeWqJ-0004WM-HL for bug-guile@gnu.org; Sat, 13 Sep 2008 11:15:23 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:41560 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 1KeWqJ-0005VO-3Y for bug-guile@gnu.org; Sat, 13 Sep 2008 11:15:23 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KeWqD-0003yl-13 for bug-guile@gnu.org; Sat, 13 Sep 2008 15:15:17 +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 ; Sat, 13 Sep 2008 15:15:17 +0000 Original-Received: from hanwen by 201.80.3.52 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Sep 2008 15:15:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 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: <87abeccfqb.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/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:3990 Archived-At: Ludovic Courtès escreveu: > Hi, > > Han-Wen Nienhuys writes: > >> adding the include to srfi-4.c, I still get >> >> i686-mingw32-gcc -mms-bitfields -DHAVE_CONFIG_H -DSCM_IMPORT -I. -I.. -I/home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi -I.. -I/home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi/.. -I/home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/lib -I../lib -Wall -Wmissing-prototypes -g -O2 -MT srfi-1.lo -MD -MP -MF .deps/srfi-1.Tpo -c /home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi/srfi-1.c -DDLL_EXPORT -DPIC -o .libs/srfi-1.o > > Hmm, that's `srfi-1.c', not `srfi-4.c'. > >> 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-localhost--home-lilydev-vc-guile-master/srfi/../libguile/__scm.h:52, >> from /home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi/../libguile.h:30, >> from /home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi/../srfi/srfi-4.h:25, >> from /home/lilydev/vc/gub/target/mingw/src/guile-localhost--home-lilydev-vc-guile-master/srfi/srfi-4.c:25: >> ../lib/time.h:76: error: expected ';', ',' or ')' before '__timer' >> ../lib/time.h:78: error: expected ';', ',' or ')' before '__timer' >> make[3]: ** [srfi-4.lo] Erro 1 > > OK, I reviewed all C files and noticed that most of them did not include > , even those that clearly use `HAVE_' macros, or `inline', > etc., which is clearly likely to cause problems. The problems are even > more likely to show up since we use Gnulib headers that most of the time > rely on macros. Thus, I committed the attached patch to > `master' and a similar one in 1.8. As a review comment: is there a specific reason to do HAVE_CONFIG_H ? In what case do we not HAVE_CONFIG_H ? -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen