Menu

compiling error linknx

Help
2009-02-11
2012-12-14
  • Horst Schmidt

    Horst Schmidt - 2009-02-11

    Hi,

    i am trying to compile Linknx-0.0.1.25 on Ubuntu 8.10 and always get the following error message:

    if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include -I../ticpp -I/usr/include    -g -O2 -MT linknx.o -MD -MP -MF ".deps/linknx.Tpo" -c -o linknx.o linknx.cpp; \     then mv -f ".deps/linknx.Tpo" ".deps/linknx.Po"; else rm -f ".deps/linknx.Tpo"; exit 1; fi
    In function »int open(const char*, int, ...)«,
        inlined from »int main(int, char**)« at linknx.cpp:142:
    /usr/include/bits/fcntl2.h:51: Fehler: Aufruf von »__open_missing_mode« mit Attributfehler deklariert: open with O_CREAT in second argument needs 3 arguments

    Regards, 

    Horst

     
    • jef2000

      jef2000 - 2009-02-11

      Hi,

      Then you can add a third argument at line 142 of file linknx.cpp .

      The line must be:
              int fd = open (arg.daemon, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);

      Instead of:
              int fd = open (arg.daemon, O_WRONLY | O_APPEND | O_CREAT);

      I'll add this to the next release.

      Regards,

      Jean-François

       
    • Horst Schmidt

      Horst Schmidt - 2009-02-12

      Thank you very much - it works fine.

      Regards, 

      Horst

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.