IBM Support

LI77619: DEPENDENCY FILES FOR .CPP SOURCES ARE READ-ONLY

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.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77619

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-28

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

  • APAR is sysrouted FROM one or more of the following:

    IV46836

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
14 October 2021