delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Date: | Wed, 26 Jan 2000 13:36:19 -0500 |
From: | Glenn Spell <glenn AT gs DOT fay DOT nc DOT us> |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: Making wget |
Message-ID: | <20000126133618.A13948@shell4.ba.best.com> |
Mail-Followup-To: | cygwin AT sourceware DOT cygnus DOT com |
References: | <9992348C73ADD211AF9B0000F8222B15595E98 AT sooexc1 DOT soo DOT dec DOT com> |
Mime-Version: | 1.0 |
X-Mailer: | Mutt 1.0i |
In-Reply-To: | <9992348C73ADD211AF9B0000F8222B15595E98@sooexc1.soo.dec.com>; from "Norling, Gunnar" on Wed, Jan 26, 2000 at 09:38AM |
Organization: | the aerie |
On 26 Jan 2000 around 9:38AM (-0000) Norling, Gunnar wrote: > Some days ago there where a discussion involving the wget program. > > ftp.o(.text+0x848):ftp.c: undefined reference to `h_errno' > http.o(.text+0x750):http.c: undefined reference to `h_errno' > > This is my versions: > gcc --version: 2.95.2 > uname -a: CYGWIN_NT-4.0 <machine> 1.1.0(0.16/3/2) 2000-01-20 > 00:22:41 i686 unknown I get the same results. I'm using gcc-2.95 with the 1999-12-05 dll (the newer dlls crash on me) on Win95. The following patch worked for me. I gleaned the information from /usr/include/netdb.h. I have no idea why this is necessary for some and not for others. ------------------------------------------------- --- src/ftp.c.orig Thu Sep 10 09:21:36 1998 +++ src/ftp.c Wed Jan 26 12:39:46 2000 @@ -52,3 +52,8 @@ #ifndef h_errno +# ifdef __CYGWIN__ +extern int * __imp_h_errno; +# define h_errno (*__imp_h_errno) +# else extern int h_errno; +# endif #endif --- src/http.c.orig Thu Sep 10 10:14:44 1998 +++ src/http.c Wed Jan 26 12:40:30 2000 @@ -70,3 +70,8 @@ #ifndef h_errno +# ifdef __CYGWIN__ +extern int * __imp_h_errno; +# define h_errno (*__imp_h_errno) +# else extern int h_errno; +# endif #endif ------------------------------------------------- -glenn -- ________________________________________ _ _____ ) )_ _ (__\____o /_/_ | ) Glenn Spell <glenn AT gs DOT fay DOT nc DOT us> ) >-----._/_/__]> )________________________________________) `0 | -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |