[gdal-dev] Compiling GDAL 2.2.2 with Informix (IDB) driver on Ubuntu 16.04
We'd like to use GDAL in combination with the Informix (IDB) driver to
copy data from an Informix database.
After applying some changes regarding linking , we're able to compile
GDAL + IDB driver on Debian Stretch and Testing and on Ubuntu 14.04.
However, it doesn't work on Ubuntu 16.04, which happens to be what we're
using on our servers..
The error on Ubuntu 16.04 seems to be related to the IDB driver:
compiling GDAL without IDB works fine.
Re: Compiling GDAL 2.2.2 with Informix (IDB) driver on Ubuntu 16.04
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?
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!