thegooglecodearchive / healpy

Automatically exported from code.google.com/p/healpy
GNU General Public License v2.0
0 stars 0 forks source link

compilation error with python 2.4 #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Compiling healpy (any version) with python 2.4 produces the following error:

healpy/src/_healpy_pixel_lib.cc: In function 'void
init_healpy_pixel_lib()':
healpy/src/_healpy_pixel_lib.cc:140: error: invalid conversion from 'const
char*' to 'char*'
healpy/src/_healpy_pixel_lib.cc:140: error:   initializing argument 3 of
'PyObject* Py_InitModule4(char*, PyMethodDef*, char*, PyObject*, int)'

Original issue reported on code.google.com by cyrille....@gmail.com on 22 Jul 2009 at 8:51

GoogleCodeExporter commented 9 years ago
Workaround:

in the file healpy/src/_healpy_pixel_lib.cc

change the line (near line 40)

static const char *docstring =

to

static char *docstring =

Original comment by cyrille....@gmail.com on 22 Jul 2009 at 8:52

GoogleCodeExporter commented 9 years ago
The version 0.9.6.3 correct for this issue. Still needs to be propagated  to 
higher
versions.

Original comment by cyrille....@gmail.com on 22 Jul 2009 at 9:37

GoogleCodeExporter commented 9 years ago
Solved in version 0.9.6.3 and in trunk revision 77

Original comment by cyrille....@gmail.com on 11 Aug 2009 at 8:15