From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,3b955c0fc244b234 X-Google-Attributes: gidf7344,public X-Google-Thread: 10b612,5306b0a542919cff X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,418ceb5a5d0638ed X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-01-28 22:44:11 PST Xref: sparky comp.sys.dec:7192 comp.os.vms:22271 comp.unix.ultrix:9579 Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!hubcap!ncrcae!ncrhub2!ncrgw2!psinntp!newstand.syr.edu!rodan.acs.syr.EDU!jareed From: jareed@rodan.acs.syr.EDU (Judith Ann Reed) Subject: Anyone using ALPHA VMS, with Librarian hints? Message-ID: <1993Jan28.114604.3920@newstand.syr.edu> Organization: Syracuse University, Syracuse, NY References: <1993Jan23.123005.337@rlgsc.com> <1993Jan27.003716.3226@decuac.dec.com> <1990@niktow.canisius.edu> Date: Thu, 28 Jan 93 11:46:03 EST Greetings, netvmsgurus! We are currently attempting to port some code that uses object libraries onto an alpha running OpenVMS AXP V1.0 (from vms 5.5-1) demo machine, for benchmarking before making a purchase decision. We have discovered that the linker works differently on the Alpha than on the vax, with respect to object libraries and symbol resolution. Specifically, the following code and commands link cleanly on a VAX running VMS 5.5-1, but fails miserably on the alpha. Error msgs follow the code and commands used: Main routine (MAIN.FOR) call sub1 end File containing subroutines (MODULE.FOR) subroutine sub1 print *,'this is sub1' return end c subroutine sub2 call sub3 return end Compile commands: $ FORTRAN MAIN $ FORTRAN MODULE Library command: $ LIB/CREATE MODLIB MODULE Link command: $ LINK MAIN,MODLIB/LIB Alpha link error output: %LINK-W-NUDFSYMS, 1 undefined symbol: %LINK-I-UDFSYM, SUB3 %LINK-W-USEUNDEF, undefined symbol SUB3 referenced in psect $LINK$ offset %X00000020 in module SUB1 file DISK$USER:[PHYSICS]MODLIB.OLB;1 The alpha is including SUBROUTINE SUB2 in the executable, even though it is never called, and thus causing excessive confusing linker output. The executable *DOES* work, but we would like to find a way to modify this linker behavior. It looks as though the qualifier /SELECTIVE_SEARCH on the LIBRARIAN command would do it, but no permutations I have tried with this qualifier have eliminated the error. Can anyone out there advise me as to correct usage of this qualifier to eliminate these error msgs? They make debugging a link of a large piece of software sheer h*ll, as we have ended up with as many as 93 undefined symbols, when possibly only a very few are really needed or valid. Also, can anyone point me to some documentation that highlights this change in linker behavior from VAX VMS to the Alpha VMS? I've been searching through bookreader docs for the Alpha (a painful exercise in itself, but we won't get into that %;^) and find the behavior is documented, but not highlighted as being something different from current versions of VAX VMS, nor as something to watch out for. Please respond via email (as well as posting if you feel this is of general interest) as I tend to be behind in this newsgroup. Thanks very much for any help you can offer!!! Judith Reed jareed@mailbox.syr.edu Sysmgr, Syracuse Univ. High Energy Physics