[GRASS-dev] swig python compilation error in utils_wrap.c

Markus Neteler neteler at osgeo.org
Fri Feb 26 10:46:45 EST 2010


Hi,

I have been downloading the latest GRASS 6.4 svn snapshot and tried to
compile it
on Mandriva 2010.0/64bit as RPM packages from their SPEC file. All except for
this one compiles:

make[1]: Entering directory
`/root/rpmbuild/BUILD/grass-6.4.0RC6pre/swig/python'
c++ -shared -o _utils.so
-L/root/rpmbuild/BUILD/grass-6.4.0RC6pre/dist.x86_64-mandriva-linux-gnu/lib
-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,--export-dynamic
-Wl,-rpath-link,/root/rpmbuild/BUILD/grass-6.4.0RC6pre/dist.x86_64-mandriva-linux-gnu/lib
     -L/root/rpmbuild/BUILD/grass-6.4.0RC6pre/dist.x86_64-mandriva-linux-gnu/lib
-ldl -lpthread -lpthread -lpthread -lpthread -lutil -lm -lpython2.6
OBJ.x86_64-mandriva-linux-gnu/utils_wrap.o
OBJ.x86_64-mandriva-linux-gnu/utils_wrap.o: In function
`SWIG_Python_ErrorType':
/root/rpmbuild/BUILD/grass-6.4.0RC6pre/swig/python/utils_wrap.c:919:
undefined reference to `PyExc_RuntimeError'
/root/rpmbuild/BUILD/grass-6.4.0RC6pre/swig/python/utils_wrap.c:892:
undefined reference to `PyExc_RuntimeError'
/root/rpmbuild/BUILD/grass-6.4.0RC6pre/swig/python/utils_wrap.c:889:
undefined reference to `PyExc_IOError'
...

Any ideas? Is a change in swig/include/python/utils.i needed?

thanks
Markus


More information about the grass-dev mailing list