[Python-bugs-list] [ python-Bugs-481969 ] Doesn't build with OOTB Cygwin

noreply@sourceforge.net noreply@sourceforge.net
Wed, 14 Nov 2001 21:17:17 -0800


Bugs item #481969, was opened at 2001-11-14 21:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=481969&group_id=5470

Category: Build
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: David Abrahams (david_abrahams)
Assigned to: Nobody/Anonymous (nobody)
Summary: Doesn't build with OOTB Cygwin

Initial Comment:
It looks like it is getting confused because 
SIZEOF_LONG doesn't ever get #defined. I made the 
following patch to pyconfig.h which helped in my case:

--- c:/tools/python2.2/include/pyconfig.h	Thu 
Sep 06 01:32:16 2001
+++ c:/tools/Python-2.2b1/Include/pyconfig.h	Thu 
Nov 15 01:25:00 2001
@@ -193,7 +193,7 @@
 #endif /* BORLANDC */
 
 /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
-#if defined(__GNUC__) && defined(_WIN32)
+#if defined(__GNUC__) && (defined(_WIN32) || defined
(__CYGWIN__))
 /* XXX These defines are likely incomplete, but 
should be easy to fix. 
    They should be complete enough to build extension 
modules. */
 /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> 
to avoid a GCC 2.91.*
@@ -240,7 +240,7 @@
 #endif
 
 #define HAVE_LONG_LONG 1
-#define LONG_LONG long long 
+#define LONG_LONG long long
 #endif /* GNUC */
 
 /* lcc-win32 defines __LCC__ */


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=481969&group_id=5470