[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Compile error on SCO Port (ITS#2373)

In my version of SCO OSR 5.0.4 I cannot find a reference for h_errno in any include file, that is the only reason why I added a bald h_errno. The only reference to h_errno is in netdb.h and is a comment: 


 * Error return codes from gethostbyname() and gethostbyaddr() (left in

 * extern int h_errno).



-----Original Message-----
From: hyc@highlandsun.com [mailto:hyc@highlandsun.com]
Sent: Thursday, March 13, 2003 10:07 AM
To: openldap-its@OpenLDAP.org
Subject: RE: Compile error on SCO Port (ITS#2373)

The h_errno variable is a required definition in the /usr/include/netdb.h

header file. If it's not present there on SCO, please tell us what header

file actually does declare it. Adding a bald h_errno definition to our own

files will break portability with 99% of other platforms.

  -- Howard Chu

  Chief Architect, Symas Corp.       Director, Highland Sun

  http://www.symas.com               http://highlandsun.com/hyc

  Symas: Premier OpenSource Development and Support

> -----Original Message-----

> From: owner-openldap-bugs@OpenLDAP.org

> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of

> Clyde.McPherson@getronicsgov.com

> Sent: Thursday, March 13, 2003 6:30 AM

> To: openldap-its@OpenLDAP.org

> Subject: Compile error on SCO Port (ITS#2373)



> Full_Name:

> Version: 2.1.12

> OS: SCO 3.2 OSR  5.0.4

> URL: ftp://ftp.openldap.org/incoming/

> Submission from: (NULL) (



> Ran configure with:


>  ./configure  --enable-shared --disable-slapd --disable-ldbm

> --disable-debug

> --without-threads


> Received compile error in libraries/libldap util-int.c:


> util-int.c:177: `h_errno' undeclared (first use in this function)

> util-int.c:177: (Each undeclared identifier is reported only once

> util-int.c:177: for each function it appears in.)


> To continue to build without errors I added

> "extern int h_errno;" after the ldap-int.h include reference.