- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: DEC warnings
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2005 03:30 AM
тАО11-18-2005 03:30 AM
DEC warnings
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.
What we have is array of structures of about 50 entries and the values of the descriptor strings are initialized in the header file.
I get the following message:
NDMEVL$T$_LINKFAILURE , NDMEVL$C$_USER_INTERFACE , ui_LinkFailure ,
..^
%CC-W-STATINITWARN, The linker will be unable to perform this static initializa
tion if the initializer is defined in a sharable image.
at line number 191 in file $1$DKB200:[NDM.3300DEV.NDM.INCLUDE]NDM$EVENT_DESCRIPTION.H;1
...
NDMEVL$T$_RUNJOBREMOTECOMPLETE , NDMEVL$C$_SESSION_REQUESTER , sтЩж
..^
%CC-W-STATINITWARN, The linker will be unable to perform this static initializa
tion if the initializer is defined in a sharable image.
at line number 237 in file $1$DKB200:[NDM.3300DEV.NDM.INCLUDE]NDM$EVENT_DESCRIP
TION.H;1
Fatal: Insufficient virtual memory to continue compilation.
%LIB-F-INSVIRMEM, insufficient virtual memory
I looked up the description of the warning and it says "
CC
Messages
STATINITWARN
Message The linker will be unable to perform this static
initialization if the initializer is defined in a
sharable image.
Description A static initialization will require that a link-time
constant be truncated. If the constant is resolved
in a sharable image, the linker will issue a
diagnostic and be unable to perform the
initialization. This message is output on OpenVMS
systems only.
User Action Rewrite the static initialization so that the link-time constant will not be truncated.
I would appreciate if someone could throw some light on this.
Thanks,
Malleka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-18-2005 09:07 AM
тАО11-18-2005 09:07 AM
Re: DEC warnings
From ...?
> %LIB-F-INSVIRMEM, insufficient virtual memory
I'd start by increasing your pagefile quota,
or whatever is causing this one.
> %CC-W-STATINITWARN [...]
Knowing nothing, I'd expect a link-time
constant to be an address of some sort, and
you might be trying to put a 64-bit value
into a 32-bit destination. Without seeing
any of the declarations, it's hard to say.
(Of course, even if I saw them all, it might
_still_ be hard for _me_ to say.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2005 12:55 AM
тАО11-20-2005 12:55 AM
Re: DEC warnings
Hmmm, DEC C 6.0 is still pretty old.
7.1 is current and 6.5 has been available since early 2002 or so.
http://h71000.www7.hp.com/commercial/c/c_index.html
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:"
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.
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.
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.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2005 07:58 AM
тАО11-20-2005 07:58 AM
Re: DEC warnings
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.
For a full explanation for how to resolve this, you'd need to post a small reproducer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 05:05 AM
тАО11-28-2005 05:05 AM
Re: DEC warnings
We have our application running on OpenVMS AXP 1.5, C compiler 1.3-000A.
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.
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).
If the DEC C version needs to be upgraded, as mentioned in one of the replies, I can work in that direction too.
Attached is the source and header files.
Thanks,
Malleka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 05:08 AM
тАО11-28-2005 05:08 AM
Re: DEC warnings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 12:39 PM
тАО11-28-2005 12:39 PM
Re: DEC warnings
Sorry, I can't compile your code, way too many missing include files, and way too much code.
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.
So, for example, why not start with:
NDMEVL$C$_USER_INTERFACE , ui_LinkFailure ,
..^
%CC-W-STATINITWARN, The linker will be unable to perform this static initializa
Trace back all the dependent definitions and place them in a single file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2005 12:46 PM
тАО11-28-2005 12:46 PM
Re: DEC warnings
If you can dig out the definition of
ndm$event_description, I may be able to reproduce the symptom.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2005 07:21 AM
тАО11-29-2005 07:21 AM
Re: DEC warnings
Thanks,
Malleka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-29-2005 07:32 AM
тАО11-29-2005 07:32 AM