[gdal-dev] Linking error when building Informix OGR driver

Jeremy Palmer palmerjnz at gmail.com
Tue Aug 25 05:16:33 PDT 2020


Thanks Mateusz.

I still get linking errors with that patch applied. However, the SDK
libraries are now in the linking tool arguments:

/bin/bash /home/informix/dev/gdal/gdal/libtool --mode=link --silent g++
 -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++ -lcrypt gdalinfo_bin.lo
 /home/informix/dev/gdal/gdal/libgdal.la  -o gdalinfo
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`mi_cleanup'
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`ifx_int8cvasc'
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`mi_typeid_is_distinct'
....
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`mi_lo_seek'
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`mi_typeid_is_constructor'
/opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
`_ifx_gl_mbsrchr'
collect2: error: ld returned 1 exit status
GNUmakefile:94: recipe for target 'gdalinfo' failed
make[1]: *** [gdalinfo] Error 1
make[1]: Leaving directory '/home/informix/dev/gdal/gdal/apps'
GNUmakefile:120: recipe for target 'apps-target' failed
make: *** [apps-target] Error 2


On Tue, Aug 25, 2020 at 9:10 PM Mateusz Loskot <mateusz at loskot.net> wrote:

> On Tue, 25 Aug 2020 at 12:58, Jeremy Palmer <palmerjnz at gmail.com> wrote:
> >
> > Then I run make which is ok until linking of app tools:
> >
> > /bin/bash /home/informix/dev/gdal/gdal/libtool --mode=link --silent g++
> gdalinfo_bin.lo  /home/informix/dev/gdal/gdal/libgdal.la  -o gdalinfo
> > /opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
> `mi_cleanup'
> > ... heaps of informix function references
> > /opt/IBM/Informix_Client-SDK/lib/c++/libifc++.so: undefined reference to
> `_ifx_gl_mbsrchr'
> > collect2: error: ld returned 1 exit status
> > GNUmakefile:90: recipe for target 'gdalinfo' failed
> > make[1]: *** [gdalinfo] Error 1
> > make[1]: Leaving directory '/home/informix/dev/gdal/gdal/apps'
> > GNUmakefile:120: recipe for target 'apps-target' failed
> > make: *** [apps-target] Error 2
>
> See this thread, and try the GitHub link at the bottom
> https://lists.osgeo.org/pipermail/gdal-dev/2017-September/047275.html
>
>
> Best regards,
> --
> Mateusz Loskot, http://mateusz.loskot.net
> _______________________________________________
> 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/gdal-dev/attachments/20200825/aae0e9f7/attachment-0001.html>


More information about the gdal-dev mailing list