[SciPy-dev] CS causes compiler error on solaris in cluster hierarchy

John Hunter jdh2358@gmail....
Fri Sep 25 10:36:44 CDT 2009


When I try and compile scipy svn HEAD on solaris for python2.4 using
gcc 3.4.3, I get the following compiler error.  Apparently CS is
reserved as a numeric constant:

scipy/cluster/src/hierarchy.c:1082: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c:1082: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c:1086: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c:1091: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c:1091: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c:1095: error: subscripted value is
neither array nor pointer
scipy/cluster/src/hierarchy.c: At top level:

The attached patch (replace CS by CS_) allows scipy to compile on this platform



johnh@udesktop191:scipy> gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

johnh@udesktop191:scipy> python -V
Python 2.4.5
johnh@udesktop191:scipy> uname -a
SunOS udesktop191 5.10 Generic_137138-09 i86pc i386 i86pc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff.out
Type: application/octet-stream
Size: 4701 bytes
Desc: not available
Url : http://mail.scipy.org/pipermail/scipy-dev/attachments/20090925/14903179/attachment.obj 


More information about the Scipy-dev mailing list