<div dir="ltr"><br><div>Perhaps I'm missing something, but I'm seeing no throw specifications on my 2.1 source.  I'm guessing you're finding header files from a version that is different from the version you're trying to compile.  I'd search your system for "cpl_string.h" and compare with the include directories used during compilation.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 5, 2019 at 6:30 AM Jorge Martin <<a href="mailto:jormarfe@gmail.com">jormarfe@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <div><br></div><div><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(31,78,121)">Trying to compile gdal 2.1.1 we are getting the following error:</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(31,78,121)"> </span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">./configure
--with-libtiff=/opt/cots/tiff-4.0.0 --with-geotiff=/opt/cots/geotiff-1.4.0
--prefix=/opt/cots/gdal_v2</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">make</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(31,78,121)"> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">(cd port; make)</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">make[1]: Entering directory
`/data2/mvit/gdal-2.1.1/port'</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">…….</span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp: In function 'int
CPLVASPrintf(char**, const char*, __va_list_tag*)':</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp:1034: error: declaration
of 'int CPLVASPrintf(char**, const char*, __va_list_tag*)' throws different
exceptions</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.h:215: error: from previous
declaration 'int CPLVASPrintf(char**, const char*, __va_list_tag*) throw ()'</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp: In function 'int
CPLvsnprintf(char*, size_t, const char*, __va_list_tag*)':</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp:1124: error: declaration
of 'int CPLvsnprintf(char*, size_t, const char*, __va_list_tag*)' throws
different exceptions</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.h:195: error: from previous
declaration 'int CPLvsnprintf(char*, size_t, const char*, __va_list_tag*) throw
()'</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp: In function 'int
CPLsnprintf(char*, size_t, const char*, ...)':</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.cpp:1305: error: declaration
of 'int CPLsnprintf(char*, size_t, const char*, ...)' throws different
exceptions</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)">cpl_string.h:197: error: from previous
declaration 'int CPLsnprintf(char*, size_t, const char*, ...) throw ()'</span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:9pt;font-family:Consolas;color:rgb(31,78,121)"> </span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(31,78,121)">our system is Red Hat Enterprise Linux Server release 5.1 (Tikanga) and
we have installed previous version of gdal in the machine. </span><span lang="EN-US"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US"> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="color:rgb(31,78,121)">We also have tried to install other versions such as 2.2.1, 2.2.2 and
2.2.3 and we got the same error. The vesion that we have installed is 1.8.1. </span></p></div><div><br></div><div>Regards,</div><div>Jorge</div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>