[GRASS-dev] ubuntu 8.10, grass 6.3, r.fill.dir|r.drain
Glynn Clements
glynn at gclements.plus.com
Thu Oct 30 14:30:47 EDT 2008
Jachym Cepicky wrote:
> I try to package grass 6.3 for ubuntu 8.10 and it failes on r.fill.dir
> and r.drain moduels (both do use same type of "open" function and do
> fail on the same issue, as it seems to me):
>
> cd r.fill.dir && make
> [...]
> main.c:273: warning: ignoring return value of 'read', declared with
> attribute warn_unused_result
> In function 'open',
> inlined from 'main' at main.c:199:
> /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:200:
> /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:201:
> /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.i486-pc-linux-gnu/main.o] Error 1
>
>
> in r.fill.dir/main.c, lines 199-201:
>
>
> fe=open(tempfile1,O_RDWR|O_CREAT); /* elev */
> fd=open(tempfile2,O_RDWR|O_CREAT); /* dirn */
> fm=open(tempfile3,O_RDWR|O_CREAT); /* problems */
>
> What do do?
fe=open(tempfile1,O_RDWR|O_CREAT,0666); /* elev */
fd=open(tempfile2,O_RDWR|O_CREAT,0666); /* dirn */
fm=open(tempfile3,O_RDWR|O_CREAT,0666); /* problems */
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list