[Python-bugs-list] [ python-Bugs-728330 ] IRIX, 2.3b1, socketmodule.c compilation errors
SourceForge.net
noreply@sourceforge.net
Mon, 30 Jun 2003 07:21:58 -0700
Bugs item #728330, was opened at 2003-04-27 02:21
Message generated for change (Comment added) made by rwgk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728330&group_id=5470
Category: Installation
Group: Python 2.3
Status: Open
Resolution: None
>Priority: 9
Submitted By: Ralf W. Grosse-Kunstleve (rwgk)
Assigned to: Nobody/Anonymous (nobody)
Summary: IRIX, 2.3b1, socketmodule.c compilation errors
Initial Comment:
Python release:
2.3b1
Platform:
IRIX 6.5
MIPSpro Compilers: Version 7.3.1.2m
Commands used:
./configure --prefix=/usr/local_cci/Python-2.3b1t
make
The socket module fails to compile. The output from
the compiler is attached.
----------------------------------------------------------------------
>Comment By: Ralf W. Grosse-Kunstleve (rwgk)
Date: 2003-06-30 07:21
Message:
Logged In: YES
user_id=71407
The socket module still fails to compile with Python
2.3b2, in addition to two other extensions. The full make
log is attached.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-05-21 23:47
Message:
Logged In: YES
user_id=21627
I think it would be best if detect presence of
inet_aton/inet_pton. Is IPv6 support possible on this
system? Then it would be best if that was detected, as well.
If it is not possible to detect aton/pton/ipv6, what is the
problem with not using them?
I'd like to have a look at the relevant headers (in
particular to understand the duplicate definition of
_SGIAPI), indeed.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-21 16:35
Message:
Logged In: YES
user_id=33168
Argh!!! This is a nightmare. The attached hack ^h^h^h
patch fixes the problem, but ...
_SGIAPI needs to be defined (~192 in socketmodule.c) in
order to get the prototypes for inet_aton, inet_pton. But
_SGIAPI can't be defined in the standard header files
because XOPEN_SOURCE is defined.
Martin, do you have any other suggestions? I don't see how
to do this right within configure. If you want I can send
you the header file(s).
----------------------------------------------------------------------
Comment By: alexandre gillet (gillet)
Date: 2003-05-12 10:41
Message:
Logged In: YES
user_id=150999
I had the same problem compiling socket on Irix.
We did find that on our system ENABLE_IPV6 is not define and
all the error are cause by that.
System that do not enable IPV6 are not well supported with
the socketmodule.c code.
We were able to compile socket after making few change in
the code:
I am not sure if I did it right but it compile.
I will post my patch but I do not see any place to attach my
file
example: See line 2794,2800
+ #ifdef ENABLE_IPV6
char packed[MAX(sizeof(struct in_addr),
sizeof(struct in6_addr))];
+ #else
+ char packed[sizeof(struct in_addr)];
+ #endif
I am not sure how to post the patch or file.
----------------------------------------------------------------------
Comment By: Ralf W. Grosse-Kunstleve (rwgk)
Date: 2003-05-05 11:44
Message:
Logged In: YES
user_id=71407
This is not in my area of expertise, but I've tried a couple of
(probably stupid) things:
#include <standards.h> in socketmodule.c instead of #define
_SGIAPI.
This resulted in even more errors.
./configure --disable-ipv6
Same errors as before.
I am lost here. Sorry. But you still have ssh access to
rattler.lbl.gov if that helps. Accounts for other Python developers
are a possibility.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2003-05-04 05:39
Message:
Logged In: YES
user_id=21627
Can you analyse these compiler errors in more detail,
please? What, in your opinion, is causing these problems,
and how would you correct them?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=728330&group_id=5470