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

Helena Mitasova hmitaso at unity.ncsu.edu
Fri Feb 26 10:57:39 EST 2010


I am getting something like this when compiling GRASS65 on RedHat Linux,
but GRASS runs fine (at least the modules that I use),

Helena



On Feb 26, 2010, at 10:46 AM, Markus Neteler wrote:

> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev



More information about the grass-dev mailing list