Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

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

Change History (2)

comment:1 Changed 9 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Fixed in trunk (r22834) and in branches/1.8 (r22835)

comment:2 Changed 8 years ago by Even Rouault

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.