Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <20000126203100.13819.qmail@web2105.mail.yahoo.com> Date: Wed, 26 Jan 2000 12:30:59 -0800 (PST) From: David Robinow Subject: Re: Making wget To: cygwin AT sourceware DOT cygnus DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Glenn Spell wrote: > 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 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. > I've investigated a bit. Later snapshots have the line h_errno DATA in winsup.din, whereas 19990115 snapshot has h_errno I don't know what this means, but I'm guessing it has something to do with why it seems to link with the old snapshot but not the newer ones. Although the program seems to work for me, I haven't tested it enough to tell if the part of the code that uses h_errno is broken (i.e. links but doesn't work) or not. Apparently Glenn's patch solves the problem, but I'm wondering if this is a case like many old programs declaring int errno when they should use #include In other words, perhaps the code should just #include (Note that the last few lines above are off-topic for Cygwin) __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com