delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/30/18:05:08

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: <395D183F.C6ACC8D4@cygnus.com>
Date: Fri, 30 Jun 2000 23:59:27 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sourceware DOT cygnus DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: Jonas Jensen <bones0_list AT hotmail DOT com>
Cc: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT hotpop DOT com>
Subject: Re: can't compile wget and lapack++
References: <20000628134536 DOT 25389 DOT qmail AT hotmail DOT com><20000628144511 DOT H21275 AT cygnus DOT com> <4 DOT 3 DOT 1 DOT 2 DOT 20000630171617 DOT 01d731f8 AT pop DOT ma DOT ultranet DOT com> <20000630213553 DOT 34616 DOT qmail AT hotmail DOT com>


Jonas Jensen wrote:
> 
> > >Wget has a linkage problem : ftp.o (..........) undefined reference to
> > >'h_errno'
> > These would be porting problems.  You should look at the code for these
> > two packages and see where the problem is.  In addition, I know wget has
> > been ported before.
> 
> I managed to compile wget by passing 0, rather than h_errno. This makes it say
> "unknown error" rather than "cannot resolve host" when it can't connect. I'm sure
> there is a better way to do it, but....this one's very easy :-)

Uhmm, wouldn't it be better just to add

	#include <netdb.h>

which is the file which defines h_errno just like in other
OSes. It's not really a porting problem but the too relaxed
handling of external `int' type variables by some programmers.

The same problem is often found with `errno'.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company


--
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