Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <395D183F.C6ACC8D4@cygnus.com>
Date: Fri, 30 Jun 2000 23:59:27 +0200
From: Corinna Vinschen <vinschen@cygnus.com>
Reply-To: cygwin <cygwin@sourceware.cygnus.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@hotmail.com>
Cc: "cygwin@sourceware.cygnus.com" <cygwin@hotpop.com>
Subject: Re: can't compile wget and lapack++
References: <20000628134536.25389.qmail@hotmail.com><20000628144511.H21275@cygnus.com> <4.3.1.2.20000630171617.01d731f8@pop.ma.ultranet.com> <20000630213553.34616.qmail@hotmail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



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@sourceware.cygnus.com

