<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">It doesn’t work for me. I got error in gdal_rat.h for looking for type defined in gdal_priv.h.
<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 /scratch/gdal/gdal/gcore/gdal_priv.h:47,<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">/scratch/gdal/gdal/gcore/gdal_rat.h:272:51: error: ?~@~XGDALColorTable?~@~Y does not name a type; did you mean ?~@~XGDALColorTableH?~@~Y?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> virtual CPLErr InitializeFromColorTable(const GDALColorTable *);<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"> GDALColorTableH<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">-Fengting<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Even Rouault <even.rouault@spatialys.com><br>
<b>Date: </b>Tuesday, July 22, 2025 at 3:33</span><span style="font-family:"Arial",sans-serif;color:black"> </span><span style="color:black">PM<br>
<b>To: </b>Fengting Chen <fengting.chen@oracle.com>, gdal dev <gdal-dev@lists.osgeo.org><br>
<b>Subject: </b>[External] : Re: [gdal-dev] Error on building from master branch on linux<o:p></o:p></span></p>
</div>
<p>Fengting,<o:p></o:p></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)<o:p></o:p></p>
<p>Even<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 22/07/2025 à 20:15, Fengting Chen via gdal-dev a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi, </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></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)”:
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">[ 0%] Building CXX object frmts/pdf/CMakeFiles/gdal_PDF_core.dir/ pdfdrivercore.cpp.o</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In file included from /usr/include/c++/8/memory:80,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/port/cpl_error.h:372,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/gcore/gdal.h:30,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/gcore/gdal_priv.h:45,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.h:16,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from /scratch/gdal/gdal/frmts/pdf/pdfdrivercore.cpp:13:</span><o:p></o:p></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:</span><o:p></o:p></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</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/scratch/gdal/gdal/gcore/gdal_priv.h:3664:55: required from here</span><o:p></o:p></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</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> static_assert(sizeof(_Tp)>0,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> ^~~~~~~~~~~</span><o:p></o:p></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</span><o:p></o:p></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</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gmake: *** [Makefile:146: all] Error 2</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any idea how to fix this? </span>
<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-Fengting</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__https:/lists.osgeo.org/mailman/listinfo/gdal-dev__;!!ACWV5N9M2RV99hQ!JGfpKPUg6eOXwOKEAFWSuQs31iI5ndeQvAfKRvXm2e_wb77Lm3oMBqWdlfsZNQMRfTQWdNVVdo8sfD6qXQVa22yZjcRH$">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__http:/www.spatialys.com__;!!ACWV5N9M2RV99hQ!JGfpKPUg6eOXwOKEAFWSuQs31iI5ndeQvAfKRvXm2e_wb77Lm3oMBqWdlfsZNQMRfTQWdNVVdo8sfD6qXQVa28qPEEP7$">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</div>
</div>
</div>
</body>
</html>