Opened 15 years ago

Closed 15 years ago

#2909 closed defect (invalid)

GDAL fails to compile on RHEL4U2 64-bit with gcc 4.3.2

Reported by: fagom Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

Patch attached. Fails to compile otherwise. Some description:

Compiling gdal 1.5.2 on RHEL4U2 64-bit with gcc 4.3.2 fails on ogrgeojsonlayer.cpp with errors related to a "min" macro, etc.

A simple fix is to move:

#include<algorithm>

to be the first include in the file. I've checked that this has not yet been fixed in svn trunk. Additionally, in the same file, it seems that:

#include <jsonc/json.h>

should really use quotes rather than "<>"

Attachments (1)

gdal.patch (815 bytes ) - added by fagom 15 years ago.
patch

Download all attachments as: .zip

Change History (6)

by fagom, 15 years ago

Attachment: gdal.patch added

patch

comment:1 by Even Rouault, 15 years ago

Could you post the errors reported by GCC ? A similar error was reported as ticket #2317 and should have been fixed in GDAL 1.5.2. As there's no more any use of the min (lowercase) macro in the GeoJSON driver of GDAL 1.5.2, I don't understand why you get errors about that...

in reply to:  1 comment:2 by fagom, 15 years ago

Evidently I'm using gdal 1.5.1 -- I thought I had pulled the later version. I'll try upgrading and report back. I will not have access to the machine until Monday...

comment:3 by Even Rouault, 15 years ago

The latest stable versions are : GDAL 1.5.4 and GDAL 1.6.0

comment:4 by Even Rouault, 15 years ago

fagom, did you retry with newer GDAL versions ?

comment:5 by Even Rouault, 15 years ago

Resolution: invalid
Status: newclosed

Closing as invalid due to lack of feedback of reported and strong assumption this is fixed

Note: See TracTickets for help on using tickets.