[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A better `h_errno' patch for building 1.4 on Cygwin

From: Eric Hanchrow
Subject: A better `h_errno' patch for building 1.4 on Cygwin
Date: Thu, 9 Aug 2001 10:25:11 -0700

Building Guile 1.4 on Cygwin fails:

gcc -g -O2 -Wall -Wmissing-prototypes -o guile .libs/guileS.o guile.o
.libs/libguile.a -Wl,--export-dynamic
.libs/libguile.a(net_db.o): In function `scm_resolv_error':
/usr/local/src/guile-1.4/libguile/net_db.c:195: undefined reference to
collect2: ld returned 1 exit status
rm -f .libs/guileS.o
make[1]: *** [guile] Error 1

It appears that Martin attempted a fix for this in the current CVS sources,
but that fix doesn't work for me.  Instead, I suggest going a little further
than Martin did:

cd d:/cygwin/usr/local/src/guile-1.4/libguile/
/cygdrive/d/cygwin/bin/diff -wu
--- d:/cygwin/usr/local/src/guile-1.4/libguile/net_db.c~        Thu Aug  9
10:08:58 2001
+++ d:/cygwin/usr/local/src/guile-1.4/libguile/net_db.c Thu Aug  9 10:21:12
@@ -72,7 +72,7 @@
 /* Some systems do not declare this.  Some systems do declare it, as a
    macro.  */
-#if !defined (h_errno) && !defined (__MINGW32__)
+#if !defined (h_errno) && !defined (__MINGW32__) && !defined (__CYGWIN__)
 extern int h_errno;

Diff finished at Thu Aug 09 10:23:59

reply via email to

[Prev in Thread] Current Thread [Next in Thread]