<div dir="ltr">Hi All,<div><br></div><div>I'm getting linking issues trying to build the Informix driver. </div><div><br></div><div>I've installed the informix SDK and added the following libraries to /etc/ld.so.conf.d/informix-client-sdk.conf and then run sudo ldconfig:</div><div><br></div><div>/opt/IBM/Informix_Client-SDK/lib<br>/opt/IBM/Informix_Client-SDK/lib/dmi<br>/opt/IBM/Informix_Client-SDK/lib/esql<br>/opt/IBM/Informix_Client-SDK/lib/c++<br></div><div><br></div><div>Then configured GDAL:</div><div><br></div><div>./configure \<br>    --with-hide-internal-symbols=yes \<br>    --with-libtiff=internal \<br>    --with-geotiff=internal \<br>    --with-rename-internal-libtiff-symbols=yes \<br>    --with-rename-internal-libgeotiff-symbols=yes \<br>    --with-threads \<br>    --with-jpeg12  \<br>    --with-webp \<br>    --with-armadillo=yes \<br>    --with-cfitsio=no \<br>    --with-charls \<br>    --with-curl \<br>    --with-ecw=no \<br>    --with-epsilon=/usr \<br>    --with-freexl=yes \<br>    --with-geos \<br>    --with-geotiff=yes \<br>    --with-grass=no \<br>    --with-libkml=yes \<br>    --with-liblzma=yes \<br>    --with-libtiff=internal \<br>    --with-mrsid=no \<br>    --with-mysql \<br>    --with-netcdf \<br>    --with-odbc \<br>    --with-ogdi \<br>    --with-openjpeg=yes \<br>    --with-pg \<br>    --with-poppler=yes \<br>    --with-sosi=yes \<br>    --with-spatialite=/usr \<br>    --with-sqlite3 \<br>    --with-xerces \<br>    --with-zstd \<br>    --with-dods-root=/usr \<br>    --with-proj \<br>    --with-python=python3.6 \<br>    --with-idb=/opt/ifx/informix<br></div><div><br></div><div>Then I run make which is ok until linking of app tools:</div><div><br></div><div>/bin/bash /home/informix/dev/gdal/gdal/libtool --mode=link --silent g++  gdalinfo_bin.lo  /home/informix/dev/gdal/gdal/<a href="http://libgdal.la">libgdal.la</a>  -o gdalinfo<br>/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to `mi_cleanup'<br>... heaps of informix function references<br>/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to `_ifx_gl_mbsrchr'<br>collect2: error: ld returned 1 exit status<br>GNUmakefile:90: recipe for target 'gdalinfo' failed<br>make[1]: *** [gdalinfo] Error 1<br>make[1]: Leaving directory '/home/informix/dev/gdal/gdal/apps'<br>GNUmakefile:120: recipe for target 'apps-target' failed<br>make: *** [apps-target] Error 2<br></div><div><br></div><div>The creation of the main gdal library seems to include the correct informix SDK library link options:</div><div><br></div><div>/bin/bash /home/informix/dev/gdal/gdal/libtool --mode=link --silent g++   -lIlmImf -lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread -lcryptopp -larmadillo -lpoppler -lfreexl -lgeos_c -lwebp -L/usr/lib -lepsilon -lodbc -lodbcinst -lkmlbase -lkmldom -lkmlengine -lkmlxsd -lkmlregionator -lexpat -lxerces-c -lpthread -lopenjp2 -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lnetcdf -lhdf5_hl -lhdf5 -lpthread -lsz -lz -ldl -lm -lcurl -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5 -lmfhdfalt -ldfalt -logdi -lgif -lCharLS -ljpeg -lpng -lpq -lzstd -llzma  -lsqlite3 -lproj   -lsqlite3 -lz -lpthread -lm -lrt -ldl  -L/usr/lib -lspatialite -ldapclient -ldapserver -ldap -lpcre   -lcurl       -lfyba -lfygm -lfyut     -lxml2     -lmysqlclient -lpthread -lz -lm -lrt -latomic -lssl -lcrypto -ldl  -L/opt/IBM/Informix_Client-SDK/lib/ -L/opt/IBM/Informix_Client-SDK/lib/esql -lifsql -lifasf -lifgen -lifos -lifgls -lifglx /opt/IBM/Informix_Client-SDK/lib/esql/checkapi.o -L/opt/IBM/Informix_Client-SDK/lib/dmi -lifdmi -L/opt/IBM/Informix_Client-SDK/lib/c++ -lifc++ -o <a href="http://libgdal.la">libgdal.la</a> \<br></div><div><br></div><div>I've checked all the references and they are located with the /opt/IBM/Informix_Client-SDK libraries. e.g:</div><div><br></div><div>find /opt/IBM/Informix_Client-SDK/ -name '*.so*' -exec nm --print-file-name --defined-only --dynamic {} \; | grep _ifx_gl_mbsrchr<br>/opt/IBM/Informix_Client-SDK/lib/esql/libifgls.so:0000000000028208 T _ifx_gl_mbsrchr<br>/opt/IBM/Informix_Client-SDK/lib/esql/igl4a304.so:0000000000028208 T _ifx_gl_mbsrchr<br>/opt/IBM/Informix_Client-SDK/lib/esql/libixgls.so:0000000000028208 T _ifx_gl_mbsrchr<br></div><div><br></div><div>I'm compiling with:</div><div>* Ubuntu 18.04</div><div>* GDAL master</div><div>* IBM Informix Client-SDK 4.50.FC4W1 (<a href="https://iwm.dhe.ibm.com/sdfdl/2v2/regs2/mstadm/informix/Xa.2/Xb.YBTN_DlRQlu95txYUUjNOjNrRzaQlAW03TtXUaXSBO8/Xc.ibm.csdk.4.50.FC4W1.LNX.tar/Xd./Xf.LPr.D1vk/Xg.10862767/Xi.ifxdl/XY.regsrvs/XZ.kFM8MiB-VbL9cNlfSPfj_mkY-YI/ibm.csdk.4.50.FC4W1.LNX.tar">https://iwm.dhe.ibm.com/sdfdl/2v2/regs2/mstadm/informix/Xa.2/Xb.YBTN_DlRQlu95txYUUjNOjNrRzaQlAW03TtXUaXSBO8/Xc.ibm.csdk.4.50.FC4W1.LNX.tar/Xd./Xf.LPr.D1vk/Xg.10862767/Xi.ifxdl/XY.regsrvs/XZ.kFM8MiB-VbL9cNlfSPfj_mkY-YI/ibm.csdk.4.50.FC4W1.LNX.tar</a>)<br></div><div><br></div><div>Any help would be much appreciated. </div><div><br></div><div>Cheers</div><div>Jeremy</div><div><br></div><div><br></div></div>