Ticket #2909 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

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

gdal.patch Download (0.8 KB) - added by fagom 4 years ago.
patch

Change History

Changed 4 years ago by fagom

patch

follow-up: ↓ 2   Changed 4 years ago by rouault

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   Changed 4 years ago by fagom

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...

  Changed 4 years ago by rouault

The latest stable versions are : GDAL 1.5.4 and GDAL 1.6.0

  Changed 4 years ago by rouault

fagom, did you retry with newer GDAL versions ?

  Changed 4 years ago by rouault

  • status changed from new to closed
  • resolution set to invalid

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

Note: See TracTickets for help on using tickets.