RT RT/krbdev.mit.edu: Ticket #1044 h_errno no declared on hpux 10.20 Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
1044
Status
resolved
Worked
0 min
Priority
50/
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-libs
Version_reported
Version_Fixed
  • 1.4
Target_Version
Tags
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
 
 Dates  
Created: Mon Jan 14 12:44:00 2002
Starts: Not set
Started: Wed Sep 15 16:02:34 2004
Last Contact: Wed Sep 15 16:02:38 2004
Due: Not set
Updated: Mon Nov 15 22:21:53 2004 by tlyu
 

 People  
Owner
 tlyu
Requestors
 nneul@umr.edu
Cc
 
AdminCc
 
 

 More about nneul@umr.edu  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Mon Aug 19 14:21:31 2002  RT_System - Default: Import/ changed from to    
     
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

>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
>Release:        krb5-current-20020110
>Environment:

System: HP-UX hydra B.10.20 A 9000/899 1654451351 two-user license


>Description:
h_errno not declared in netdb.h unless you define _XOPEN_SOURCE_EXTENDED

causes fake-addrinfo.c to not compile on hpux 10.20

>How-To-Repeat:
>Fix:
define _XOPEN_SOURCE_EXTENDED when compiling fake-addrinfo.c
>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


 > -----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.
 >
 > >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
 >

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:
 > 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

 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--
>Unformatted:


Download (untitled) 6.8k
      Mon Aug 19 14:21:31 2002  RT_System - Component krb5-libs added    
      Fri Nov  1 18:14:51 2002  tlyu - Status changed from new to resolved    
      Sat Nov  2 01:33:25 2002  tlyu - Status changed from resolved to new    
      Wed Sep 15 16:02:35 2004  tlyu - Status changed from new to resolved    
      Wed Sep 15 16:02:35 2004  tlyu - Given to tlyu    
      Wed Sep 15 16:02:36 2004  tlyu - Correspondence added    
     
From: tlyu@mit.edu
Subject: CVS Commit

	* configure.in: Check for h_errno declaration in netdb.h.

	* port-sockets.h: Explicitly declare h_errno if it's missing.


To generate a diff of this commit:



	cvs diff -r1.465 -r1.466 krb5/src/include/ChangeLog
	cvs diff -r1.49 -r1.50 krb5/src/include/configure.in
	cvs diff -r1.23 -r1.24 krb5/src/include/port-sockets.h


Download (untitled) 326b
      Mon Nov 15 22:21:53 2004  tlyu - Version_Fixed 1.4 added