This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
guile 1.4 patch to compile on Windows 2000
- To: Guile Mailing List <guile at sourceware dot cygnus dot com>
- Subject: guile 1.4 patch to compile on Windows 2000
- From: "Richard Y. Kim" <ryk at ap dot com>
- Date: Thu, 6 Jul 2000 14:27:20 -0700 (PDT)
- CC: ryk at ap dot com
- Reply-To: ryk at ap dot com
I got around to compiling guile 1.4 on Windows 2000 with the latest
update of cygwin tools. Two problems had to be overcome.
One is the name of "and-let*.scm" file where "*" is illegal under NTFS
file system. I simply renamed it to "and-let_.scm". Since I don't
yet use "and-let*.asm", this is not a problem for me.
Two is that "extern int h_errno;" is not needed in libguile/net_db.c
file. This causes linker error, because h_errno is a variable in
cygwin1.dll file. The following patch bypasses this line if
__CYGWIN__ is defined.
Otherwise, the build went smoothly.
I have not yet used it much though.
bash.exe-2.04$ diff -u net_db.c-orig net_db.c
--- net_db.c-orig Thu Jul 6 13:26:02 2000
+++ net_db.c Thu Jul 6 14:21:24 2000
@@ -73,7 +73,11 @@
/* Some systems do not declare this. Some systems do declare it, as a
macro. */
#ifndef h_errno
+/* Cygwin defines h_errno in netdb.h which may be a DLL import so that
+ "extern int h_errno;" may be invalid. */
+#ifndef __CYGWIN__
extern int h_errno;
+#endif
#endif
bash.exe-2.04$