<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DEC warnings in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674855#M33088</link>
    <description>I think this software does not work as expected. Yesterday I assigned points to all responses to DEC  C warnings before I responded to John saying it works. But now it shows all responses as unassigned. This could have happened with all previous responses too. Please let me know if someone knows how to fix this. I no longer see a drop down list so I can go ahead and assign points again.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Malleka</description>
    <pubDate>Thu, 01 Dec 2005 06:54:43 GMT</pubDate>
    <dc:creator>Malleka Ramachandran</dc:creator>
    <dc:date>2005-12-01T06:54:43Z</dc:date>
    <item>
      <title>DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674841#M33074</link>
      <description>We upgraded to OpenVMS 6.2 and DEC C 6.0 on the Alpha.&lt;BR /&gt;When I recompile our application, I am getting a warning about static initializers. I don't understand the meaning/implication of this. I would appreciate if someone could explain this to me.&lt;BR /&gt;What we have is array of structures of about 50 entries and the values of the descriptor strings are initialized in the header file.&lt;BR /&gt;&lt;BR /&gt;I get the following message:&lt;BR /&gt;  NDMEVL$T$_LINKFAILURE          , NDMEVL$C$_USER_INTERFACE                 , ui_LinkFailure                 ,&lt;BR /&gt;..^&lt;BR /&gt;%CC-W-STATINITWARN, The linker will be unable to perform this static initializa&lt;BR /&gt;tion if the initializer is defined in a sharable image.&lt;BR /&gt;at line number 191 in file $1$DKB200:[NDM.3300DEV.NDM.INCLUDE]NDM$EVENT_DESCRIPTION.H;1&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;  NDMEVL$T$_RUNJOBREMOTECOMPLETE , NDMEVL$C$_SESSION_REQUESTER              , s♦&lt;BR /&gt;..^&lt;BR /&gt;%CC-W-STATINITWARN, The linker will be unable to perform this static initializa&lt;BR /&gt;tion if the initializer is defined in a sharable image.&lt;BR /&gt;at line number 237 in file $1$DKB200:[NDM.3300DEV.NDM.INCLUDE]NDM$EVENT_DESCRIP&lt;BR /&gt;TION.H;1&lt;BR /&gt;Fatal:  Insufficient virtual memory to continue compilation.&lt;BR /&gt;%LIB-F-INSVIRMEM, insufficient virtual memory&lt;BR /&gt;&lt;BR /&gt;I looked up the description of the warning and it says "&lt;BR /&gt;CC&lt;BR /&gt;&lt;BR /&gt;  Messages&lt;BR /&gt;&lt;BR /&gt;    STATINITWARN&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Message        The linker will be unable to perform this static&lt;BR /&gt;                     initialization if the initializer is defined in a&lt;BR /&gt;                     sharable image.&lt;BR /&gt;&lt;BR /&gt;      Description    A static initialization will require that a link-time&lt;BR /&gt;                     constant be truncated.  If the constant is resolved&lt;BR /&gt;                     in a sharable image, the linker will issue a&lt;BR /&gt;                     diagnostic and be unable to perform the&lt;BR /&gt;                     initialization.  This message is output on OpenVMS&lt;BR /&gt;                     systems only.&lt;BR /&gt;&lt;BR /&gt;      User Action    Rewrite the static initialization so that the link-time constant will not be truncated.&lt;BR /&gt;&lt;BR /&gt;I would appreciate if someone could throw some light on this.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Malleka&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Nov 2005 11:30:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674841#M33074</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-18T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674842#M33075</link>
      <description>&amp;gt; We upgraded to OpenVMS 6.2 and DEC C 6.0 on the Alpha.&lt;BR /&gt;&lt;BR /&gt;From ...?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; %LIB-F-INSVIRMEM, insufficient virtual memory&lt;BR /&gt;&lt;BR /&gt;I'd start by increasing your pagefile quota,&lt;BR /&gt;or whatever is causing this one.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; %CC-W-STATINITWARN [...]&lt;BR /&gt;&lt;BR /&gt;Knowing nothing, I'd expect a link-time&lt;BR /&gt;constant to be an address of some sort, and&lt;BR /&gt;you might be trying to put a 64-bit value&lt;BR /&gt;into a 32-bit destination.  Without seeing&lt;BR /&gt;any of the declarations, it's hard to say.&lt;BR /&gt;(Of course, even if I saw them all, it might&lt;BR /&gt;_still_ be hard for _me_ to say.)</description>
      <pubDate>Fri, 18 Nov 2005 17:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674842#M33075</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2005-11-18T17:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674843#M33076</link>
      <description>&lt;BR /&gt;Hmmm, DEC C 6.0 is still pretty old. &lt;BR /&gt;7.1 is current and 6.5 has been available since early 2002 or so.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/commercial/c/c_index.html" target="_blank"&gt;http://h71000.www7.hp.com/commercial/c/c_index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;INVIRMEM is like a quota problem as replied earlier. Specifically check out the PGFLQUO value with authorize for the user running the compiler, or when logged in as that user issue "SHOW PROC/QUO" and look for "Paging file quota:"&lt;BR /&gt;&lt;BR /&gt;as for the STATINITWARN... it means exactly what it says. Rules may have been tightened, old problems may now have been recognized. That is, that same code in the older version may have had the same gotcha, but the older compiler failed to warn you for it.&lt;BR /&gt;If you do not intent to create a shareable image then you can ignore it, but I would take it as a suggestion that there is something fishy about the variable initialization done at line 191 and 237 and try to do something about it.&lt;BR /&gt;If you need help on that, then you probably need to include relevant chunks of the source code, and underlying structure definitions as a text attachment to a subsequent reply.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Nov 2005 08:55:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674843#M33076</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-20T08:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674844#M33077</link>
      <description>Malleka,&lt;BR /&gt;&lt;BR /&gt;  STATINITWARN means the initialisation of a variable involves the address of another variable which is not declared within the scope that the compiler can "see" at compile time. The warning is telling you that if the target variable is ultimately resolved from a shareable image, the assumptions made by the compiler may be broken, and you may get incorrect results.&lt;BR /&gt;&lt;BR /&gt;  For a full explanation for how to resolve this, you'd need to post a small reproducer.</description>
      <pubDate>Sun, 20 Nov 2005 15:58:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674844#M33077</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-20T15:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674845#M33078</link>
      <description>I think I did not describe the scenario regarding the versions. What I meant by upgrade was the following scenario:&lt;BR /&gt;&lt;BR /&gt;We have our application running on OpenVMS AXP 1.5, C compiler 1.3-000A.&lt;BR /&gt;The client has agreed to move on to higher OS versions, so as a first step we are porting the application to OpenVMS 6.2H3. We have a new Alpha box with this version, which has DEC C 6.0 installed. The warnings I mentioned above are while recompiling the application on this box. &lt;BR /&gt;Yes, I understand that the pgflquota could be an issue as mentioned in the replies but I would like to understand this condition so that it will be useful when we go further with more recent OS versions (and the corresponding C compiler versions).&lt;BR /&gt;If the DEC C version needs to be upgraded, as mentioned in one of the replies, I can work in that direction too.&lt;BR /&gt;Attached is the source and header files.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Malleka</description>
      <pubDate>Mon, 28 Nov 2005 13:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674845#M33078</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-28T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674846#M33079</link>
      <description>I'm not sure if both files got attached to my previous message, so I'm sending the header files, just in case.</description>
      <pubDate>Mon, 28 Nov 2005 13:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674846#M33079</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-28T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674847#M33080</link>
      <description>Malleka,&lt;BR /&gt;&lt;BR /&gt;  Sorry, I can't compile your code, way too many missing include files, and way too much code.&lt;BR /&gt;&lt;BR /&gt;  You should be able to cut out the definitions for ONE object that's generating this error and produce a small, self contained source module that anyone can compile. It doesn't matter if the program doesn't make sense.&lt;BR /&gt;&lt;BR /&gt;So, for example, why not start with:&lt;BR /&gt;&lt;BR /&gt;NDMEVL$C$_USER_INTERFACE , ui_LinkFailure ,&lt;BR /&gt;..^&lt;BR /&gt;%CC-W-STATINITWARN, The linker will be unable to perform this static initializa&lt;BR /&gt;&lt;BR /&gt;Trace back all the dependent definitions and place them in a single file.</description>
      <pubDate>Mon, 28 Nov 2005 20:39:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674847#M33080</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-28T20:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674848#M33081</link>
      <description>Malleka,&lt;BR /&gt;  If you can dig out the definition of&lt;BR /&gt;ndm$event_description, I may be able to reproduce the symptom.&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Nov 2005 20:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674848#M33081</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-28T20:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674849#M33082</link>
      <description>Sorry I could not get the header file ndm$event_description.h to get attached to my posting for some reason. I am trying to do it again. I also have modified the c source to exclude other include statements.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Malleka</description>
      <pubDate>Tue, 29 Nov 2005 15:21:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674849#M33082</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-29T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674850#M33083</link>
      <description>I did not reaalize the header files I attached in my previous message has more includes in it. here are the the two other header files.</description>
      <pubDate>Tue, 29 Nov 2005 15:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674850#M33083</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-29T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674851#M33084</link>
      <description>the second one...</description>
      <pubDate>Tue, 29 Nov 2005 15:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674851#M33084</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-29T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674852#M33085</link>
      <description>Malleka,&lt;BR /&gt;&lt;BR /&gt;  OK, here's what I mean by a short reproducer!&lt;BR /&gt;&lt;BR /&gt;main(){&lt;BR /&gt; globalvalue int X;&lt;BR /&gt; struct Y {unsigned short a;};&lt;BR /&gt; static struct Y readonly Z[]={X};&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Your NDMEVL$* symbols, defined in NDM$EVENT_TYPE.H are all "globalvalue int". They're used to initialize elements of the array EVENT_DESCRIPTION_TABLE. Elements are of type "event_description_entry", and the initialized fields "type" and "class" are both declared as "unsigned short".&lt;BR /&gt;&lt;BR /&gt;  This is a type mismatch. You're trying to fit an int into a short.&lt;BR /&gt;&lt;BR /&gt;  If these were COMPILE TIME constants, the compiler could check that the "int" values fit into a "short" field, and warn you if there was any truncation.&lt;BR /&gt;&lt;BR /&gt;  Since, "globalvalue" are LINK TIME constants, it's up to the linker to do the initialization and possibly truncation of the value, again with a warning if data was lost. However, if those symbols are resolved from a shareable image, instead of an object module, then they're RUN TIME constants, and performing the correct initialization, truncation &amp;amp; warning is way beyond the capabilities of the image activator.&lt;BR /&gt;&lt;BR /&gt;  This is what the compiler is warning you about.&lt;BR /&gt;&lt;BR /&gt;  So, if you KNOW absolutely that these values will never exceed the size of a "short" field, then ignore the warning. If not, then you'd be better off defining the fields to be "int" instead of "short". Alternatively, you could define the symbols as "globalvalue short". It all depends on where and how the values of the symbols are defined. You should be able to determine that from the linker MAP file.&lt;BR /&gt;&lt;BR /&gt;  Bottom line is, you need to resolve the type mismatch to make the compiler happy. &lt;BR /&gt;&lt;BR /&gt;  From the look of the code, I'd say changing "type" and "class" to "unsigned int" should be safe. It will make the table slightly bigger, but memory is cheap! The only potential problem is if there is code that assumes the fields are "short" (but, judging by the coding style, the programmer knew exactly what they were doing, and I'd guess there are no such dependencies). &lt;BR /&gt;&lt;BR /&gt;(and if that effort isn't worth a few points, I don't know what is! :-)&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 16:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674852#M33085</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-11-29T16:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674853#M33086</link>
      <description>Thanks, John, it worked.</description>
      <pubDate>Wed, 30 Nov 2005 17:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674853#M33086</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-11-30T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674854#M33087</link>
      <description>Mallega,&lt;BR /&gt;your profile shows, you assigned points to only one out of 15 responses.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I have assigned points to   1  of   15 &lt;BR /&gt;&amp;gt; responses to my questions.&lt;BR /&gt;&lt;BR /&gt;Please try to spend time to assign the points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Archunan</description>
      <pubDate>Wed, 30 Nov 2005 17:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674854#M33087</guid>
      <dc:creator>Arch_Muthiah</dc:creator>
      <dc:date>2005-11-30T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674855#M33088</link>
      <description>I think this software does not work as expected. Yesterday I assigned points to all responses to DEC  C warnings before I responded to John saying it works. But now it shows all responses as unassigned. This could have happened with all previous responses too. Please let me know if someone knows how to fix this. I no longer see a drop down list so I can go ahead and assign points again.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Malleka</description>
      <pubDate>Thu, 01 Dec 2005 06:54:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674855#M33088</guid>
      <dc:creator>Malleka Ramachandran</dc:creator>
      <dc:date>2005-12-01T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674856#M33089</link>
      <description>Malleka,&lt;BR /&gt;&lt;BR /&gt;You seem to have 2 profiles:&lt;BR /&gt;&lt;BR /&gt;This is the one you used to start this thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1290226&amp;amp;forumId=1" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1290226&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This one, you used in your last reply:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1341125&amp;amp;forumId=1" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1341125&amp;amp;forumId=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You have to log in using the CA1230226 profile in order to be able to assign points.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kris (aka Qkcl)&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 07:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674856#M33089</guid>
      <dc:creator>Kris Clippeleyr</dc:creator>
      <dc:date>2005-12-01T07:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: DEC warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674857#M33090</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;Not only do you have two IDs, but those also have different names: CA1230226 is "Malleka",&lt;BR /&gt;where CA1341125 is "Malleka Ramachandran"&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 14:35:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dec-warnings/m-p/3674857#M33090</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-12-01T14:35:22Z</dc:date>
    </item>
  </channel>
</rss>

