IV46836: 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

    IV46836

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-08-08

  • Closed date

    2013-09-18

  • Last modified date

    2013-12-13

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

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

    LI77619 IV52174

Fix information

  • Fixed component name

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

  • RC10 PSY U861656

       UP C



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

XL C/C++ for AIX
Compiler

Software version:

12.1

Reference #:

IV46836

Modified date:

2013-12-13

Translate my page

Machine Translation

Content navigation