Opened 11 years ago

Closed 11 years ago

#351 closed defect (fixed)

Error with r.drain with gdal 1.5.2 and 1.6.0

Reported by: lucacasagrande Owned by: grass-dev@…
Priority: minor Milestone: 6.4.0
Component: Raster Version: svn-trunk
Keywords: r.drain raster Cc:
CPU: x86-64 Platform: Linux

Description

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@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

Change History (1)

comment:1 Changed 11 years ago by neteler

Resolution: fixed
Status: newclosed

Already fixed in r34110 (also for 6.3.svn and 7.svn).

Markus

Note: See TracTickets for help on using tickets.