delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/16/11:23:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3A38EEA6.F5125F0A@ece.gatech.edu>
Date: Thu, 14 Dec 2000 11:00:38 -0500
From: "Charles S. Wilson" <cwilson AT ece DOT gatech DOT edu>
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Patrick Doyle <wpd AT delcomsys DOT com>
CC: Josifovski Ljubomir-BLJ01Z <Ljubomir_Josifovski-BLJ01Z AT email DOT mot DOT com>,
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: Q: apache: logresolve.c: undefined reference to `h_errno'
References: <D1F0002F0A8FD411ACEC00805FE675CE260E7C AT zuk02exm02 DOT comm DOT mot DOT com> <3A38E2D1 DOT D7A65C46 AT delcomsys DOT com>

The correct thing to do is to #include <netdb.h> in your source code. 
The next best thing is to change

extern int h_errno;
to
extern __declspec(dllimport) int h_errno;

within your source code.

--Chuck

Patrick Doyle wrote:
> 
> Not knowing any better, when I tried to compile wget, I just changed the
> reference to `h_errno' from:
> 
> extern int h_errno;
> 
> to
> 
> /* extern  */ int h_errno;
> 
> in one place (ftp.c) and wget compiled fine.  Having just read
> http://www.cygwin.com/ml/cygwin/2000-01/msg00452.html, I expect that was
> not the most correct thing to do, but it did allow me to compile and use
> wget.  Perhaps you could do the same with apache.
> 
> It's a hack, but it might be just enough to allow you to get your simple
> files-via-http service running.
>

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