GNOME Bugzilla – Bug 570151
system-tools-backend O_CREAT compile error
Last modified: 2009-02-02 08:12:14 UTC
Please describe the problem: 2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi main.c: In function ‘daemonize’: main.c:53: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result In function ‘open’, inlined from ‘daemonize’ at main.c:50, inlined from ‘main’ at main.c:101: /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[2]: *** [main.o] Error 1 make[2]: Leaving directory `/home/neil/svn/gnome2/system-tools-backends-2.6.0/dispatcher' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/neil/svn/gnome2/system-tools-backends-2.6.0' make: *** [all] Error 2 Steps to reproduce: 1. compile source on system with D_FORTIFY_SOURCE=2 flag. i.e. Ubuntu 8.10. Actual results: Expected results: Does this happen every time? Other information: See patch for suggested fix.
Created attachment 127729 [details] [review] add third argument to open() call using permissions 666 (read/write). modify, if needed.
Should add that this was discovered during jhbuild and this error is in the system-tools-backend-2.6.0 code that the gnome-system-tools code depends on.
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 556849 ***