[SAC] upgrade of AdhocVM OS

Hamish hamish_b at yahoo.com
Thu Mar 10 16:22:10 PST 2016


Martin wrote:

> Upgrade over, please test and report,



Hi Martin, thanks for the effort.


some trouble with GDAL 1.9.0.


conftest.c 
------------------------------------
#include <gdal.h>

int main() {
    GDALOpen("foo", GA_ReadOnly);
    return 0;
}

------------------------------------

$ gcc -o conftest -Wall -Werror-implicit-function-declaration  -I/usr/include/gdal   -Wl,--export-dynamic conftest.c  -L/usr/lib -lgdal -larmadillo -lproj -lpoppler -lfreexl -L/usr/lib -lgeos_c -L/usr/lib -lepsilon -lodbc -lodbcinst -lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 -L/usr/lib/x86_64-linux-gnu -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl 
conftest.c: In function ‘main’:
conftest.c:5:11: warning: ignoring return value of ‘GDALOpen’, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: cannot find -larmadillo
/usr/bin/ld: cannot find -lpoppler
/usr/bin/ld: cannot find -lfreexl
/usr/bin/ld: cannot find -lepsilon
/usr/bin/ld: cannot find -lkmlengine
/usr/bin/ld: cannot find -lkmldom
/usr/bin/ld: cannot find -lkmlbase
/usr/bin/ld: cannot find -lkmlconvenience
/usr/bin/ld: cannot find -lminizip
/usr/bin/ld: cannot find -luriparser
collect2: error: ld returned 1 exit status



$ gdal-config --dep-libs
-larmadillo -lproj -lpoppler -lfreexl -L/usr/lib -lgeos_c -L/usr/lib -lepsilon -lodbc -lodbcinst -lkmlengine -lkmldom -lkmlbase -lkmlconvenience -lminizip -luriparser -lexpat -lxerces-c -lpthread -ljasper -lnetcdf -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -ljpeg -lpng -L/usr/lib -lpq -llzma -lz -lpthread -lm -lrt -ldl -ldapclient -ldapserver -ldap -L/usr/lib -lspatialite -lsqlite3 -L/usr/lib/x86_64-linux-gnu -lcurl -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lm -lrt -ldl



$ dpkg -S gdal-config
libgdal-dev: /usr/bin/gdal-config




There was also a problem with linking against GEOS too,
/usr/lib/libgdal.so: undefined reference to `GEOSGeom_getCoordinateDimension'
collect2: error: ld returned 1 exit status


[see the end of /osgeo/grass/src/grass-6.4.5/config.log]


I tried uninstalling the old orphaned libgeos-3.2.0 package from squeeze, but that didn't help.

I can put it back if anyone depends on it.


?


cheers,
Hamish


More information about the Sac mailing list