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: 1164f8,418ceb5a5d0638ed X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,5306b0a542919cff X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1993-01-28 23:25:13 PST Xref: sparky comp.sys.dec:7193 comp.os.vms:22276 comp.unix.ultrix:9582 Newsgroups: comp.sys.dec,comp.os.vms,comp.unix.ultrix Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!usc!sdd.hp.com!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!dbased.nuo.dec.com!quark.enet.dec.com!lionel From: lionel@quark.enet.dec.com (Steve Lionel) Subject: Re: Anyone using ALPHA VMS, with Librarian hints? Message-ID: <1993Jan28.212113.3757@dbased.nuo.dec.com> Sender: news@dbased.nuo.dec.com (USENET News System) Reply-To: lionel@quark.enet.dec.com (Steve Lionel) Organization: Digital Equipment Corporation, Nashua NH References: <1993Jan23.123005.337@rlgsc.com> <1993Jan27.003716.3226@decuac.dec.com> <1990@niktow.canisius.edu> <1993Jan28.114604.3920@newstand.syr.edu> Date: Thu, 28 Jan 1993 21:21:13 GMT In article <1993Jan28.114604.3920@newstand.syr.edu>, jareed@rodan.acs.syr.EDU (Judith Ann Reed) writes: |> |> 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: |> [Code omitted] |> |>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. |> This isn't the linker or the librarian, it's the compiler. On VAX, the Fortran compiler puts out a separate object module definition for each routine; to the librarian, linker, it looks as if each routine is in its own module. On AXP, the compiler, by default, compiles all the routines in a source file into one module. This is why when one routine is extracted, the other comes with it. If you want the VAX behavior, compile with the /SEPARATE_COMPILATION qualifier. See the DEC Fortran for OpenVMS AXP User Manual for more details. -- Steve Lionel lionel@quark.enet.dec.com SDT Languages Group Digital Equipment Corporation 110 Spit Brook Road Nashua, NH 03062