This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: _socket fails to build with latest SGI compiler
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: gregcouch, loewis, nnorwitz
Priority: normal Keywords: patch

Created on 2004-01-28 00:35 by gregcouch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
p gregcouch, 2004-01-28 00:35 patch for configure.in
Messages (3)
msg45323 - (view) Author: Greg Couch (gregcouch) Date: 2004-01-28 00:35
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
msg45324 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-01-28 23:20
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.
msg45325 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-06-06 21:35
Logged In: YES 
user_id=33168

socketmodule.c problems on IRIX should have been fixed when
patch 728330 was committed.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39874
2004-01-28 00:35:45gregcouchcreate