ITEM: D8769L
Problems with SCCS what command
Question:
We are using the SCCS what command. When using the what command on
some .o files we are getting the correct output. However, when we use
the what command on the executable (built from the .o files) some of
the SCCS identification strings are missing. The strings that are
missing are all from the main routine (they describe the include files
that are in the main routine). There is only one executable that has
this problem and the only noticeable difference in this main routine
and the others is that this main routine is very short...
All strings for SCCS are static char arrays and are only used for
SCCS. Why would some of these strings be disappearing?
Response:
There is a note found under the what command in InfoExplorer
that states:
The what command may fail to find SCCS identification
strings in executable files.
And, because of this disclaimer, the situation you are experiencing
is not considered a defect. The reason this occurs is because
of the garbage collecting done by the compile and link. And quite
frequently it will only be some of the identification strings that
are missing and not all of them.
There is a workaround for this problem, but it has a side-effect
of its own. You can use the -bnogc (no garbage collect) and -berok
(allow unresolved references) flags when you compile and link. The
side-effect caused by this is that it will not only include all of
your SCCS identification strings, but also the SCCS identification
strings found in the compiler files...
There is a fix for a problem for SCCS identification strings in
\#pragma statements being removed and this has been fixed with the
latest update to XLC 1.2.1. The fix can be obtained from Software
Support at 1-800-237-5511 (reference IX36471). Unfortunately, since
you are using static char arrays and not pragmas, this fix will not
correct the situation you are experiencing, but you may wish to get
the latest XLC 1.2.1 update anyway...
Support Line: Problems with SCCS what command ITEM: D8769L
Dated: September 1993 Category: N/A
This HTML file was generated 99/06/24~13:30:55
Comments or suggestions?
Contact us