[gdal-dev] gdal-2.2.1 build failure

Even Rouault even.rouault at spatialys.com
Mon Aug 28 09:19:45 PDT 2017

On lundi 28 août 2017 16:08:27 CEST Feld, Michael (IMS) wrote:
> Hi, I am trying to build gdal-2.2.1 on CentOS 6.9 and I am getting the below
> build failure message. I did not experience this with gdal-2.2.0 in the
> past. I have jasper-devel-1.900.1-21.el6_9.x86_64 installed. Does anyone
> have any tips or suggestions? Thanks
> /usr/include/jasper/jas_math.h: In function 'bool jas_safe_size_mul(size_t,
> size_t, size_t*)': /usr/include/jasper/jas_math.h:143:15: error: 'SIZE_MAX'
> was not declared in this scope /usr/include/jasper/jas_math.h: In function
> 'bool jas_safe_size_add(size_t, size_t, size_t*)':
> /usr/include/jasper/jas_math.h:170:10: error: 'SIZE_MAX' was not declared
> in this scope make[2]: *** [../o/jpeg2000dataset.lo] Error 1
> make[2]: Leaving directory `/usr/local/src/gdal-2.2.1/frmts/jpeg2000'
> make[1]: *** [jpeg2000-install-obj] Error 2
> make[1]: Leaving directory `/usr/local/src/gdal-2.2.1/frmts'
> make: *** [frmts-target] Error 2


this has been fixed in the 2.2 branch (post 2.2.1) per

(I believe the issue would also be reproduced with GDAL 2.2.0, if you compiled it against the 
newer jasper-devel package)


> ________________________________
> Information in this e-mail may be confidential. It is intended only for the
> addressee(s) identified above. If you are not the addressee(s), or an
> employee or agent of the addressee(s), please note that any dissemination,
> distribution, or copying of this communication is strictly prohibited. If
> you have received this e-mail in error, please notify the sender of the
> error.

Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170828/cbace6cd/attachment.html>

More information about the gdal-dev mailing list