bug-guile
[Top][All Lists]
Advanced

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

Re: A better `h_errno' patch for building 1.4 on Cygwin


From: Marius Vollmer
Subject: Re: A better `h_errno' patch for building 1.4 on Cygwin
Date: 06 Sep 2001 21:16:23 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Sorry, for the delay.  Is this still an issue?

Eric Hanchrow <address@hidden> writes:

> 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
> `h_errno'
> 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~"
> "d:/cygwin/usr/local/src/guile-1.4/libguile/net_db.c"
> --- 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
> 2001
> @@ -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;
>  #endif
>  
> 
> Diff finished at Thu Aug 09 10:23:59



reply via email to

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