#4180 closed defect (fixed)
Compilation fixes for ancient GCC
Reported by: | Even Rouault | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | 1.8.1 |
Severity: | normal | Keywords: | |
Cc: |
Description
Several small issues discovered while trying to compile against gcc-2.96-110 of RedHat 7.3... :
- _GNU_SOURCE should be defined before including dlfcn.h to use RTLD_DEFAULT (fixes compilation of geotiff.cpp)
- When VSI_NEED_LARGEFILE64_SOURCE is defined, cpl_port.h should be included before any standard headers, so we have a chance to define _LARGEFILE64_SOURCE so that VSIStatBufL gets defined (fixes compilation of ogrvrtdriver.cpp and dec_jpeg2000.cpp)
- That g++ version doesn't like static methods with same name, but with different arguments, as found in the NITF driver with the Open() method.
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r22834) and in branches/1.8 (r22835)