[gdal-dev] Build issues in Linux, gnu GCC 8.5.0

Ivan Lucena ivan.lucena at outlook.com
Fri Nov 14 10:34:01 PST 2025


Hi folks,

I build GDAL 3.12 in Linux using GCC 8.5 and got 3 instance of "unique_ptr of a forward-declared class".

It wasn't a big problem to solve, as you can see in the "git diff" report below.

I am not sure but it seems like that issue should be resolved by updating the compile too.

Anyway, for folks that might have that same problem, all I had to do is to add the following "#include" statements.

It should be harmless. Everything seems to be working fine.

Best regards,
Ivan

$ git diff
diff --git a/apps/gdalalg_vector_pipeline.h b/apps/gdalalg_vector_pipeline.h
index 87ed7c045c..ed44fdb513 100644
--- a/apps/gdalalg_vector_pipeline.h
+++ b/apps/gdalalg_vector_pipeline.h
@@ -22,6 +22,8 @@
 #include <map>
 #include <vector>

+#include "memdataset.h"
+
 //! @cond Doxygen_Suppress

 /************************************************************************/
diff --git a/frmts/vrt/vrtdataset.h b/frmts/vrt/vrtdataset.h
index bcc4d30790..677b23d398 100644
--- a/frmts/vrt/vrtdataset.h
+++ b/frmts/vrt/vrtdataset.h
@@ -24,6 +24,8 @@
 #include "gdal_vrt.h"
 #include "gdal_rat.h"

+#include "gdalpansharpen.h"
+
 #include <atomic>
 #include <deque>
 #include <functional>
diff --git a/gcore/gdal_multidim.h b/gcore/gdal_multidim.h
index 8c5d9f9037..7c45a76f41 100644
--- a/gcore/gdal_multidim.h
+++ b/gcore/gdal_multidim.h
@@ -25,6 +25,8 @@
 #include <memory>
 #include <vector>

+#include "gdal_rat.h"
+
 /* ******************************************************************** */
 /*                       Multidimensional array API                     */
 /* ******************************************************************** */

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251114/18807863/attachment-0001.htm>


More information about the gdal-dev mailing list