[GRASS-dev] [GRASS GIS] #351: Error with r.drain with gdal 1.5.2 and 1.6.0

GRASS GIS trac at osgeo.org
Thu Oct 30 16:03:59 EDT 2008


#351: Error with r.drain with gdal 1.5.2 and 1.6.0
----------------------------+-----------------------------------------------
 Reporter:  lucacasagrande  |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect          |      Status:  new                      
 Priority:  minor           |   Milestone:  6.4.0                    
Component:  Raster          |     Version:  svn-trunk                
 Keywords:  r.drain raster  |    Platform:  Linux                    
      Cpu:  x86-64          |  
----------------------------+-----------------------------------------------
 Hello everybody,
 I have got some troubles building grass 6.4.0 with gdal 1.5.2 and gdal
 1.6.0.
 This is the error:

 {{{
 root at doktoreas-laptop:/usr/src/grass_dev64/raster/r.drain# make
 gcc -I/usr/src/grass_dev64/dist.x86_64-unknown-linux-gnu/include
 -I/usr/local/lib -g -O2  -I/usr/local/lib  -I/usr/local/include
 -DPACKAGE=\""grassmods"\"  -I/usr/src/grass_dev64/dist.x86_64-unknown-
 linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
 main.c: In function ‘main’:
 main.c:309: warning: ignoring return value of ‘write’, declared with
 attribute warn_unused_result
 main.c:402: warning: ignoring return value of ‘read’, declared with
 attribute warn_unused_result
 main.c: In function ‘drain’:
 main.c:473: warning: ignoring return value of ‘read’, declared with
 attribute warn_unused_result
 In function ‘open’,
     inlined from ‘main’ at main.c:303:
 /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’
 declared with attribute error: open with O_CREAT in second argument needs
 3 arguments
 In function ‘open’,
     inlined from ‘main’ at main.c:304:
 /usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’
 declared with attribute error: open with O_CREAT in second argument needs
 3 arguments
 make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/351>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list