[Python-bugs-list] [ python-Bugs-558153 ] Compile error _sre.c on Cray T3E

noreply@sourceforge.net noreply@sourceforge.net
Sun, 19 May 2002 20:17:16 -0700


Bugs item #558153, was opened at 2002-05-20 15:12
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=558153&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Hadfield (hadfield)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compile error _sre.c on Cray T3E

Initial Comment:
Building version 2.2.1 on a Cray T3E, compilation fails
on  _sre.c because it the name of a function (join)
clashes with a declaration in a system header
(unistd.h). Operating system is UNICOS/mk--sorry I
can't find out OS version number right now.

Solution is to rename the join function in _sre.c.
Patch is attached.

See thread entitled "Building Python on Cray T3E", 9-18
May 2002, on comp.lang.python.

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

>Comment By: Mark Hadfield (hadfield)
Date: 2002-05-20 15:17

Message:
Logged In: YES 
user_id=227147

Attempts to attach patch failed. Here it is:

*** /home/skip/tmp/_sre.c.~2.79~        Thu May  9 23:50:23 2002
--- /home/skip/tmp/_sre.c       Thu May  9 23:50:23 2002
***************
*** 1788,1794 ****
  #endif
  
  static PyObject*
! join(PyObject* list, PyObject* pattern)
  {
      /* join list elements */
  
--- 1788,1794 ----
  #endif
  
  static PyObject*
! join_list(PyObject* list, PyObject* pattern)
  {
      /* join list elements */
  
***************
*** 2241,2247 ****
      Py_DECREF(filter);
  
      /* convert list to single string (also removes list) */
!     item = join(list, self->pattern);
  
      if (!item)
          return NULL;
--- 2241,2247 ----
      Py_DECREF(filter);
  
      /* convert list to single string (also removes list) */
!     item = join_list(list, self->pattern);
  
      if (!item)
          return NULL;



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

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