Menu

#139 cannot use sing4j with linux

3.x
closed-fixed
nobody
5
2015-04-24
2015-02-25
No

Using linux, I have apparently compile the sign4j.c myself, right?
How can I do that?

I already replaced io.h with x86_64-linux-gnu/sys/io.h
Now:

$ gcc sign4j.c
sign4j.c: In function ‘main’:
sign4j.c:92:36: error: ‘O_BINARY’ undeclared (first use in this function)
    if ((fd = open (inf, O_RDONLY | O_BINARY)) < 0)
                                    ^
sign4j.c:92:36: note: each undeclared identifier is reported only once for each function it appears in
sign4j.c:113:52: error: ‘_O_SHORT_LIVED’ undeclared (first use in this function)
          if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0)
                                                    ^
sign4j.c:113:90: error: ‘_S_IREAD’ undeclared (first use in this function)
          if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0)
                                                                                          ^
sign4j.c:113:101: error: ‘_S_IWRITE’ undeclared (first use in this function)
          if ((td = open (TEST_FILE_NAME, O_CREAT | _O_SHORT_LIVED | O_WRONLY | O_BINARY, _S_IREAD | _S_IWRITE)) < 0)

Discussion

  • Grzegorz Kowal

    Grzegorz Kowal - 2015-04-24

    One of the users offered a solution that was merged, you can get the newest source code from git and try it out.

     
  • Grzegorz Kowal

    Grzegorz Kowal - 2015-04-24
    • status: open --> closed-fixed
     

Log in to post a comment.