<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Fengting,</p>
<p>I guess you can workaround the issue by adding a #include
"gdal_rat.h" at top of gdal_priv.h (shouldn't be required as
GDALExtendedDataType declares a destructor, so I guess your
compiler is more demanding than strictly needed)<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 22/07/2025 à 20:15, Fengting Chen
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:SJ5PPFCC3E08AE4824F5293DEB1DAC36E90935CA@SJ5PPFCC3E08AE4.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I got the
following error while trying to build gdal using “gcc (GCC)
8.5.0 20210514 (Red Hat 8.5.0-26.0.1)”:
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[ 0%]
Building CXX object
frmts/pdf/CMakeFiles/gdal_PDF_core.dir/
pdfdrivercore.cpp.o<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In file
included from /usr/include/c++/8/memory:80,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
from /scratch/gdal/gdal/port/cpl_error.h:372,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
from /scratch/gdal/gdal/gcore/gdal.h:30,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
from /scratch/gdal/gdal/gcore/gdal_priv.h:45,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.h:16,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.cpp:13:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/usr/include/c++/8/bits/unique_ptr.h:
In instantiation of ?~@~Xvoid std::
default_delete<_Tp>::operator()(_Tp*) const [with _Tp
= GDALRasterAttributeTable]?~@~Y:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/usr/include/c++/8/bits/unique_ptr.h:277:17:
required from ?~@~Xstd:: unique_ptr<_Tp,
_Dp>::~unique_ptr() [with _Tp = GDALRasterAttributeTable;
_Dp =
std::default_delete<GDALRasterAttributeTable>]?~@~Y<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/scratch/gdal/gdal/gcore/gdal_priv.h:3664:55:
required from here<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/usr/include/c++/8/bits/unique_ptr.h:79:16:
error: invalid application of ?~@~Xsizeof?~@~Y to
incomplete type ?~@~XGDALRasterAttributeTable?~@~Y<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
static_assert(sizeof(_Tp)>0,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">
^~~~~~~~~~~<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake[2]:
*** [frmts/pdf/CMakeFiles/gdal_PDF_core.dir/build.make:76:
frmts/pdf/ CMakeFiles/gdal_PDF_core.dir/pdfdrivercore.cpp.o]
Error 1<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake[1]:
*** [CMakeFiles/Makefile2:6099:
frmts/pdf/CMakeFiles/gdal_PDF_core. dir/all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake: ***
[Makefile:146: all] Error 2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any idea how
to fix this? <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-Fengting<o:p></o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>