[ python-Bugs-991125 ] Make Problem on HPUX

SourceForge.net noreply at sourceforge.net
Thu Aug 5 14:06:36 CEST 2004


Bugs item #991125, was opened at 2004-07-14 15:49
Message generated for change (Comment added) made by plusk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=991125&group_id=5470

Category: Installation
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul D. Lusk (plusk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Make Problem on HPUX

Initial Comment:
Build of _socket fails:

In file included from /home/python/Python-
2.4a1/Modules/socketmodule.c:314:
/home/python/Python-2.4a1/Modules/getaddrinfo.c: In 
function `fake_gai_strerror':
/home/python/Python-2.4a1/Modules/getaddrinfo.c:204: 
`EAI_MAX' undeclared (first use in this function)
/home/python/Python-2.4a1/Modules/getaddrinfo.c:204: 
(Each undeclared identifier is reported only once
/home/python/Python-2.4a1/Modules/getaddrinfo.c:204: 
for each function it appears in.)
/home/python/Python-2.4a1/Modules/getaddrinfo.c: In 
function `fake_getaddrinfo':
/home/python/Python-2.4a1/Modules/getaddrinfo.c:282: 
`EAI_BADHINTS' undeclared (first use in this function)
/home/python/Python-2.4a1/Modules/getaddrinfo.c:283: 
`AI_MASK' undeclared (first use in this function)
/home/python/Python-2.4a1/Modules/getaddrinfo.c:373: 
`EAI_PROTOCOL' undeclared (first use in this function)

The problem seems to be that 

#include "addrinfo.h"

is in an #if 0 block in getaddrinfo.c

When that include is moved out of the #if 0
block, the _socket module compiles and 
make test does not show any errors.

System information:

uname -a
HP-UX voyager B.11.11 U 9000/800 3108770354 
unlimited-user license

The above problem occurs with both gcc and with
HP's C compiler.

----------------------------------------------------------------------

>Comment By: Paul D. Lusk (plusk)
Date: 2004-08-05 08:06

Message:
Logged In: YES 
user_id=1083789

I just checked, and man getaddrinfo shows that HPUX _does_
have getaddrinfo:

 getaddrinfo(3N)                                             getaddrinfo
(3N)

 NAME
      getaddrinfo(), getnameinfo(), freeaddrinfo(), gai_strerror
() - get
      hostname and address entry

 SYNOPSIS
      #include <sys/socket.h>
      #include <netdb.h>

      int getaddrinfo(const char *hostname, const char 
*servname,
                      const struct addrinfo *hints, struct addrinfo 
**res);

      int getnameinfo(const struct sockaddr *sa, size_t salen,
                      char *host, size_t hostlen,
                      char *serv, size_t servlen, int flags);

      void freeaddrinfo(struct addrinfo *ai);

      char *gai_strerror(int encode);
 
So the real problem is that configure didn't find it.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2004-08-04 13:36

Message:
Logged In: YES 
user_id=21627

Does that mean HP-UX does not have a native getaddrinfo?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=991125&group_id=5470


More information about the Python-bugs-list mailing list