Re: [xml] nanohttp.c:868: `h_errno' undeclared



On Fri, Mar 22, 2002 at 11:41:43AM -0500, Fricault, Mark wrote:
I ran configure with the following options [ configure --prefix=/home/mff
--exec-prefix=/home/mff ].

When I execute make, I get an "'h_errno' undeclared" error (as you can see
below). 

So, any ideas as to what I need to do to get around this error?  Many
thanks.
[...]
-c nanohttp.c  -fPIC -DPIC -o .libs/nanohttp.lo
    nanohttp.c: In function `xmlNanoHTTPConnectHost':
    nanohttp.c:868: `h_errno' undeclared (first use in this function)

  Crap, I was hoping that 

    #if defined(HAVE_NETDB_H) && defined(HOST_NOT_FOUND)

would have avoided insane compilers to go there. 
  See bug #74503
    http://bugzilla.gnome.org/show_bug.cgi?id=74503

 Seriously, are you trying this on an HP box ?

I don't know any way to detect this case. If netdb.h is present and
HOST_NOT_FOUND is defined why on earth h_errno is not defined ???

 Please feed a bug report to whoever maintain your platform, and
please give me an OS dependant platform define that I can use to avoid
referencing h_errno ,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]