<div dir="ltr"><div>Forwarding this to ubuntugis as well:</div><div><br></div><div>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.</div><div>It also fails when we use older versions of gcc on trusty<br></div><div><br></div><div>Kind Regards,</div><div>Johan<br></div><div><br></div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Roel Huybrechts</b> <span dir="ltr"><<a href="mailto:roel@huybrechts.re">roel@huybrechts.re</a>></span><br>Date: Fri, Oct 6, 2017 at 9:12 AM<br>Subject: Re: [gdal-dev] Compiling GDAL 2.2.2 with Informix (IDB) driver on Ubuntu 16.04<br>To: Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>, <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br><br><br><u></u>




<div><div>Hi Even,<br></div><span class="">
<div><br></div>
<blockquote type="cite"><p style="margin:0px;text-indent:0px;white-space:pre-wrap">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 ?<br></p></blockquote><div><br></div>
</span><div>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?<br></div>
<div><br></div>
<div>g++ -std=gnu++11 /opt/informix/lib/esql/<wbr>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_<wbr>compile/gdal/.libs/libgdal.so -L/usr/lib -L/usr/lib/x86_64-linux-gnu/<wbr>hdf5/serial -ljson-c -lfreexl -lqhull -lgeos_c -lwebp /usr/lib/x86_64-linux-gnu/<wbr>libsqlite3.so -lodbc -lodbcinst -lkmlbase -lkmldom -lkmlengine -lkmlxsd -lkmlregionator /usr/lib/x86_64-linux-gnu/<wbr>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/<wbr>libcurl-gnutls.so -lxml2 -lifsql -lifasf -lifgen -lifos -lifgls -lifglx -lifdmi -lifc++ -pthread<br></div>
<div><br></div>
<div>To be sure, I added the Informix folders to /etc/ld.so.conf, but the result is the same.<br></div>
<div><br></div>
<div>I then tried compiling with different versions of gcc/g++, also resulting in the same error:<br></div>
<div>./configure CC=gcc-4.7 CXX=g++-4.7 --with-idb=/opt/informix<br></div>
<div>./configure CC=gcc-4.8 CXX=g++-4.8 --with-idb=/opt/informix<br></div>
<div><br></div>
<div>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.<br></div>
<div><br></div>
<div>Any hints on how to proceed with debugging would be very helpful. Thanks!<br></div>
<div><br></div>
<div>Kind regards,<br></div>
<div>Roel<br></div>
</div>

<br>______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a><br></div><br></div>