On Wednesday, March 14, 2012 1:00:37 PM UTC-7, Charlie Sharpsteen wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div>  - 2.0.0beta2 can compile against the dependencies supplied for PostGIS 1.5.x via `apt-get build-dep postgis` with the addition of GDAL 1.7.0 via `apt-get install libgdal1-dev`. However, 2.0.0beta3, released today, and the current SVN head fail during configure:<br></div><div><br></div><div><br></div><div><div>RASTER: Raster support requested</div><div>checking for GDAL >= 1.6.0... found</div><div>checking gdal.h usability... yes</div><div>checking gdal.h presence... yes</div><div>checking for gdal.h... yes</div><div>checking ogr_api.h usability... yes</div><div>checking ogr_api.h presence... yes</div><div>checking for ogr_api.h... yes</div><div>checking cpl_conv.h usability... yes</div><div>checking cpl_conv.h presence... yes</div><div>checking for cpl_conv.h... yes</div><div>checking for GDALAllRegister in -lgdal... no</div><div>configure: error: could not find gdal</div></div><div><br></div><div><br></div><div>This is odd, because running nm against the libraries shows that the symbol is there:</div><div><br></div><div><div>vagrant@vagrant-64:~/postgis-<wbr>2.0.0beta3$ nm --dynamic /usr/lib/<a href="http://libgdal1.7.0.so" target="_blank">libgdal1.7.0.so</a> | grep GDALAllRegister</div><div>000000000021a820 T GDALAllRegister</div></div><div><br></div><div><br></div><div>Don't know if this is a bug in the latest beta, or a problem with Ubuntu's GDAL 1.7.0 libraries. Any advice would be appreciated.</div><div><br></div><div><br></div><div>-Charlie</div></blockquote><div><br></div><div>Found the problem in config.log:</div><div><br></div><div><br></div><div>    configure:19617: gcc -o conftest  -I/usr/include/gdal  conftest.c -lgdal  -L/usr/lib -lgdal1.7.0 >&5</div><div>    /usr/bin/ld: cannot find -lgdal</div><div><br></div><div><br></div><div>The configure script is trying to link against both libgdal and libgdal1.7.0, but libgdal.so does not exist, only libgdal1.7.0.so. According to config.log, this has been identified and stored in LIBGDAL_LDFLAGS:</div><div><br></div><div><br></div><div>    LIBGDAL_LDFLAGS='-L/usr/lib -lgdal1.7.0'<br></div><br><br><div>But the test scripts are still trying to pass `-lgdal`. Looks like a bug in the PostGIS configure script.</div><div><br></div><div><br></div><div>-Charlie</div>