Hi, compiling python-2.3 on various platforms I needed the attached patch. the first two patches to Makefile.pre.in and Modules/makesetup are needed if source dir and compile dir are not the same. Modules/resource.c patch fixes a problem for Solaris 2.5.1 which doesn't define _SC_PAGE_SIZE but _SC_PAGESIZE in unistd.h. other than those small patches, python-2.3 compiled fine on the following systems using either gcc-2.95.3 or gcc-3.3: alpha.OSF1-V4.0 hp9000s700.HP-UX-B.10.20 hp9000s700.HP-UX-B.11.00 i386-linux.RedHat-6.2 i386-linux.RedHat-7.1 i386-linux.suse62 i386-linux.suse72 iris4d.IRIX64-6.5 rs6000.AIX-4.3 sun4.SunOS-5.5.1 sun4.SunOS-5.8 Harald Koenig -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ koenig at science-computing.de ^^^^^ ^^^^^ -------------- next part -------------- --- Python-2.3/Makefile.pre.in~ Thu Aug 7 14:36:12 2003 +++ Python-2.3/Makefile.pre.in Thu Aug 7 14:35:44 2003 @@ -56,7 +56,7 @@ OPT= @OPT@ BASECFLAGS= @BASECFLAGS@ CFLAGS= $(BASECFLAGS) $(OPT) -CPPFLAGS= -I. -I$(srcdir)/Include +CPPFLAGS= -I. -IInclude -I$(srcdir)/Include LDFLAGS= @LDFLAGS@ LDLAST= @LDLAST@ SGI_ABI= @SGI_ABI@ @@ -432,6 +432,7 @@ $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT) + -@ mkdir Include -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) $(PGEN): $(PGENOBJS) --- Python-2.3/Modules/makesetup~ Fri Mar 29 19:00:18 2002 +++ Python-2.3/Modules/makesetup Thu Aug 7 14:30:31 2003 @@ -238,7 +238,7 @@ no) SHAREDMODS="$SHAREDMODS $file";; esac rule="$file: $objs" - rule="$rule; \$(LDSHARED) $objs $libs $ExtraLibs -o $file" + rule="$rule; \$(BLDSHARED) $objs $libs $ExtraLibs -o $file" echo "$rule" >>$rulesf done done --- Python-2.3/Modules/resource.c~ Sun Mar 30 22:51:29 2003 +++ Python-2.3/Modules/resource.c Mon Aug 11 15:44:34 2003 @@ -202,7 +202,11 @@ #if defined(HAVE_GETPAGESIZE) pagesize = getpagesize(); #elif defined(HAVE_SYSCONF) +#if defined(_SC_PAGESIZE) /* for Solaris 2.5.1 */ + pagesize = sysconf(_SC_PAGESIZE); +#else pagesize = sysconf(_SC_PAGE_SIZE); +#endif #endif return Py_BuildValue("i", pagesize);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4