Opened 13 years ago

Closed 13 years ago

Last modified 11 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 by Even Rouault, 13 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Even Rouault, 11 years ago

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.