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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
Thank you very much - it works fine.
Regards,
Horst