From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.devel Subject: Re: cross building 1.9.14 for mingw Date: Mon, 31 Jan 2011 21:16:24 +0100 Organization: www.AvatarAcademy.nl Message-ID: <1296504984.17905.7.camel@vuurvlieg> References: <1296330082.8111.371.camel@vuurvlieg> <874o8r8kdn.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296505845 19881 80.91.229.12 (31 Jan 2011 20:30:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 20:30:45 +0000 (UTC) Cc: guile-devel@gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 31 21:30:41 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pk0OQ-0004Nh-41 for guile-devel@m.gmane.org; Mon, 31 Jan 2011 21:30:34 +0100 Original-Received: from localhost ([127.0.0.1]:48332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0B3-0000wZ-8T for guile-devel@m.gmane.org; Mon, 31 Jan 2011 15:16:45 -0500 Original-Received: from [140.186.70.92] (port=36932 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0Ao-0000ve-O1 for guile-devel@gnu.org; Mon, 31 Jan 2011 15:16:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pk0An-0000Nb-5Q for guile-devel@gnu.org; Mon, 31 Jan 2011 15:16:30 -0500 Original-Received: from smtp-vbr19.xs4all.nl ([194.109.24.39]:1373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pk0Am-0000MZ-UB; Mon, 31 Jan 2011 15:16:29 -0500 Original-Received: from [192.168.1.112] (peder.onsbrabantnet.nl [88.159.206.46] (may be forged)) (authenticated bits=0) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id p0VKGPL0091306; Mon, 31 Jan 2011 21:16:25 +0100 (CET) (envelope-from janneke-list@xs4all.nl) In-Reply-To: <874o8r8kdn.fsf@gnu.org> X-Mailer: Evolution 2.30.3 X-Virus-Scanned: by XS4ALL Virus Scanner X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-vbr19.xs4all.nl id p0VKGPL0091306 X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 194.109.24.39 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11462 Archived-At: Ludovic Court=C3=A8s schreef op za 29-01-2011 om 22:34 [+0100]: Hi Ludovic, > OK but all the modules listed after =E2=80=98accept=E2=80=99 above are = needed too, > right? Yes, sure. > Hmm could it be that there was a typo? Here running =E2=80=98git-versi= on-gen=E2=80=99 > outside of a Git tree works fine: >=20 > $ guile/build-aux/git-version-gen .tarball-version s/foo/bar/ > UNKNOWN Yes, does it also work when you change configure.ac and autoreconf? > Ouch. May I suggest reporting it to bug-gnulib@gnu.org? :-) I think > people there would be happy to provide an appropriate fix and we > wouldn=E2=80=99t even have to worry. ;-) Yes, hat would be nice. > > --- a/libguile/bdw-gc.h > > +++ b/libguile/bdw-gc.h > > @@ -30,7 +30,9 @@ > > allocation. */ > > =20 > > # define GC_THREADS 1 > > +#ifndef __MINGW32__ > > # define GC_REDIRECT_TO_LOCAL 1 > > +#endif /* __MINGW32__ */ >=20 > Why? I'm using gc-6.8 and cannot seem to build a version for Mingw that includes GC_local_malloc -- that seems to be for linux pthreads only. Removing this redirect to local, fixes these .libs/libguile_2.0_la-alist.o:alist.c:(.text+0x6bf): undefined refere= nce to `_GC_local_malloc' build errors. > > - buf->st_mode =3D _S_IFSOCK | _S_IREAD | _S_IWRITE | _S_IEXEC; > > + buf->st_mode =3D _S_IREAD | _S_IWRITE | _S_IEXEC; >=20 > Why? Isn=E2=80=99t =E2=80=98_S_IFSOCK=E2=80=99 defined on all MinGW? I don't have in it my mingw-runtime-3.14. If there's a newer version, I've misses something and would like to hear it. > > +#ifndef __MINGW32__ > > /* Make sure the `AI_*' flags can be stored as INUMs. */ > > verify (SCM_I_INUM (SCM_I_MAKINUM (AI_ALL)) =3D=3D AI_ALL); >=20 > Does MinGW lack getaddrinfo? No, it lacks the AI_* definitions. I realise that you may not want to include this just yet, although it "documents" my progress building it for mingw. > Gnulib=E2=80=99s =E2=80=98getaddrinfo=E2=80=99 module, which we use, is= supposed to take care of > this, i.e., it should fall back to =E2=80=98gethostbyname=E2=80=99 if n= eeded. Yes. More bits in a new thread. Thanks, greetings, Jan. --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.= nl =20