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: _SC_PAGE_SIZE unknown on IRIX 5.3
Type: Stage:
Components: Build Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: gschwarz, loewis
Priority: normal Keywords:

Created on 2004-08-08 17:58 by gschwarz, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg22011 - (view) Author: Georg Schwarz (gschwarz) Date: 2004-08-08 17:58
Modules/resource.c expects _SC_PAGE_SIZE to be known if 
HAVE_SYSCONF is defined. IRIX 5.3 however knows only 
_SC_PAGESIZE (defined in unistd.h), not _SC_PAGE_SIZE, 
so compilation (as part of make test) fails.
I would assume that some file in Lib/plat-irix5 should 
get a similar definition as in the case of Lib/plat-
unixware7 or Lib/plat-sunos5, maybe.
Alternatively adding the following to Modules/resource.c 
might help:
#ifndef _SC_PAGE_SIZE
#define _SC_PAGE_SIZE _SC_PAGESIZE
#endif

(this assumes of course that at least _SC_PAGESIZE is 
defined)
msg22012 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-12 13:28
Logged In: YES 
user_id=21627

This should be fixed now in resource.c 2.31.10.1 and 2.32,
NEWS 1.831.4.138. The fix is similar to yours: I explicitly
duplicate the sysconf call.
History
Date User Action Args
2022-04-11 14:56:06adminsetgithub: 40719
2004-08-08 17:58:48gschwarzcreate