From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: stefan Newsgroups: gmane.lisp.guile.devel Subject: Re: native Win32 guile 1.7.0 Date: Fri, 30 May 2003 11:27:37 +0200 (CEST) Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87of1lny7w.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1054288052 22283 80.91.224.249 (30 May 2003 09:47:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 30 May 2003 09:47:32 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 30 11:47:30 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LgTy-0005n0-00 for ; Fri, 30 May 2003 11:47:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LgVT-0005F1-OF for guile-devel@m.gmane.org; Fri, 30 May 2003 05:49:03 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19LgTn-0003nH-73 for guile-devel@gnu.org; Fri, 30 May 2003 05:47:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19LgS6-000384-PA for guile-devel@gnu.org; Fri, 30 May 2003 05:45:36 -0400 Original-Received: from obh.snafu.de ([213.73.92.34]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LgLh-0000Yt-B1 for guile-devel@gnu.org; Fri, 30 May 2003 05:38:57 -0400 Original-Received: from p-164-183.zrz.tu-berlin.de ([130.149.164.183] helo=bono) by obh.snafu.de with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #1) id 19LgLO-000KMd-00; Fri, 30 May 2003 11:38:54 +0200 Original-Received: from localhost ([127.0.0.1] ident=ela) by bono with esmtp (Exim 3.36 #1) id 19LgAl-000261-00; Fri, 30 May 2003 11:27:39 +0200 X-X-Sender: stefan@bono.reversers.net Original-To: Kevin Ryde In-Reply-To: <87of1lny7w.fsf@zip.com.au> X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2456 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2456 On Fri, 30 May 2003, Kevin Ryde wrote: > stefan writes: > > > > * posix.c (s_scm_putenv): Disable use of unsetenv() for the > > mingw32 build. > > > > #ifndef __MINGW32__ > > It'd be good autoconf style to test unsetenv with AC_CHECK_FUNCS if > it's not always available. In particular that way it gets used if > added to mingw in the future. > > Perhaps environ could be munged directly if unsetenv doesn't exist. > Might end up being a memory leak. Probably not ideal to silently do > nothing. I just added a check for unsetenv() in the configure script and used it in posix.c appropiately for mingw32 hosts. Which means that a putenv("name="); would remove the environment variable 'name'. With the last changes in 'numbers.h' all of the errors in the error.log I posted earlier disappear, i.e. using _copysign, _isnan and _finite solved the problems in the 'numbers.test'. Remaining issues about the cross-build: * I do use a special 'guile.cache' file as cache file for the configure script. The file defines some tests to be done and chached. I think this is normal for a cross-build. * The 'fileblocks.o' must be removed in configure before configure'ing. This is due to the macro AC_STRUCT_ST_BLOCKS. * For the 'guilereadline.dll' I need to add -lpthread to the linker line. That is because the scm_cell() inline function in 'inline.h' uses pthread_getspecific(). We could avoid that dependency by making scm_getspecific() a real function in 'libguile.dll' and not a simple macro. Thus all the pthread dependencies are kept within 'libguile.dll'. Cheers, stefan@lkcc.org _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel