[DebianGIS-dev] Bug#466785: gdal: FTBFS with Perl 5.10 (SWIG and C++)

Niko Tyni ntyni at debian.org
Wed Feb 20 22:38:07 UTC 2008

Package: gdal
Version: 1.5.0-3
Severity: important
User: debian-perl at lists.debian.org
Usertags: perl-5.10-transition

Your package is failing to build with Perl 5.10 (currently in experimental).
This is a known issue with SWIG bindings and C++; see




for a suggested fix.

Excerpt from the build log:

make[4]: Entering directory `/build/niko/gdal-1.5.0/swig/perl'
cp lib/Geo/GDAL/Const.pm blib/lib/Geo/GDAL/Const.pm
cp lib/Geo/GDAL.dox blib/lib/Geo/GDAL.dox
cp lib/Geo/GDAL/Const.dox blib/lib/Geo/GDAL/Const.dox
cp lib/Geo/OGR.pm blib/lib/Geo/OGR.pm
cp lib/Geo/GDAL.pm blib/lib/Geo/GDAL.pm
cp lib/Geo/OSR.dox blib/lib/Geo/OSR.dox
cp lib/Geo/OGR.dox blib/lib/Geo/OGR.dox
cp lib/Geo/OSR.pm blib/lib/Geo/OSR.pm
cc -c  -I../../gcore -I../../alg -I../../ogr -I../../port -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.21\" -DXS_VERSION=\"0.21\" -fPIC "-I/usr/lib/perl/5.10/CORE"   gdal_wrap.cpp
gdal_wrap.cpp:1232: error: expected unqualified-id before string constant
gdal_wrap.cpp:1233: error: expected initializer before '*' token
gdal_wrap.cpp:1238: error: 'SwigPerlWrapperPtr' does not name a type
gdal_wrap.cpp:15361: error: too many initializers for 'swig_command_info'
gdal_wrap.cpp:15361: error: too many initializers for 'swig_command_info'
gdal_wrap.cpp: In function 'void boot_Geo__GDAL(PerlInterpreter*, CV*)':
gdal_wrap.cpp:15604: error: 'struct swig_command_info' has no member named 'wrapper'
make[4]: *** [gdal_wrap.o] Error 1
make[4]: Leaving directory `/build/niko/gdal-1.5.0/swig/perl'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/build/niko/gdal-1.5.0/swig/perl'
make[2]: *** [build] Error 2
make[2]: Leaving directory `/build/niko/gdal-1.5.0/swig'
make[1]: *** [swig-modules] Error 2
make[1]: Leaving directory `/build/niko/gdal-1.5.0'
make: *** [build-stamp] Error 2

Niko Tyni   ntyni at debian.org

More information about the Pkg-grass-devel mailing list