delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/26/15:26:35

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
Message-ID: <20000126203100.13819.qmail@web2105.mail.yahoo.com>
Date: Wed, 26 Jan 2000 12:30:59 -0800 (PST)
From: David Robinow <drobinow AT yahoo DOT com>
Subject: Re: Making wget
To: cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0


--- Glenn Spell <glenn AT gs DOT fay DOT nc DOT us> 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 <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.
> 
 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 <errno.h>

 In other words, perhaps the code should just
 #include <netdb.h>

(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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019