[gdal-dev] Java bindings RuntimeException

Even Rouault even.rouault at mines-paris.org
Sun Jul 26 13:02:37 EDT 2009


Sascha,

I guess you are compiling with GCC ? If so, it appears that I accidently 
removed some weeks ago a very important compilation flag that I added a few 
months ago, namely -fno-strict-aliasing, that is necessary when compiling 
with -O2. It appears that SWIG generates not-so-correct code in regards to 
the C standard in the upcast methods (  *(foo**)&a = *(bar**)&b ) that the 
compiler can happily completely remove ! 

See http://trac.osgeo.org/gdal/changeset/16006 for the revision where it was 
introduced and http://trac.osgeo.org/gdal/changeset/17456 where it has come 
back.

Thanks for reporting this !

Best regards,
Even


More information about the gdal-dev mailing list