From: SMTP%"neth@blockp.enet.dec.com" 27-MAY-1994 12:20:24.12 To: EVERHART CC: Subj: Re: Help with AXP shared images From: neth@blockp.enet.dec.com () X-Newsgroups: comp.os.vms Subject: Re: Help with AXP shared images Date: 27 May 1994 13:39:30 GMT Organization: Digital Equipment Corporation, Nashua NH Lines: 46 Distribution: world Message-ID: <2s4t6i$ef7@jac.zko.dec.com> Reply-To: neth@blockp.enet.dec.com () NNTP-Posting-Host: BLOCKP X-Newsreader: mxrn 6.18-6 To: Info-VAX@CRVAX.SRI.COM X-Gateway-Source-Info: USENET >I am attempting to create and install a shared image on an Alpha >workstation running OpenVMS V1.5-1H1. The same procedure that works fine >on a VAX will not work on the Alpha. Right. There are documented changes in this area. The default PSECT attributes of SHR for COMMON blocks on VAX turned out to bite more people than it helped, and so the default was changed to NOSHR for AXP. The AXP port introduced linker changes also (which mostly improve the situation when building shareable images, as there is no longer any need for building transfer vectors by hand using MACRO). The following command procedure shows what you need to change: $ for/lis shareit $ link/map/full/share shareit,sys$input/opt SYMBOL_VECTOR=(SHARED=PSECT) PSECT_ATTR=SHARED,SHR $ install add /header/share/write sys$disk:[]shareit.exe $ define shareit sys$disk:[]shareit.exe $ for/list test_share1 $ link test_share1,sys$input/opt shareit/share PSECT_ATTR=SHARED,SHR $ for/list test_share2 $ link test_share2,sys$input/opt shareit/share PSECT_ATTR=SHARED,SHR $ and produces the output you need: $ r test_share1 inital value flag = 0 end value flag = 99 $ r test_share2 flag = 99 -------------------------------------------------------------------------------- Craig Neth !Inet : neth@progid.zko.dec.com Digital Equipment Corporation ! or : c.neth@xopen.co.uk 110 Spit Brook Road ZKO2-3/N30 Nashua, NH 03062 USA ================================================================================