CMSHR.EXE and the Linker

OpenVMS x86 Field Test questions, reports, and feedback.

Topic author
rodprince
Contributor
Posts: 18
Joined: Mon Aug 14, 2023 6:00 pm
Reputation: 0
Status: Offline

CMSHR.EXE and the Linker

Post by rodprince » Wed Aug 16, 2023 10:24 am

Now that the Pascal Compiler is available we are testing our system build procedures on x86. We use CMS for our source code libraries. Many of our utilities make use of the callable CMS interface. We have noticed that with x86 the sys$library:cmsshr.exe is not "automatically" included in an image link. We have had to modify our build procedures to include a linker opt file that specifies sys$library:cmsshr.exe/share so that they can resolve any CMS$ calls they may have. While its not an issue to modify the build procedures, I was wanting to point it out in case its not the expected behavior.

We currently use the following on our IA64 &Alpha systems

say = "write sys$output"
$!
$ say " Compiling Build..."
$ pascal build
$!
$ say " Compiling build cld..."
$ set command/object build_cld
$!
$ say " Linking build..."
$ link build,build_cld
$!

We have had to change the link command to be

$ link build,build_cld,build/opt

The build.opt file contains the following: sys$library:cmsshr/share
Last edited by rodprince on Wed Aug 16, 2023 10:24 am, edited 1 time in total.

User avatar

imiller
Master
Posts: 147
Joined: Fri Jun 28, 2019 8:45 am
Reputation: 0
Location: South Tyneside, UK
Status: Offline
Contact:

Re: CMSHR.EXE and the Linker

Post by imiller » Wed Aug 16, 2023 11:24 am

If CMS is installed then it should be in SYS$SHARE:IMAGELIB.OLB

$ pipe lib/list sys$share:imagelib.olb | sear sys$input: cms

should show
CMSSHR

and linker should therefore find it.

Added in 8 minutes 15 seconds:
I did a quick test

The following products have been installed:
VSI X86VMS CMS V4.8-9 Layered Product
VSI X86VMS DECSET V13.0-1 Platform (product suite)

%PCSI-I-IVPEXECUTE, executing test procedure for VSI X86VMS CMS V4.8-9 ...
%PCSI-I-IVPSUCCESS, test procedure completed successfully
$ pipe lib/list sys$share:imagelib.olb | sear sys$input: cms
%SEARCH-I-NOMATCHES, no strings matched

Added in 8 minutes 1 second:
$lib/insert sys$share:imagelib.olb sys$share:cmsshr.exe

should add it
Ian Miller
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].


Topic author
rodprince
Contributor
Posts: 18
Joined: Mon Aug 14, 2023 6:00 pm
Reputation: 0
Status: Offline

Re: CMSHR.EXE and the Linker

Post by rodprince » Wed Aug 16, 2023 12:56 pm

I do see the sys$share:cmsshr.exe file.

The lib/insert command you specified makes the linker all happy, and I don't have to modify any build procedures.

Thank You

Rod


jreagan
VSI Expert
Master
Posts: 139
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: CMSHR.EXE and the Linker

Post by jreagan » Wed Aug 16, 2023 2:06 pm

The DECset installation should have done that insert command for you. I'll pass this long to the right person.

User avatar

cct
Master
Posts: 127
Joined: Sat Aug 15, 2020 9:00 am
Reputation: 0
Location: Cambridge, UK
Status: Offline

Re: CMSHR.EXE and the Linker

Post by cct » Wed Aug 16, 2023 3:21 pm

Slight thread drift, but will a future DECSet include LSE? Any rough timescale?

CHris
--
Chris

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Online
Contact:

Re: CMSHR.EXE and the Linker

Post by arne_v » Wed Aug 16, 2023 4:14 pm

cct wrote:
Wed Aug 16, 2023 3:21 pm
Slight thread drift, but will a future DECSet include LSE? Any rough timescale?
https://vmssoftware.com/about/roadmap/ says H2 aka within next 4.5 month.
Arne
arne@vajhoej.dk
VMS user since 1986

User avatar

cct
Master
Posts: 127
Joined: Sat Aug 15, 2020 9:00 am
Reputation: 0
Location: Cambridge, UK
Status: Offline

Re: CMSHR.EXE and the Linker

Post by cct » Wed Aug 16, 2023 7:02 pm

Missed that - thanks Arne

Chris
Last edited by cct on Wed Aug 16, 2023 7:03 pm, edited 1 time in total.
--
Chris


jreagan
VSI Expert
Master
Posts: 139
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: CMSHR.EXE and the Linker

Post by jreagan » Thu Aug 17, 2023 9:54 am

Huh? The current DECset kit doesn't include LSE? I'm running LSE on my x86 systems (and have for a while now). Maybe I have an internal kit that hasn't been published? I'll go ask.

User avatar

arne_v
Master
Posts: 347
Joined: Fri Apr 17, 2020 7:31 pm
Reputation: 0
Location: Rhode Island, USA
Status: Online
Contact:

Re: CMSHR.EXE and the Linker

Post by arne_v » Thu Aug 17, 2023 7:17 pm

jreagan wrote:
Thu Aug 17, 2023 9:54 am
Huh? The current DECset kit doesn't include LSE?
That is the word.

And what the roadmap says.

And what https://vmssoftware.com/products/langua ... ve-editor/ says.
jreagan wrote:
Thu Aug 17, 2023 9:54 am
I'm running LSE on my x86 systems (and have for a while now). Maybe I have an internal kit that hasn't been published? I'll go ask.
I am sure you have access to a lot of things the rest of us don't have.
Arne
arne@vajhoej.dk
VMS user since 1986


jreagan
VSI Expert
Master
Posts: 139
Joined: Tue Dec 01, 2020 8:40 am
Reputation: 0
Status: Offline

Re: CMSHR.EXE and the Linker

Post by jreagan » Fri Aug 18, 2023 1:52 pm

Yes, I've confirmed that the current kit on the portal doesn't have LSE. I have an internal version. It works for me, but I did notice that in spite of asking for VMSLSE command syntax, it comes up in PORTABLE more. I had to add explicit commands to my LSE init file. The maintainer knows about that. I'll push on him as appropriate.

Post Reply