[Ubuntu] Fwd: [gdal-dev] Compiling GDAL 2.2.2 with Informix (IDB) driver on Ubuntu 16.04

Johan Van de Wauw johan.vandewauw at gmail.com
Fri Oct 6 00:24:15 PDT 2017


Forwarding this to ubuntugis as well:

We have a strange problem with compiling gdal with informix support:
compilation (well linking actually) goes well on debian testing and stretch
and on Ubuntu trusty, but fails on Xenial.
It also fails when we use older versions of gcc on trusty

Kind Regards,
Johan

---------- Forwarded message ----------
From: Roel Huybrechts <roel at huybrechts.re>
Date: Fri, Oct 6, 2017 at 9:12 AM
Subject: Re: [gdal-dev] Compiling GDAL 2.2.2 with Informix (IDB) driver on
Ubuntu 16.04
To: Even Rouault <even.rouault at spatialys.com>, gdal-dev at lists.osgeo.org


Hi Even,

Is /opt/informix/lib/c++ in the search path for shared librariies ? That
is: did you define LD_LIBRARY_PATH to point to it ? Or put it in
/etc/ld.so.conf and ran ldconfig afterwards ?


I didn't define LD_LIBRARY_PATH or put it in ld.so.conf, as I didn't have
to do it in my Debian Testing VM and it worked there without that. In the
output I see that the Informix folders and libraries are listed in the
arguments of g++, so I don't think the problem has to do with
LD_LIBRARY_PATH or ld.so.conf?

g++ -std=gnu++11 /opt/informix/lib/esql/checkapi.o .libs/gdalserver.o -o
.libs/gdalserver  -L/opt/informix/lib/ -L/opt/informix/lib/esql
-L/opt/informix/lib/dmi -L/opt/informix/lib/c++ -lcrypt
/home/roel/software/gdal_compile/gdal/.libs/libgdal.so -L/usr/lib
-L/usr/lib/x86_64-linux-gnu/hdf5/serial -ljson-c -lfreexl -lqhull -lgeos_c
-lwebp /usr/lib/x86_64-linux-gnu/libsqlite3.so -lodbc -lodbcinst -lkmlbase
-lkmldom -lkmlengine -lkmlxsd -lkmlregionator
/usr/lib/x86_64-linux-gnu/libexpat.so
-lxerces-c -lopenjp2 -lnetcdf -lhdf5_hl -lsz -lhdf5 /usr/lib/libmfhdfalt.so
/usr/lib/libdfalt.so -logdi -lgif -ljpeg -lgeotiff -ltiff -lpng -lpq -lz
-lpthread -lrt -ldl -lpcre /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so
-lxml2 -lifsql -lifasf -lifgen -lifos -lifgls -lifglx -lifdmi -lifc++
-pthread

To be sure, I added the Informix folders to /etc/ld.so.conf, but the result
is the same.

I then tried compiling with different versions of gcc/g++, also resulting
in the same error:
./configure CC=gcc-4.7 CXX=g++-4.7 --with-idb=/opt/informix
./configure CC=gcc-4.8 CXX=g++-4.8 --with-idb=/opt/informix

To add to the puzzle: compiling with gcc-5 on Debian Testing works, but
with gcc-5 on Ubuntu 16.04 doesn't.. Although the version is slightly
different: gcc-5 (Debian 5.4.1-14) 5.4.1 20171003 versus gcc-5 (Ubuntu
5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609.

Any hints on how to proceed with debugging would be very helpful. Thanks!

Kind regards,
Roel

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/ubuntu/attachments/20171006/66c2e7e5/attachment.html>


More information about the Ubuntu mailing list