[Info-vax] Linker question

Syltrem syltremzulu at videotron.ca
Mon Aug 30 14:52:08 EDT 2010


<VAXman- @SendSpamHere.ORG> wrote in message 
news:00AA29A9.C5057D07 at SendSpamHere.ORG...
> In article <2iPdo.88825$iV7.75322 at en-nntp-15.dc1.easynews.com>, "Syltrem" 
> <syltremzulu at videotron.ca> writes:
>>Hello !
>>
>>I usually compile and link programs on my development server and 
>>distribute
>>over to the other systems which are not in our cluster.
>>One of these nodes is currently at VMS 7.3 while our dev server (and all
>>others) is at 8.3.
>>
>>I have a problem with just 1 program calling the SOR$ routines. When 
>>linked
>>on my dev server it gives a "shareable image mismatch" error with
>>SORTSHR.EXE  if I execute it on the 7.3 server. So I have to link this one
>>program on the target system.
>>
>>Question:
>>Can I copy SORTSHR.EXE from the target system onto mine, someplace
>>convenient, and then instruct the linker to link against this version of
>>SORTSHR.EXE instead of the one "live" on my dev server ?
>>I just don't know how to tell the linker to do this, but I bet it can be
>>done.
>>
>>I know I probably could copy my own 8.3 SORTSHR.EXE to the 7.3 server and 
>>be
>>done about it, but I can't take any risks changing things at this other
>>site. Even if there are no risks, I guess... I'd rather not touch anything
>>on their server.
>>
>>Thanks !
>>Syltrem
>
> Create a directory.  Call it DISK:[ALPHA.V8.3]
>
> Copy all of the files from the V8.3 system's SYS$LIBRARY to this 
> directory.
>
> Then, ...
>
> $ DEFINE/USER SYS$LIBRARY DISK:[ALPHA.V8.3]
> $ DEFINE/USER ALPHA$LIBRARY DISK:[ALPHA.V8.3]
> $ LINK your-program
>
> I built code for all version with a disk called VMS$LIBS: and it contains
> all of the various version of all of the VMS releases.  I also keep files
> from SYS$LOADABLE_IMAGES in there too.  I quickly and easily build execut-
> ables for any version with simple defintions of:
>
> SYS$LIBRARY
> IA64$LIBRARY
> ALPHA$LIBRARY
> SYS$LOADABLE_IMAGES
> IA64$LOADABLE_IMAGES
> ALPHA$LOADABLE_IMAGES
>
> ...defined to the appropriate repository of files.
>
>
> -- 
> VAXman- A Bored Certified VMS Kernel Mode Hacker 
> VAXman(at)TMESIS(dot)ORG
>
> All your spirit rack abuses, come to haunt you back by day.
> All your Byzantine excuses, given time, given you away.

That's absolutely great !
Works like a charm !
Thank you !
Syltrem 





More information about the Info-vax mailing list