After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570151 - system-tools-backend O_CREAT compile error
system-tools-backend O_CREAT compile error
Status: RESOLVED DUPLICATE of bug 556849
Product: gnome-system-tools
Classification: Deprecated
Component: general
CVS latest
Other All
: Normal minor
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2009-02-01 22:48 UTC by Neil Loknath
Modified: 2009-02-02 08:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
add third argument to open() call (769 bytes, patch)
2009-02-01 22:51 UTC, Neil Loknath
none Details | Review

Description Neil Loknath 2009-02-01 22:48:57 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.
Comment 1 Neil Loknath 2009-02-01 22:51:32 UTC
Created attachment 127729 [details] [review]
add third argument to open() call

using permissions 666 (read/write).  modify, if needed.
Comment 2 Neil Loknath 2009-02-01 22:56:16 UTC
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.
Comment 3 Baptiste Mille-Mathias 2009-02-02 08:12:14 UTC
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 ***