Compile with GCC 4.3.3 (FORTIFY_SOURCE=2) man open: mode specifies the permissions to use in case a new file is created. This argument must be supplied when O_CREAT is specified in flags; Reproducible: Always Steps to Reproduce: 1.Compile tha package with gcc 4.3.3 and glibc >=2.8 from portage 2. 3. Actual Results: In function 'open', inlined from 'pgmunmap' at pgmblock.c:200: /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 In function 'open', inlined from 'pgmmap' at pgmblock.c:164: /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: *** [pgmblock.o] Error 1 Expected Results: Would compile fine
Created attachment 182973 [details] Build log of clara-20031214
Created attachment 183960 [details] fix for O_CREAT bug in pgmblock.c
Fixed in CVS, thanks for the patch.
Created attachment 210413 [details, diff] cl_msg.c patch some bug with: inlined from 'cl_msg_stats_open' at cl_msg.c:149, inlined from 'cl_msg_stats_add' at cl_msg.c:173: /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 gmake[2]: *** [cl_msg.lo] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.8/work/heartbeat-2.0.8/lib/clplumbing' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/sys-cluster/heartbeat-2.0.8/work/heartbeat-2.0.8/lib' make: *** [all-recursive] Error 1
(In reply to comment #4) > `/var/tmp/portage/sys-cluster/heartbeat-2.0.8/work/heartbeat- Please file a separate bug for sys-cluster/heartbeat instead.