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)
Change History (6)
by , 15 years ago
Attachment: | gdal.patch added |
---|
follow-up: 2 comment:1 by , 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...
comment:2 by , 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:5 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Closing as invalid due to lack of feedback of reported and strong assumption this is fixed
patch