This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Q: apache: logresolve.c: undefined reference to `h_errno'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]