|
From: Achim G. <Ach...@ph...> - 2006-09-17 21:24:45
|
While compiling matplotlib-0.87.5 with python-2.5 on debian testing some errors occured: gcc: src/agg.cxx cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)': src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*' src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)': src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*' cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ src/agg.cxx: In function 'int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)': src/agg.cxx:1231: error: invalid conversion from 'const char*' to 'char*' src/agg.cxx: In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, swig_type_info**, swig_type_info**)': src/agg.cxx:27624: error: invalid conversion from 'const char*' to 'char*' error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Iagg23/include -Isrc -Iswig -I/home/achim/local/include/python2.5 -c src/agg.cxx -o build/temp.linux-i686-2.5/src/agg.o" failed with exit status 1 similar errors occured in src/swig_runtime.h src/swig_runtime.h: In function 'int SWIG_Python_ConvertPtr(PyObject*, void**, swig_type_info*, int)': src/swig_runtime.h:1140: error: invalid conversion from 'const char*' to 'char*' a fix is attached. Achim |