[GRASS-dev] GRASS 6 swig compile error
Markus Neteler
neteler at osgeo.org
Fri May 29 03:02:38 EDT 2009
Hi,
after the recent update I can no longer compile the GRASS 6 SWIG interface
(one bug just fixed, now got this):
make
...
c++ -shared -o _grass.so
-L/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
-Wl,--no-undefined -Wl,--export-dynamic -L/usr/lib64
-Wl,-rpath-link,/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
-L/home/neteler/grass64/dist.x86_64-unknown-linux-gnu/lib
-lpthread -ldl -lutil -lm -lpython2.6
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o -lgrass_gis -lgrass_datetime
-lz
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_alloc_vector':
/home/neteler/grass64/swig/python/grass_wrap.c:26147: undefined
reference to `G_alloc_vector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_alloc_matrix':
/home/neteler/grass64/swig/python/grass_wrap.c:26178: undefined
reference to `G_alloc_matrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_alloc_fvector':
/home/neteler/grass64/swig/python/grass_wrap.c:26200: undefined
reference to `G_alloc_fvector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_alloc_fmatrix':
/home/neteler/grass64/swig/python/grass_wrap.c:26231: undefined
reference to `G_alloc_fmatrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_free_vector':
/home/neteler/grass64/swig/python/grass_wrap.c:26252: undefined
reference to `G_free_vector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_free_matrix':
/home/neteler/grass64/swig/python/grass_wrap.c:26273: undefined
reference to `G_free_matrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_free_fvector':
/home/neteler/grass64/swig/python/grass_wrap.c:26294: undefined
reference to `G_free_fvector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_free_fmatrix':
/home/neteler/grass64/swig/python/grass_wrap.c:26315: undefined
reference to `G_free_fmatrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_tqli':
/home/neteler/grass64/swig/python/grass_wrap.c:26817: undefined
reference to `G_tqli'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function
`_wrap_G_tred2':
/home/neteler/grass64/swig/python/grass_wrap.c:26865: undefined
reference to `G_tred2'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_alloc_ivector':
/home/neteler/grass64/swig/python/grass_wrap.c:31553: undefined
reference to `G_alloc_ivector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_alloc_imatrix':
/home/neteler/grass64/swig/python/grass_wrap.c:31584: undefined
reference to `G_alloc_imatrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_free_ivector':
/home/neteler/grass64/swig/python/grass_wrap.c:31605: undefined
reference to `G_free_ivector'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_free_imatrix':
/home/neteler/grass64/swig/python/grass_wrap.c:31626: undefined
reference to `G_free_imatrix'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_ludcmp':
/home/neteler/grass64/swig/python/grass_wrap.c:33659: undefined
reference to `G_ludcmp'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_lubksb':
/home/neteler/grass64/swig/python/grass_wrap.c:33707: undefined
reference to `G_lubksb'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_svdcmp':
/home/neteler/grass64/swig/python/grass_wrap.c:42439: undefined
reference to `G_svdcmp'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_svbksb':
/home/neteler/grass64/swig/python/grass_wrap.c:42515: undefined
reference to `G_svbksb'
OBJ.x86_64-unknown-linux-gnu/grass_wrap.o: In function `_wrap_G_svelim':
/home/neteler/grass64/swig/python/grass_wrap.c:42546: undefined
reference to `G_svelim'
collect2: ld returned 1 exit status
Apparently GMATHlib isn't found? (it is compiled)
Ah, or in 7 the headers are in
grass70/include/gmath.h
while in 6 they are in
grass6/include/gisdefs.h
Swig seems to get that wrong... need to move the declarations?
thanks
Markus
More information about the grass-dev
mailing list