Hi, using matplotlib-0.87.4
uname -a == "SunOS maples 5.9 Generic_112233-07 sun4u sparc SUNW,Sun-Fire-280R" gcc --version == "2.95.3" (have no control over this) python -V == "Python 2.4.3" (in $HOME/local/bin) I get some errors during "python setup.py build" (with all GUIs disabled in setup.py, but BUILD_IMAGE=1 and BUILD_AGG=1): > gcc: src/mplutils.cpp > src/mplutils.cpp: In method `Printf::Printf(const char *, ...)': > src/mplutils.cpp:17: implicit declaration of function `int vsprintf(...)' > src/mplutils.cpp: In method `Printf::Printf(const char *, ...)': > src/mplutils.cpp:17: implicit declaration of function `int vsprintf(...)' > error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > -Wstrict-prototypes -fPIC -Isrc -I. -I. > -I/export/home/medscan/local/include/python2.4 -c src/mplutils.cpp -o > build/temp.solaris-2.9-sun4u-2.4/src/mplutils.o -DNUMARRAY=1" failed with > exit status 1 When I fix this (by #include <cstdio>) it gets more errors about redefining _FILE_OFFSET_BITS: > running build > running build_py > running build_ext > building 'matplotlib._na_transforms' extension > gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes > -fPIC' > compile options: '-Isrc -I. -I. > -I/export/home/medscan/local/include/python2.4 -c' > extra options: '-DNUMARRAY=1' > gcc: src/mplutils.cpp > gcc: src/_na_transforms.cpp > src/_na_transforms.cpp:2: limits: No such file or directory > In file included from src/_na_transforms.cpp:5: > src/_transforms.h:10: limits: No such file or directory > In file included from /export/home/medscan/local/include/python2.4/Python.h:8, > from CXX/Objects.hxx:9, > from CXX/Extensions.hxx:19, > from src/_transforms.h:12, > from src/_na_transforms.cpp:5: > /export/home/medscan/local/include/python2.4/pyconfig.h:820: warning: > `_FILE_OFFSET_BITS' redefined > /usr/include/sys/feature_tests.h:96: warning: this is the location of the > previous definition > src/_na_transforms.cpp:2: limits: No such file or directory > In file included from src/_na_transforms.cpp:5: > src/_transforms.h:10: limits: No such file or directory > In file included from /export/home/medscan/local/include/python2.4/Python.h:8, > from CXX/Objects.hxx:9, > from CXX/Extensions.hxx:19, > from src/_transforms.h:12, > from src/_na_transforms.cpp:5: > /export/home/medscan/local/include/python2.4/pyconfig.h:820: warning: > `_FILE_OFFSET_BITS' redefined > /usr/include/sys/feature_tests.h:96: warning: this is the location of the > previous definition > error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > -Wstrict-prototypes -fPIC -Isrc -I. -I. > -I/export/home/medscan/local/include/python2.4 -c src/_na_transforms.cpp -o > build/temp.solaris-2.9-sun4u-2.4/src/_na_transforms.o -DNUMARRAY=1" failed > with exit status 1 Please help, I've already written code using matplotlib under windows and don't want to rewrite it for the move to Solaris. Thank you, Jett P.S. while Windows version works fine, compiling under cygwin yields problems like being unable to import the _agg DLL (and twiddling permissions doesn't help) - ideas? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users