There was an error, when i tried to make "xthe".
> In function ‘open’,
> inlined from ‘run_os_command’ at ../rexx.c:1885,
> inlined from ‘run_os_function’ at ../rexx.c:1626,
> inlined from ‘THE_Function_Handler’ at ../rexx.c:646:
>/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: *** [rexx.o] Error 1
I made a quick fix for it, and then it worked for me, but probably more lines should be changed for other operating systems.
jzombi@studio:~/install/application/the/THE-3.3B3$ diff rexx.c_old rexx.c
< if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC)) == (-1))
> //if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC)) == (-1))
> if ((errfd = open(errfile,O_RDWR|O_CREAT|O_TRUNC, 0666)) == (-1)) // calling open with O_CREAT flag needs 3 argument
jzombi@studio:~$ uname -a
Linux studio 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux
Log in to post a comment.