- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Problem with image linked to CLD-module on IA6...
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
тАО03-27-2007 05:39 PM
тАО03-27-2007 05:39 PM
I have a problem with an image that has been linked to the object file of a CLD-module.
The CLD-module has been compiled with:
SET COMMAND/OBJECT mytool$commands
In the calling C-module:
#ifdef __ia64
extern void *mytool$commands;
#else
int mytool$commands();
#endif
and
#ifdef __ia64
status = CLI$DCL_PARSE(&line_descr,
&mytool$commands,
LIB$GET_INPUT,
LIB$GET_INPUT,
0);
#else
status = CLI$DCL_PARSE(&line_descr,
mytool$commands,
LIB$GET_INPUT,
LIB$GET_INPUT,
0);
#endif
Linking gives no messages, but running this images results in an access violation when calling the CLI$DCL_PARSE. Has anybody an idea how to solve this problem?
Thanks.
Cor Mom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 06:29 PM
тАО03-27-2007 06:29 PM
Re: Problem with image linked to CLD-module on IA64
the declarations and "&" usage different on
IA64? Sounds wrong to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 06:48 PM
тАО03-27-2007 06:48 PM
Re: Problem with image linked to CLD-module on IA64
As Steven said, why should C be different on ia64 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 07:44 PM
тАО03-27-2007 07:44 PM
SolutionThis is what I did when writing QDSB.
In the .CLD file
MODULE QDSB_CLD
DEFINE VERB QDSB
...
In the C module that parses the command line:
globalref void *QDSB_CLD;
...
unsigned int sts;
struct descriptor_s cmd_d;
...
sts = cli$dcl_parse (
&cmd_d
, (void **) &QDSB_CLD
, lib$get_input
, lib$get_input
, 0
);
Works like a charm on all three architectures.
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 07:51 PM
тАО03-27-2007 07:51 PM
Re: Problem with image linked to CLD-module on IA64
Hoff Hoffman, 03-25-2005, 05:05 PM
http://www.techiegroups.com/t56450-p-cld-symbol-table-object-on-itanium.html
And for C references for cli$dcl_parse, here is what I am using:
...
extern void *mumble$$CLI_TABLES;
...
Do remember you need to use `&mumble$$CLI_TABLES' to reference the
external symbol in the cli$dcl_parse call; you need to pass it by
reference.
I will give your idea a try Kris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2007 08:06 PM
тАО03-27-2007 08:06 PM
Re: Problem with image linked to CLD-module on IA64
It works. Thanks a lot!
regards,
Cor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2007 12:57 AM
тАО03-28-2007 12:57 AM