Opened 7 years ago

Closed 7 years ago

Last modified 7 years 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 by Even Rouault, 7 years ago

Resolution: fixed
Status: assignedclosed

In 39439:

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

comment:2 by Even Rouault, 7 years ago

In 39440:

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

comment:3 by Even Rouault, 7 years ago

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.