[gdal-dev] problems building Perl swig

Kralidis,Tom [Ontario] Tom.Kralidis at ec.gc.ca
Thu Nov 13 07:46:54 EST 2008


> -----Original Message-----
> From: gdal-dev-bounces at lists.osgeo.org 
> [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of 
> Kralidis,Tom [Ontario]
> Sent: Monday, November 10, 2008 7:26 AM
> To: gdal-dev at lists.osgeo.org
> Subject: [gdal-dev] problems building Perl swig
> 
> 
> Using svn trunk on fc9:
> 
> $ ./configure --with-png --with-libtiff=internal 
> --with-geotiff=internal --with-jpeg --with-xerces 
> --with-geos=no --with-pg=/usr/bin/pg_config 
> --with-mysql=/usr/bin/mysql_config --with-sqlite 
> --with-curl=/usr/bin/curl-config --with-python --with-expat 
> --with-perl ...
> 
> 
> $ make
> ...
> 
> make[2]: Entering directory
> `/home/tkralidi/foss4g/gdal/trunk/gdal/swig/perl'
> perl Makefile.PL
> Building in GDAL distro tree
> GDAL version (1.6.0) and module version () do not match at 
> Makefile.PL line 50.
> make[2]: *** [Makefile_Geo__GDAL] Error 255
> make[2]: Leaving directory
> `/home/tkralidi/foss4g/gdal/trunk/gdal/swig/perl'
> make[1]: *** [build] Error 2
> make[1]: Leaving directory 
> `/home/tkralidi/foss4g/gdal/trunk/gdal/swig'
> make: *** [swig-modules] Error 2
> 
> When I omit --with-perl in ./configure, all builds and 
> installs without issue.
> 
> Any advice or suggestions are valued.
> 


Any update / comments here?

Looking deeper, in swig/perl/Makefile.PL, line 50:

    die "GDAL version ($gdal_version) and module version ($pm_version)
do not match"
        unless $gdal_version eq $pm_version;

- $gdal_version is picked up from CONFIG_VERSION="1.6.0" in
apps/gdal-config

- $pm_version is picked up from GDAL_VERSION in swig/perl/Makefile.PL,
which always fails because it's not in swig/perl/Makefile.PL (or at
least does not get generated into swig/perl/Makefile.PL)

..Tom




More information about the gdal-dev mailing list