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: Compile error _sre.c on Cray T3E
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: mwh Nosy List: gvanrossum, hadfield, mwh
Priority: normal Keywords:

Created on 2002-05-20 03:12 by hadfield, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg10864 - (view) Author: Mark Hadfield (hadfield) Date: 2002-05-20 03:12
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.
msg10865 - (view) Author: Mark Hadfield (hadfield) Date: 2002-05-20 03:17
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;

msg10866 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-05-29 10:27
Logged In: YES 
user_id=6656

/F: Any objections?
msg10867 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-06-05 19:12
Logged In: YES 
user_id=6380

MWH: just check it in, if the tests pass.
msg10868 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-07-31 09:54
Logged In: YES 
user_id=6656

Umm, don't know why this sat around for so long.

Checked in as revision 2.83 of Modules/_sre.c.
History
Date User Action Args
2022-04-10 16:05:20adminsetgithub: 36619
2002-05-20 03:12:59hadfieldcreate