Hi,
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?
Thanks
Jachym
--
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
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@gclements.plus.com>
On Thu, Oct 30, 2008 at 7:30 PM, Glynn Clements
<glynn@gclements.plus.com> wrote:
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):
...
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 */
Fixed in 6.3.svn, 6.4.svn and 7.0.svn.
Markus