Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257417 - sci-libs/gdal-1.5.3 and dev-db/oracle-instantclient-basic-11.1.0.7.0: cannot find -lnnz10
Summary: sci-libs/gdal-1.5.3 and dev-db/oracle-instantclient-basic-11.1.0.7.0: cannot ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sci-geo Project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2009-02-02 17:53 UTC by Martin von Gagern
Modified: 2010-10-04 14:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Autodetect library version number (bug257417a.patch,1.39 KB, patch)
2009-02-02 18:00 UTC, Martin von Gagern
Details | Diff
it does not compile build.log (build.log,407.49 KB, text/plain)
2009-04-16 19:06 UTC, renato gallo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2009-02-02 17:53:34 UTC
gdal won't compile against oracle instantclient version 11, as the library name nnz10 is hardcoded into the configure script.

Upstream trunk has a patch to the corresponding autoconf macro:
http://trac.osgeo.org/gdal/changeset/15794

The original author of that module doesn't seem to have this fix yet:
http://mloskot.devjavu.com/browser/autotools/macros/ax_lib_oracle_oci.m4

Error message:
i686-pc-linux-gnu-g++ -shared  -Wl,-soname,libgdal.so.1 /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/frmts/o/*.o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/gcore/*.o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/port/*.o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/alg/*.o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr/ogrsf_frmts/o/*.o ./ogr/ogrgeometryfactory.o ./ogr/ogrpoint.o ./ogr/ogrcurve.o ./ogr/ogrlinestring.o ./ogr/ogrlinearring.o ./ogr/ogrpolygon.o ./ogr/ogrutils.o ./ogr/ogrgeometry.o ./ogr/ogrgeometrycollection.o ./ogr/ogrmultipolygon.o ./ogr/ogrsurface.o ./ogr/ogrmultipoint.o ./ogr/ogrmultilinestring.o ./ogr/ogr_api.o ./ogr/ogrfeature.o ./ogr/ogrfeaturedefn.o ./ogr/ogrfeaturequery.o ./ogr/ogrfeaturestyle.o ./ogr/ogrfielddefn.o ./ogr/ogrspatialreference.o ./ogr/ogr_srsnode.o ./ogr/ogr_srs_proj4.o ./ogr/ogr_fromepsg.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_srs_esri.o ./ogr/ogr_srs_pci.o ./ogr/ogr_srs_usgs.o ./ogr/ogr_srs_dict.o ./ogr/ogr_srs_panorama.o ./ogr/ogr_srs_erm.o ./ogr/swq.o ./ogr/ogr_srs_validate.o ./ogr/ogr_srs_xml.o ./ogr/ograssemblepolygon.o ./ogr/ogr2gmlgeometry.o ./ogr/gml2ogrgeometry.o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/libgdal.a   -Wl,-O1  -I/usr/include -lsqlite3 -L/usr/lib/oracle/11.1.0.7.0/client/lib -lclntsh -lnnz10 -L/usr/grass63/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/lib/postgresql-8.3/lib -lpq -lz -lpthread -lm -lrt -ldl    -lcurl -lidn -lldap -lrt -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lcom_err -L/usr/lib -lcrypto -lasn1 -lwind -lroken -lcrypt -ldl -lresolv -lpthread -L/usr/lib -lgssapi -lheimntlm -lkrb5 -lcom_err -L/usr/lib -lcrypto -lasn1 -lwind -lroken -lcrypt -ldl -lresolv -lpthread -lz -L/usr/lib -lgnutls -L/usr/lib -ltasn1 -lgcrypt -lgpg-error -Wl,-O1 -rdynamic -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto \
                -o /var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/libgdal.so
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnnz10
collect2: ld returned 1 exit status
make[1]: *** [/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/libgdal.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3'
make: *** [check-lib] Error 2
 *
 * ERROR: sci-libs/gdal-1.5.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3255:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *  The die message:
 *   emake failed
Comment 1 Martin von Gagern 2009-02-02 18:00:03 UTC
Created attachment 180727 [details, diff]
Autodetect library version number

http://trac.osgeo.org/gdal/changeset/15794 applied to configure as well.
Comment 2 Martin von Gagern 2009-04-05 17:53:21 UTC
The upstream source of the autoconf module applied this patch today as well:
http://mloskot.devjavu.com/ticket/18#comment:2
Comment 3 renato gallo 2009-04-16 19:06:27 UTC
Created attachment 188600 [details]
it does not compile build.log
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2010-10-04 14:50:55 UTC
Stable gdal already have this patch.