[Gdal-dev] Re: [Geo-perl] NEW: gdal-1.4.1 errors

Ari Jolma ari.jolma at tkk.fi
Sat Jun 9 16:52:35 EDT 2007


I'm cc'ing this to the GDAL list since this may be of interest to GDAL 
developers.

Jamie,

This seems to come from the SWIG Python bindings. I myself usually don't 
enable the bindings in the configure but compile the Perl bindings 
separately after the main library is compiled (not enabling is AFAIK 
also the default) - thus I've not run into this problem. Could you try 
running configure without enabling the bindings and then cd swig/perl; 
perl Makefile.PL; make build; make test; make install

Regards,

Ari

Jamie Lahowetz kirjoitti:
> Well I'm trying to get libgdal to work by building gdal-1.4.1 from 
> source. configure seems to work but when I run make I get these errors:
> gdal_wrap.c:11620: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> gdal_wrap.c:11640: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '_gdalMethods'
> gdal_wrap.c:12052: error: expected '=', ',', ';', 'asm' or 
> '__attribute__' before '*' token
> gdal_wrap.c: In function 'init_gdal':
> gdal_wrap.c:12057: error: 'PyObject' undeclared (first use in this 
> function)
> gdal_wrap.c:12057: error: 'm' undeclared (first use in this function)
> gdal_wrap.c:12057: error: 'd' undeclared (first use in this function)
> gdal_wrap.c:12057: warning: left-hand operand of comma expression has 
> no effect
> gdal_wrap.c:12057: warning: statement with no effect
> gdal_wrap.c:12058: error: 'SWIG_globals' undeclared (first use in this 
> function)
> gdal_wrap.c:12058: warning: implicit declaration of function 
> 'SWIG_newvarlink'
> gdal_wrap.c:12059: warning: implicit declaration of function 
> 'Py_InitModule'
> gdal_wrap.c:12059: error: '_gdalMethods' undeclared (first use in this 
> function)
> gdal_wrap.c:12060: warning: implicit declaration of function 
> 'PyModule_GetDict'
> make[1]: *** [gdal_wrap.o] Error 1
> make[1]: Leaving directory `/home/deadpickle/Desktop/gdal-1.4.1/pymod'
> make: *** [py-module] Error 2
> What this means I dont know. Any ideas? as soon as I can get this 
> installed I can get Geo::GDAL installed.
> _______________________________________________
> Geo-perl mailing list
> Geo-perl at list.hut.fi
> https://list.hut.fi/mailman/listinfo/geo-perl
>   





More information about the Gdal-dev mailing list