#181 error compiling rexx.c

pending-accepted
Mark Hessling
None
5
2009-11-14
2009-09-26
jzombi
No

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
>jzombi@studio:~/install/application/the/THE-3.3B3/xcurses$

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
1885c1885,1886
< 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

Discussion

  • jzombi
    jzombi
    2009-09-26

    new rexx.c

     
    Attachments
  • Mark Hessling
    Mark Hessling
    2009-11-14

    • assigned_to: nobody --> rexx
    • status: open --> pending-accepted
     
  • Mark Hessling
    Mark Hessling
    2009-11-14

    Thanks for the information. I've made these changes in the current stream and it will ne incorporated in the next release.