[GRASS-dev] [GRASS GIS] #1131: Global LFS for wingrass

GRASS GIS trac at osgeo.org
Fri Jun 14 03:25:55 PDT 2013


#1131: Global LFS for wingrass
--------------------------+-------------------------------------------------
 Reporter:  mmetz         |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  critical      |   Milestone:  7.0.0                    
Component:  LibGIS        |     Version:  svn-trunk                
 Keywords:  LFS,wingrass  |    Platform:  MSWindows 7              
      Cpu:  All           |  
--------------------------+-------------------------------------------------

Comment(by mmetz):

 [Extending LFS support to other platforms]

 Apparently there is a limited number of switches needed to get LFS. 64 bit
 off_t seems to be activated with either -n32 (IRIX),
 -D_FILE_OFFSET_BITS=64 (most *NIX systems), or -D_LARGE_FILES (AIX-style
 hosts). Additionally, -D_LARGEFILE_SOURCE might be needed to expose the 64
 bit versions of fseeko etc.

 The current LFS test in configure tests for all these switches, but the
 result is forgotten, thus the crude hack in Grass.make for global LFS.

 I have modified the configure tests such that any switches needed for LFS
 are stored as LFS_CFLAGS. Tests show that on Linux 64 bit, nothing is
 needed. On Solaris 32 bit, -D_FILE_OFFSET_BITS=64 is needed and
 -D_LARGEFILE_SOURCE recommended. On FreeBSD 64 bit, nothing is needed.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1131#comment:18>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list