- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: No need to be a programmer to understand my co...
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
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
тАО01-26-2012 02:57 AM
тАО01-26-2012 02:57 AM
No need to be a programmer to understand my comments
No need to be a programmer to understand my comments in the PROGRAM section of my document at http://vouters.dyndns.org/tima/Linux-HP-UX-OpenVMS-libreadline-GNU_readline_usage_example.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2012 04:43 AM
тАО01-26-2012 04:43 AM
Re: No need to be a programmer to understand my comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2012 05:04 AM
тАО01-26-2012 05:04 AM
Re: No need to be a programmer to understand my comments
You are correct in that DECC$ logicals should not be set at the system level. Per the documentation (comments) the code indicates that setting the proces level logical name will PREVENT the use of DEBUG for that program image.
==================
"* Setting DECC$FILENAME_UNIX_ONLY logical to ENABLE or 1 with a DCL define
* simply prevents to run this code under the VMS debugger which becomes unable
* to open the .EXE to read the program symbols.
==================
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2012 05:41 AM
тАО04-09-2012 05:41 AM
Re: No need to be a programmer to understand my comments
The correct VMS solution is indeed to set program required DECC$ logicals using decc$feature_set. This is what does GNV bash. However the decc$feature_xxxx forces you to initially set all other unwanted logicals to their default values which is extremely seldomly if not never done even by HP provided codes. This is because the VMS C RTL does not own a decc$feature_set_all_defaults call. For your fun, just:
$ define DECC$UNIX_LEVEL 90
$ bash
bash$ ls $HOME
On my side, I get extremely strange and absolutely unexpected results.
However and for this GNU readline example, VMS forces the developer to complexify a lot the example just for this required DECC$FILENAME_UNIX_ONLY logical. Such an added complexity adds strictly nothing to the understanding of this Unix/Linux/VMS portable example.
In conclusion, OpenVMS ressembles to why doing things simple when you can make them extremely complex. For someone porting Opensource codes or looking after portability, OpenVMS has become totally unfriendly. The real conclusion one may draw with little experience is that needed DECC$ logical setting may negatively and extremely easily interact with any other VMS codes or even parts of the same code preventing these codes to be used in normal conditions.
For the curious, I lost lot of time and efforts manually setting all the numerous SYMBOL_VECTOR linker lines while porting libreadline. This was because I was inadvertendly setting DECC$FILE_SHARING or something alike which prevented me to execute nm from binutils. I even had to debug nm to finally realize that a very correctly coded fopen was returning NULL instead of fopen'ing the file.
Philippe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2012 07:50 AM
тАО04-09-2012 07:50 AM
Re: No need to be a programmer to understand my comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-09-2012 04:02 PM
тАО04-09-2012 04:02 PM