From troot@umr.edu Mon Jan 14 12:43:59 2002
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83])
by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id MAA19037
for <bugs@RT-11.mit.edu>; Mon, 14 Jan 2002 12:43:59 -0500 (EST)
Received: from smtp.umr.edu (mrelay1.cc.umr.edu [131.151.1.120])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id MAA18498
for <krb5-bugs@mit.edu>; Mon, 14 Jan 2002 12:43:58 -0500 (EST)
Received: from hydra.cc.umr.edu (hydra.cc.umr.edu [131.151.35.11]) via ESMTP by mrelay1.cc.umr.edu (8.12.1/) id g0EHhwOT001506; Mon, 14 Jan 2002 11:43:58 -0600
Received: (from root@localhost)
by hydra.cc.umr.edu (8.12.1/8.12.0.Beta7) id g0EHhvHu012508;
Mon, 14 Jan 2002 11:43:57 -0600 (CST)
Message-Id: <200201141743.g0EHhvHu012508@hydra.cc.umr.edu>
Date: Mon, 14 Jan 2002 11:43:57 -0600 (CST)
From: nneul@umr.edu
Reply-To: nneul@umr.edu
To: krb5-bugs@mit.edu
Subject: h_errno not declared on hpux 10.20
X-Send-Pr-Version: 3.99
System: HP-UX hydra B.10.20 A 9000/899 1654451351 two-user license
causes fake-addrinfo.c to not compile on hpux 10.20
From: "Neulinger, Nathan" <nneul@umr.edu>
To: "'krb5-bugs@mit.edu'" <krb5-bugs@mit.edu>
Cc: Subject: RE: krb5-libs/1044: h_errno not declared on hpux 10.20
Date: Mon, 14 Jan 2002 12:11:35 -0600
fyi, I needed this for include and lib/krb5/os.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
From: Nathan Neulinger <nneul@umr.edu>
To: krb5-bugs@mit.edu
Cc: hartmans@mit.edu
Subject: Re: krb5-libs/1044: h_errno not declared on hpux 10.20
Date: Mon, 14 Jan 2002 14:01:36 -0600
--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Jan 14, 2002 at 12:44:00PM -0500, krb5-bugs@mit.edu wrote:
Here's a small patch that will add a configure check for this in the appropriate places.
If a compile check for h_errno fails, it tries it again with _XOPEN_SOURCE_EXTENDED defined.
If that works, will define _XOPEN_SOURCE_EXTENDED for the build.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="herrno.diff"
Index: aclocal.m4
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/aclocal.m4,v
retrieving revision 1.6
diff -u -r1.6 aclocal.m4
--- aclocal.m4 30 Oct 2001 17:41:32 -0000 1.6
+++ aclocal.m4 14 Jan 2002 19:45:06 -0000
@@ -1443,3 +1443,29 @@
done
done
])
+dnl
+dnl Determine if _XOPEN_SOURCE_EXTENDED is needed for h_errno use
+dnl
+AC_DEFUN([KRB5_CHECK_HERRNO_DEFINES], [
+AC_CACHE_CHECK([whether h_errno need _XOPEN_SOURCE_EXTENDED],
+krb5_cv_h_errno_needs_xse,
+[
+AC_TRY_COMPILE(
+ [#include <netdb.h>],
+ [h_errno;],
+ krb5_cv_h_errno_needs_xse=no,
+ krb5_cv_h_errno_needs_xse=maybe)
+
+if test $krb5_cv_h_errno_needs_xse = maybe; then
+ AC_TRY_COMPILE(
+ [#define _XOPEN_SOURCE_EXTENDED
+ #include <netdb.h>],
+ [h_errno;],
+ krb5_cv_h_errno_needs_xse=yes,
+ krb5_cv_h_errno_needs_xse=no)
+fi
+])
+if test $krb5_cv_h_errno_needs_xse = yes; then
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+fi
+])
Index: appl/telnet/telnet/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/appl/telnet/telnet/configure.in,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 configure.in
--- appl/telnet/telnet/configure.in 8 Oct 2001 15:04:27 -0000 1.1.1.3
+++ appl/telnet/telnet/configure.in 14 Jan 2002 19:48:47 -0000
@@ -41,5 +41,7 @@
AC_DEFINE(KRB4)
fi
dnl
+KRB5_CHECK_HERRNO_DEFINES
+dnl
KRB5_BUILD_PROGRAM
V5_AC_OUTPUT_MAKEFILE
Index: lib/krb5/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/lib/krb5/configure.in,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure.in
--- lib/krb5/configure.in 3 Aug 2001 13:05:02 -0000 1.1.1.2
+++ lib/krb5/configure.in 14 Jan 2002 19:49:13 -0000
@@ -14,6 +14,7 @@
AC_REPLACE_FUNCS(vfprintf vsprintf strdup strcasecmp strerror memmove daemon getuid sscanf syslog)
KRB5_AC_REGEX_FUNCS
KRB5_NEED_PROTO([#include <time.h>],strptime)
+KRB5_CHECK_HERRNO_DEFINES
dnl
KRB5_SOCKADDR_SA_LEN
KRB5_GETPEERNAME_ARGS
Index: util/pty/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/util/pty/configure.in,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure.in
--- util/pty/configure.in 8 Oct 2001 15:07:43 -0000 1.1.1.2
+++ util/pty/configure.in 14 Jan 2002 19:37:52 -0000
@@ -284,6 +284,7 @@
AC_DEFINE(SETPGRP_TWOARG)
fi
dnl
+KRB5_CHECK_HERRNO_DEFINES
ADD_DEF(-DKERBEROS)
KRB5_AC_INET6
AC_C_CONST
--nFreZHaLTZJo0R7j--
Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83])
by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id MAA19037
for <bugs@RT-11.mit.edu>; Mon, 14 Jan 2002 12:43:59 -0500 (EST)
Received: from smtp.umr.edu (mrelay1.cc.umr.edu [131.151.1.120])
by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id MAA18498
for <krb5-bugs@mit.edu>; Mon, 14 Jan 2002 12:43:58 -0500 (EST)
Received: from hydra.cc.umr.edu (hydra.cc.umr.edu [131.151.35.11]) via ESMTP by mrelay1.cc.umr.edu (8.12.1/) id g0EHhwOT001506; Mon, 14 Jan 2002 11:43:58 -0600
Received: (from root@localhost)
by hydra.cc.umr.edu (8.12.1/8.12.0.Beta7) id g0EHhvHu012508;
Mon, 14 Jan 2002 11:43:57 -0600 (CST)
Message-Id: <200201141743.g0EHhvHu012508@hydra.cc.umr.edu>
Date: Mon, 14 Jan 2002 11:43:57 -0600 (CST)
From: nneul@umr.edu
Reply-To: nneul@umr.edu
To: krb5-bugs@mit.edu
Subject: h_errno not declared on hpux 10.20
X-Send-Pr-Version: 3.99
Show quoted text
>Number: 1044
>Category: krb5-libs
>Synopsis: h_errno no declared on hpux 10.20
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon Jan 14 12:44:00 EST 2002
>Last-Modified: Mon Jan 14 15:02:00 EST 2002
>Originator: Nathan Neulinger
>Organization:
University of Missouri - Rolla>Category: krb5-libs
>Synopsis: h_errno no declared on hpux 10.20
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon Jan 14 12:44:00 EST 2002
>Last-Modified: Mon Jan 14 15:02:00 EST 2002
>Originator: Nathan Neulinger
>Organization:
Show quoted text
>Release: krb5-current-20020110
>Environment:
>Environment:
System: HP-UX hydra B.10.20 A 9000/899 1654451351 two-user license
Show quoted text
>Description:
h_errno not declared in netdb.h unless you define _XOPEN_SOURCE_EXTENDEDcauses fake-addrinfo.c to not compile on hpux 10.20
Show quoted text
>How-To-Repeat:
>Fix:
define _XOPEN_SOURCE_EXTENDED when compiling fake-addrinfo.c>Fix:
Show quoted text
>Audit-Trail:
From: "Neulinger, Nathan" <nneul@umr.edu>
To: "'krb5-bugs@mit.edu'" <krb5-bugs@mit.edu>
Cc: Subject: RE: krb5-libs/1044: h_errno not declared on hpux 10.20
Date: Mon, 14 Jan 2002 12:11:35 -0600
fyi, I needed this for include and lib/krb5/os.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
Show quoted text
> -----Original Message-----
> From: krb5-bugs@mit.edu [mailto:krb5-bugs@mit.edu]
> Sent: Monday, January 14, 2002 11:44 AM
> To: Neulinger, Nathan
> Subject: Re: krb5-libs/1044: h_errno not declared on hpux 10.20
>
>
> Thank you very much for your problem report.
> It has the internal identification `krb5-libs/1044'.
> The individual assigned to look at your
> report is: krb5-unassigned.
>
> From: krb5-bugs@mit.edu [mailto:krb5-bugs@mit.edu]
> Sent: Monday, January 14, 2002 11:44 AM
> To: Neulinger, Nathan
> Subject: Re: krb5-libs/1044: h_errno not declared on hpux 10.20
>
>
> Thank you very much for your problem report.
> It has the internal identification `krb5-libs/1044'.
> The individual assigned to look at your
> report is: krb5-unassigned.
>
> >Category: krb5-libs
> >Responsible: krb5-unassigned
> >Synopsis: h_errno no declared on hpux 10.20
> >Arrival-Date: Mon Jan 14 12:44:00 EST 2002
> > >Responsible: krb5-unassigned
> >Synopsis: h_errno no declared on hpux 10.20
> >Arrival-Date: Mon Jan 14 12:44:00 EST 2002
From: Nathan Neulinger <nneul@umr.edu>
To: krb5-bugs@mit.edu
Cc: hartmans@mit.edu
Subject: Re: krb5-libs/1044: h_errno not declared on hpux 10.20
Date: Mon, 14 Jan 2002 14:01:36 -0600
--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Jan 14, 2002 at 12:44:00PM -0500, krb5-bugs@mit.edu wrote:
Show quoted text
> Thank you very much for your problem report.
> It has the internal identification `krb5-libs/1044'.
> The individual assigned to look at your
> report is: krb5-unassigned.
>
> It has the internal identification `krb5-libs/1044'.
> The individual assigned to look at your
> report is: krb5-unassigned.
>
> >Category: krb5-libs
> >Responsible: krb5-unassigned
> >Synopsis: h_errno no declared on hpux 10.20
> >Arrival-Date: Mon Jan 14 12:44:00 EST 2002
> >Responsible: krb5-unassigned
> >Synopsis: h_errno no declared on hpux 10.20
> >Arrival-Date: Mon Jan 14 12:44:00 EST 2002
Here's a small patch that will add a configure check for this in the appropriate places.
If a compile check for h_errno fails, it tries it again with _XOPEN_SOURCE_EXTENDED defined.
If that works, will define _XOPEN_SOURCE_EXTENDED for the build.
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="herrno.diff"
Index: aclocal.m4
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/aclocal.m4,v
retrieving revision 1.6
diff -u -r1.6 aclocal.m4
--- aclocal.m4 30 Oct 2001 17:41:32 -0000 1.6
+++ aclocal.m4 14 Jan 2002 19:45:06 -0000
@@ -1443,3 +1443,29 @@
done
done
])
+dnl
+dnl Determine if _XOPEN_SOURCE_EXTENDED is needed for h_errno use
+dnl
+AC_DEFUN([KRB5_CHECK_HERRNO_DEFINES], [
+AC_CACHE_CHECK([whether h_errno need _XOPEN_SOURCE_EXTENDED],
+krb5_cv_h_errno_needs_xse,
+[
+AC_TRY_COMPILE(
+ [#include <netdb.h>],
+ [h_errno;],
+ krb5_cv_h_errno_needs_xse=no,
+ krb5_cv_h_errno_needs_xse=maybe)
+
+if test $krb5_cv_h_errno_needs_xse = maybe; then
+ AC_TRY_COMPILE(
+ [#define _XOPEN_SOURCE_EXTENDED
+ #include <netdb.h>],
+ [h_errno;],
+ krb5_cv_h_errno_needs_xse=yes,
+ krb5_cv_h_errno_needs_xse=no)
+fi
+])
+if test $krb5_cv_h_errno_needs_xse = yes; then
+ AC_DEFINE(_XOPEN_SOURCE_EXTENDED)
+fi
+])
Index: appl/telnet/telnet/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/appl/telnet/telnet/configure.in,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 configure.in
--- appl/telnet/telnet/configure.in 8 Oct 2001 15:04:27 -0000 1.1.1.3
+++ appl/telnet/telnet/configure.in 14 Jan 2002 19:48:47 -0000
@@ -41,5 +41,7 @@
AC_DEFINE(KRB4)
fi
dnl
+KRB5_CHECK_HERRNO_DEFINES
+dnl
KRB5_BUILD_PROGRAM
V5_AC_OUTPUT_MAKEFILE
Index: lib/krb5/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/lib/krb5/configure.in,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure.in
--- lib/krb5/configure.in 3 Aug 2001 13:05:02 -0000 1.1.1.2
+++ lib/krb5/configure.in 14 Jan 2002 19:49:13 -0000
@@ -14,6 +14,7 @@
AC_REPLACE_FUNCS(vfprintf vsprintf strdup strcasecmp strerror memmove daemon getuid sscanf syslog)
KRB5_AC_REGEX_FUNCS
KRB5_NEED_PROTO([#include <time.h>],strptime)
+KRB5_CHECK_HERRNO_DEFINES
dnl
KRB5_SOCKADDR_SA_LEN
KRB5_GETPEERNAME_ARGS
Index: util/pty/configure.in
===================================================================
RCS file: /afs/.umr.edu/software/krb5src/cvsroot/krb5-current/src/util/pty/configure.in,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 configure.in
--- util/pty/configure.in 8 Oct 2001 15:07:43 -0000 1.1.1.2
+++ util/pty/configure.in 14 Jan 2002 19:37:52 -0000
@@ -284,6 +284,7 @@
AC_DEFINE(SETPGRP_TWOARG)
fi
dnl
+KRB5_CHECK_HERRNO_DEFINES
ADD_DEF(-DKERBEROS)
KRB5_AC_INET6
AC_C_CONST
--nFreZHaLTZJo0R7j--
Show quoted text
>Unformatted: