[Patches] [ python-Patches-885905 ] _socket fails to build with latest SGI compiler

SourceForge.net noreply at sourceforge.net
Wed Jan 28 18:20:14 EST 2004


Patches item #885905, was opened at 2004-01-28 01:35
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=885905&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Couch (gregcouch)
Assigned to: Nobody/Anonymous (nobody)
Summary: _socket fails to build with latest SGI compiler

Initial Comment:
The Python 2.3 mechanism of defining _POSIX_C_SOURCE
et. al. prevents configure from finding everything.  It
kind of worked for the SGI 7.3 compilers, but always
fails for the 7.4 compilers.  With the patch the gross
ifdef in socketmodule.c that defines _SGIAPI is not
used and likewise for various other ifdef __sgi's. 
Since they are not used anymore, I didn't remove them
in this patch.  Attached is a patch to configure.in
that eliminates the various _SOURCE defines on IRIX and
works with both the 7.3.1.2m and 7.4.1m compilers.
The same patch can be applied to configure for those
who don't have autoconf working on their system.

     - Greg

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

>Comment By: Martin v. Löwis (loewis)
Date: 2004-01-29 00:20

Message:
Logged In: YES 
user_id=21627

This patch is inappropriate. Can you please explain why
defining _POSIX_C_SOURCE prevents configure from finding
everything?

If you are certain that IRIX is so broken that you cannot
compile conforming POSIX programs, please use the facility
define_xopen_source to disable POSIX. Make sure you list
your name and a specific problem; "cannot compile
socketmodule" would not be specific, but "struct foo is
defined twice, once in bar.h and once in foobar.h" would be
specific.


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

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



More information about the Patches mailing list