You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Deborah Hansknecht <da...@sandia.gov> on 2000/12/01 19:19:38 UTC
config/6920: h_errno not defined (sockopt.c) unless compiled with -D_XOPEN_SOURCE_EXTENDED
>Number: 6920
>Category: config
>Synopsis: h_errno not defined (sockopt.c) unless compiled with -D_XOPEN_SOURCE_EXTENDED
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: support
>Submitter-Id: apache
>Arrival-Date: Fri Dec 01 10:20:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: dahansk@sandia.gov
>Release: Version 2.08a
>Organization:
apache
>Environment:
HP-UX B.10.20 A 9000/871
>Description:
In <apache>/src/lib/apr/network_io/sockopt.c references h_errno.
On my system that variable is defined in /usr/include/netdb.h, but only if
_XOPEN_SOURCE_EXTENDED is also defined. So when I execute the default configure
and Makefiles I get a compile error.
(Note, I do not believe this is a problem on HP_UX V11; looking over that
version of netdb.h it looks like h_errno is defined)
>How-To-Repeat:
Try to compile on HPUX V10.2 (?) I haven't been able to find a patch that would
have affected netdb.h and h_errno.
>Fix:
I don't have enough experience with cross_platform development or what it really
means to HP_UX to define _XOPEN_SOURCE_EXTENDED to know. The easiest would be:
in sockopt.c
#ifdef HPUX10
extern int h_errno
#endif
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]