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

netdb.h, reentrant libc, h_errno



I've been trying to build up a couple of apps using the LSB build
environment, and keep stumbling across problems with symbols
from netdb.h.  This led to some digging, and I'm more confused
than I was before.

netdb.h is referenced in the spec, but does not appear to be
/in/ the spec. It's referenced in the gethostname and relatives
pages.

I don't find it in the cvs src/include directory either. There
is an entry in "datadefs.sgml" but it's empty.

netdb.h does get defined in the XNS spec (part of SUS v2).

Does this mean we will be depending on the system netdb.h?
At least on my Mandrake (8.0) system, netdb.h is heavily
modified to deal with a re-entrant libc, and thus I end up with
non-LSB symbols when I try to build against it.

The specific symbol that comes up is __h_errno_location,
which is used to locate h_errno.

Someone please clear this up for me.

Mats



Reply to: