Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#6951 closed defect (fixed)

Build failure on RHEL 6

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.5
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc:

Description

GDAL build fails on RHEL 6 with non C++11 compiler, related to Jasper

In file included from /usr/include/jasper/jasper.h:77,
                 from jpeg2000dataset.cpp:35:
/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: 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: error: ‘SIZE_MAX’ was not declared in this scope

Change History (3)

comment:1 Changed 4 months ago by Even Rouault

Resolution: fixed
Status: assignedclosed

In 39439:

Fix build failure in C++03 mode on Jasper inclusion in RHEL 6 (fixes #6951)

comment:2 Changed 4 months ago by Even Rouault

In 39440:

Fix build failure in C++03 mode on Jasper inclusion in RHEL 6 (fixes #6951)

comment:3 Changed 4 months ago by Even Rouault

In 39441:

Fix build failure in C++03 mode on Jasper inclusion in RHEL 6 (fixes #6951)

Note: See TracTickets for help on using tickets.