From: Wasinee R. <was...@gm...> - 2004-10-05 16:30:47
|
Hi, I am having a problem getting the image extension to compile due to an obscure problem I cannot understand because other extensions have been compiled properly. The error is that a variable is not declared which is strange: src/_na_image.cpp:780: `png_infopp_NULL' undeclared (first use this function) We are using gcc 2.95.3 and this is matplotlib-0.63.4. See below for the output of the whole setup session. Our Linux setup environment is not standard, so I am not sure if this is specific problem with our setup for png or is is really a bug? I would appreciate any help I can get. Regard, - WR ------------------------------------------------------------------------------------------- rungsari@levy:/scratch/local/matplotlib-0.63.4> python2.3 setup.py build Compiling matplotlib for: both GTKAgg requires pygtk running build running build_py running build_ext building 'matplotlib._na_image' extension gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -g -fPIC -Isrc -Iagg22/include -I. -I/usr/local/include -I/usr/include -I/package/python/2.3.0/linux/include/python2.3 -c src/_na_image.cpp -o build/temp.linux-i686-2.3/src/_na_image.o -DNUMARRAY=1 In file included from /package/python/2.3.0/linux/include/python2.3/Python.h:8, from src/_na_image.cpp:6: /package/python/2.3.0/linux/include/python2.3/pyconfig.h:844: warning: `_POSIX_C_SOURCE' redefined /usr/local/include/features.h:171: warning: this is the location of the previous definition src/_na_image.cpp: In method `class Py::Object _image_module::readpng(const Py::Tuple &)': src/_na_image.cpp:780: `png_infopp_NULL' undeclared (first use this function) src/_na_image.cpp:780: (Each undeclared identifier is reported only once src/_na_image.cpp:780: for each function it appears in.) |