<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>I was wondering if you could help with a problem I encountered
      when building GDAL with the Open Design Alliance Libraries (ODA
      >= 2021) on Linux.</p>
    <p>I've been trying to build GDAL with ODA version 2021.2 based on
      the changes made to build on Windows in the following <a
href="https://github.com/OSGeo/gdal/commit/44ce5be4c043eea2fb2bc719858fb62285a5cc03">commit</a>.<br>
    </p>
    <p>Following those changes I've edited the configure and dwg's
      GNUmakefile as seen in the attached diff. However I've run into a
      linking problem that I haven't been able to solve. Namely when
      building the 'gdalinfo' target I'm getting several 'undefined
      reference' errors with the built libgdal.so:</p>
    <p>...<br>
    </p>
    <p>/bin/bash /home/paulo/Dev/gdal/gdal/libtool --mode=link --silent
      g++  gdalinfo_bin.lo  /home/paulo/Dev/gdal/gdal/libgdal.la  -o
      gdalinfo<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgHostAppServices::program()'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `pcre_study'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgFontTable::getFont(unsigned int) const'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgDatabase::getNamedViewTable(OdDg::OpenMode) const'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgGraphicsElementPE::desc()'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgElement::elementId() const'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgArc2d::desc()'<br>
      /home/paulo/Dev/gdal/gdal/.libs/libgdal.so: undefined reference to
      `OdDgHostAppServices::getThumbnail(OdString const&,
      OdBinaryData&)'<br>
    </p>
    <p>...</p>
    <p>collect2: error: ld returned 1 exit status<br>
      GNUmakefile:90: recipe for target 'gdalinfo' failed<br>
      make[1]: *** [gdalinfo] Error 1<br>
    </p>
    <p><br>
    </p>
    <p>The configure command used for this build was the following:</p>
    <p>./configure --with-python=python3 --with-proj=/usr/local
      --with-pg=yes
      --with-teigha=/home/paulo/Dev/oda/21.2/Drawings_lnxX64_7.2dll
      --with-teigha-krl=/home/paulo/Dev/oda/21.2/Kernel_lnxX64_7.2dll
      --with-teigha-plt=lnxX64_7.2dll</p>
    <p>If you could give some insights about this problem it would be
      greatly appreciated.</p>
    Regards
  </body>
</html>