Subscribe

You can track all active APARs for this component.

APAR status

Closed as program error.

Error description

When compiling .c files with dependency file generation, the
dependency file is created with permission -rw-rw-rw by
default, plus the effect of umask. For .cpp files, however, the
files are always created as -rw-r--r--.
This creates problems during software development
collaboration, since people in the same group cannot write over
the dependency files created by other people in the group.
$ umask 0
$xlc_r -MF t1.d -qmakedep=gcc test.c
$xlC_r -MF t2.d -qmakedep=gcc test.cpp
$ll *.d
-rw-rw-rw- t1.d
-rw-r--r-- t2.d

Local fix

Manually modify file permission using chmod command.

Problem summary

PROBLEM DESCRIPTION: Dependency files for source compiled as
C++ is created without write permissions for 'group' and
'other'
USERS AFFECTED: Users of make dependency files requiring write
permissions for 'group' or 'other' using an appropriate umask.

Problem conclusion

The permissions bits are now specified to be 0666 before
application of the umask by the system.