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

Sorry to say, but I don't know how to answer your question reguarding the
'OS dependant platform define', as none of the 5 unix guru's here seems to
understand exactly what you're looking for.  If you can tell me where I
might find this information, I'll pass it back to you.

I can tell you that our OS is "SCO Openserver 5.0.06" (and this may be the
answer you're looking for).

I can also tell you, that I found the #define h_errno in the
/usr/include/resolv.h file (thanks for pointing me in that direction), *not*
in the netdb.h file.  And the resolv.h file is only included if SUPPORT_IP6
has been defined (which it doesn't appear to be).

I'm sure this is the wrong way to fix this, and still remain cross-platform
compliant, but whenever the netdb.h file is included, I also include the
resolv.h file.  Now the make seems to work; at lease it complete without

- Mark

-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Friday, March 22, 2002 12:41 PM
To: Fricault, Mark
Cc: 'xml gnome org'
Subject: 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
--exec-prefix=/home/mff ].

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

So, any ideas as to what I need to do to get around this error?  Many
-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

 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 Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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