Building Python on Cray T3E

Skip Montanaro skip at pobox.com
Fri May 10 00:52:11 EDT 2002


    Mark>   CC-147 cc: ERROR File = ./Modules/_sre.c, Line = 1791
    Mark>     Declaration is incompatible with "int join(char *, char *)"
    Mark>    (declared at line 300 of "/usr/include/unistd.h").

    Mark>       join(PyObject* list, PyObject* pattern)

Looks like _sre.c defines a static function named "join" that conflicts with
something in the Cray's standard library.  Try applying this patch.  It
should get you past this particular problem.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)
"Excellant Written and Communications Skills [required]" - post to chi.jobs


*** /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;





More information about the Python-list mailing list