[gdal-dev] Compiling GDAL 2.2.2 with Informix (IDB) driver on Ubuntu 16.04
Roel Huybrechts
roel at huybrechts.re
Fri Oct 6 00:12:29 PDT 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171006/3ed9f429/attachment-0001.html>
More information about the gdal-dev
mailing list