<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need help with OpenVMS Linker warnings in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363025#M36508</link>
    <description />
    <pubDate>Sat, 15 Oct 2011 20:01:38 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2011-10-15T20:01:38Z</dc:date>
    <item>
      <title>Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362977#M36502</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wrestling with some linker warnings.&amp;nbsp; I'm running VMS 8.3-1H1 and Oracle Rdb 7.2-400.&amp;nbsp; I am linking a COBOL application.&amp;nbsp; The link statement is below.&amp;nbsp; All of the subroutine objects, including the one referenced in the warnings (RDB$GET_RES_PHASE) is in the MCT$LIB:OBJLIB.OLB object library that is referenced in the link command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$ link/executable=MCT$EXE:&amp;nbsp;&amp;nbsp; mct$obj:PROCESS_RES_APPROVE.OBJ,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql$user/lib,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; mct$lib:objlib.olb/lib&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-W-NUDFSYMS, 2 undefined symbols:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL$INIT_HANDLER_5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL$RUNTIME_HANDLER&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMH$FIXEDQ_UR (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMH$FIXEDQ_UW (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACE_FREE_VM (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACE_FREE_VMLIST (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACE_GET_VM (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACE_RET_VMH (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACK_FREE_VM (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-I-UDFSYM,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VMHDEB$TRACK_GET_VM (Weak Reference)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-W-USEUNDEF, undefined symbol SQL$RUNTIME_HANDLER referenced&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; section: $LINKER UNWINFO$&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset: %X0000000000000088&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; module: RDB$GET_RES_PHASE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file: USER1:[MCT_DEV.LIB]OBJLIB.OLB;1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;%ILINK-W-USEUNDEF, undefined symbol SQL$INIT_HANDLER_5 referenced&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; section: SQL$MACRO_CODE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; offset: %X0000000000001070&amp;nbsp; slot: 2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; module: RDB$GET_RES_PHASE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file: USER1:[MCT_DEV.LIB]OBJLIB.OLB;1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I can get a successful link if I create an options file and link as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROCESS_RES_APPROVE.OPT:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;MCT$LIB:OBJLIB/INCLUDE=(GET_RES_PHASE,RDB$GET_RES_PHASE)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SQL$USER/LIBRARY&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MCT$LIB:OBJLIB/LIBRARY&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$ LINK/EXE=MCT$EXE:&amp;nbsp; MCT$OBJ:PROCESS_RES_APPROVE, MCT$LIB:PROCESS_RES_APPROVE/OPT&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone explain why the options file works where I explicitly specify this particular object in an INCLUDE specification when the objects for the included routines are in the object library referenced by the MCT$LIB:OBJLIB/LIBRARY reference in the original link command at the top of this post?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, I'd like to get the link to work, if possible, without an options file as&amp;nbsp;this is an automated build system utilizing MMS and this particular executable link is the only one exhibiting this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Phil Van Kley&lt;/P&gt;
&lt;P&gt;Maricopa County Treasurer's Office&lt;/P&gt;
&lt;P&gt;Phoenix, AZ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="2" color="#000000"&gt;&lt;STRONG&gt;P.S. This thread has been moved from OpenVMS&amp;gt;General to Languages and Scripting board- Forum Moderator&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2011 06:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362977#M36502</guid>
      <dc:creator>Phil VanKley</dc:creator>
      <dc:date>2011-10-17T06:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362983#M36503</link>
      <description>&lt;P&gt;The linker options file is a common portion of a link command and quite commonly used, and the /INCLUDE references here bring in the rest of the dependencies that then resolve the rest of the Rdb-related symbols and routines; it's the reference that pulls in the rest of the Rdb SQL environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I don't recognize the&amp;nbsp;RDB$GET_RES_PHASE symbol; the usual /INCLUDE I've created and used has had different Rdb-related symbols referenced.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for some background on this issue, please see the &lt;A target="_blank" href="http://download.oracle.com/otn_hosted_doc/rdb/pdf/gsp.pdf"&gt;Oracle Rdb Guide to SQL Programming&lt;/A&gt;&amp;nbsp;(that's V7) documentation for your Rdb version, among other available resources. And see information such as the following quote from the help text for SQL70:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;When users link programs, they must somehow specify the SQL&lt;BR /&gt;interface user library SQL$USER.OLB. If you define the logical&lt;BR /&gt;name LNK$LIBRARY as the user library, you save users from having&lt;BR /&gt;to explicitly specify that library each time they link their&lt;BR /&gt;embedded SQL programs.&lt;/P&gt;&lt;P&gt;To define LNK$LIBRARY, issue this command:&lt;/P&gt;&lt;P&gt;$ DEFINE/SYSTEM/EXECUTIVE/NOLOG LNK$LIBRARY SQL$USER&lt;/P&gt;&lt;P&gt;To make sure LNK$LIBRARY is defined each time the system starts&lt;BR /&gt;up, add the previous command to the SYS$STARTUP:RMONSTART.COM&lt;BR /&gt;command file.&lt;/P&gt;&lt;P&gt;You must also check to see that the system logical name&lt;BR /&gt;LNK$LIBRARY is not already being used. Your site or other&lt;BR /&gt;products may have already defined the LNK$LIBRARY logical&lt;BR /&gt;name. If so, you should add a numeric suffix to the LNK$LIBRARY&lt;BR /&gt;definition you create and to the definition in RMONSTART.COM.&lt;BR /&gt;See the Oracle Rdb7 Installation and Configuration Guide for more&lt;BR /&gt;information about adding a suffix.&lt;/P&gt;&lt;P&gt;If you do not define LNK$LIBRARY to specify the SQL user library,&lt;BR /&gt;users must explicitly name it when they link programs with&lt;BR /&gt;embedded SQL statements. For example:&lt;/P&gt;&lt;P&gt;$ LINK my_prog, SQL$USER/LIBRARY&lt;/P&gt;&lt;P&gt;See the OpenVMS documentation set for more information about the&lt;BR /&gt;LINK command.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried quoting that text, but the forum software didn't allow it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And FWIW, the linker options file is also how identification strings, shareable image match values and the rest of the settings are incorporated into the executable and shareable images that are getting created by the linker commands. &amp;nbsp;It's quite commonly encountered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I get a chance, I'll look up one of the example linker commands around, but the Rdb manuals do have the references to this stuff.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 15:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362983#M36503</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-10-15T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362985#M36504</link>
      <description>&lt;P&gt;Thanks for the quick response! &amp;nbsp;Note that I do have the SQL$USER library referenced in the original link command that results in the warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We do links with Rdb-contained routines all the time. &amp;nbsp;For some reason, this is the only executable out of the other hundreds we have that has this issue.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 15:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362985#M36504</guid>
      <dc:creator>Phil VanKley</dc:creator>
      <dc:date>2011-10-15T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362989#M36505</link>
      <description>&lt;P&gt;I did try defining the LNK$LIBRARY as specified in the documentation reference (DEFINE/SYSTEM/EXEC LNK$LIBRARY SQL$USER). &amp;nbsp;After doing this, my original link command was successful with no warnings. &amp;nbsp;Obviously, it is doing more with this logical name than the explicit reference to SQL$USER/LIB I have on the link command line. &amp;nbsp;I don't understand enough about how the linker works, though, to know why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will look deeper into my Rdb documentation concerning this as you suggested. &amp;nbsp;Thanks again so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 15:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362989#M36505</guid>
      <dc:creator>Phil VanKley</dc:creator>
      <dc:date>2011-10-15T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362991#M36506</link>
      <description>&lt;P&gt;FWIW, I usually use LNK$LIBRARY (possibly with the LNK$LIBRARY_sequence-number definitions, when working with a number of libraries) via DEFINE /NOLOG or DEFINE /JOB /NOLOG&amp;nbsp;either at login or at the top of the DECset MMS, mmk or gmake, when I'm using that approach. &amp;nbsp;(And when I'm spending more time tussling with the make tools.) &amp;nbsp;Defining these logical name settings system-wide can (will) cause problems when using multi-version Rdb. &amp;nbsp;(If you are running multi-version Rdb, then there are set-up tools that establish a pile of definitions in the user's job context for you.) &amp;nbsp;And when working with logical names, these make tools create subprocesses so DEFINE [/PROCESS] works when invoked at the top level, but the setting won't be maintained and won't propagate when invoked within a subprocess.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 16:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362991#M36506</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-10-15T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362999#M36507</link>
      <description>&lt;P&gt;Good point on the rdb multiversion. &amp;nbsp;I am not running multi-version now but may down the road. &amp;nbsp;I'll look at implementing the process or job define approach in our build procedures. &amp;nbsp;Thanks so much for your assistance on this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 16:33:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5362999#M36507</guid>
      <dc:creator>Phil VanKley</dc:creator>
      <dc:date>2011-10-15T16:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363025#M36508</link>
      <description />
      <pubDate>Sat, 15 Oct 2011 20:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363025#M36508</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-10-15T20:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363029#M36509</link>
      <description>&lt;P&gt;&amp;gt;Only a sissy uses LNK$LIBRARY. (It's too easy to leave it defined,&amp;nbsp;and mess up future link jobs.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ayup. &amp;nbsp;But that's also the OpenVMS way, what with examples including the LNK$LIBRARY* definitions, the DECC$* settings, ALPHA$LIBRARY and IA64$LIBRARY, the JAVA$* settings, the GNV logical names and environment settings and login files, and a whole host of similar context-specific and non-volatile settings that are around on VMS. &amp;nbsp;This is unfortunate; that none of this ever got rolled into an architected management interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2011 20:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363029#M36509</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-10-15T20:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363269#M36510</link>
      <description />
      <pubDate>Sun, 16 Oct 2011 19:07:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363269#M36510</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-10-16T19:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363285#M36511</link>
      <description>&lt;DIV&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt; Obviously, it is doing more with this logical name than the explicit reference to SQL$USER/LIB I have on the link command line. &amp;nbsp;I don't understand enough about how the linker works, though, to know why.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;Just look at HELP LINK /USERLIBRARY: The OLBs pointed to by LNK$LIBRARY are searched after all specified input files have been processed. You then specified ﻿﻿SQL$USER once as an input file on the command line and a second time with this logical. The second search/processing of the OLB resolved the undefined symbols.&lt;/DIV&gt;&lt;DIV&gt;And yes, it is the same as if you had the same library a second time on the command line.&lt;/DIV&gt;</description>
      <pubDate>Sun, 16 Oct 2011 20:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5363285#M36511</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-10-16T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5364553#M36512</link>
      <description>&lt;P&gt;Phil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As you've probably gathered from the comments so far, linker processing is strictly left to right. At any point in link processing there is a set of unresolved references. If the next entity in the link list is a library, it is searched to try to resolve anything missing. Each new module may also add more references. After scanning a library, if new references were found, the library is scanned again, repeating until no new modules are resolved. Once a library is exhausted, it is forgotten.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That means the order of libraries in the link list can be important. Typically the list should be from "high level" to "low level" left to right. If&amp;nbsp;modules you know are present aren't being resolved, reordering the libraries may fix the problem.&amp;nbsp;In your case, if OBJLIB makes references to SQL, it should be moved to the left of SQL$USER. Occasionally you'll find a pair of libraries with circular references, so library A makes references to modules in library B and library B has references to modules in library A. In this case, one way&amp;nbsp;to resolve the circularity is to repeat the libraries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ LINK x,A/LIBRARY,B/LIBRARY,A/LIBRARY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(in extreme cases you may need more repeats). Arguably these&amp;nbsp;libraries&amp;nbsp;are poorly structured. If they're your own code, perhaps they could be combined into a single library, or reorganised to break the circularities. Even if they're not your own code, the librarian is fast enough that for libraries in the size range of SQL$USER, you could extract all modules from multiple libraries and create a new, combined, temporary library&amp;nbsp;for the duration of the link, without really noticing.&amp;nbsp;Another option is to use /INCLUDE, or have a module with&amp;nbsp;unreachable references to force inclusion of all the necessary modules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use $ LINK/MAP/FULL/CROSS to get an idea of which modules are involved in the circularity, and the order of resolution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you understand the way link processing works, and the dependence tree of your code, it should become clear how to structure the LINK command.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2011 20:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5364553#M36512</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-10-17T20:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5365625#M36513</link>
      <description>&lt;P&gt;&amp;gt;linker processing is strictly left to right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly the same as the linker on HP-UX when dealing with archive libs.&lt;/P&gt;&lt;P&gt;(With shared libs it doesn't matter so much since they are searched at runtime.)&lt;/P&gt;&lt;P&gt;Also if you don't want to add duplicates or think hard about ordering, the linker provides a +n option that goes back to the beginning of the list and searches until no more modules are added.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2011 18:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5365625#M36513</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-10-18T18:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5366605#M36514</link>
      <description>Denis,&lt;BR /&gt;&lt;BR /&gt;Your HP-UX ld statement with archive libraries versus dynamic libraries is also true on Linux and ought to be identically true on any proprietary/non proprietary Unix aware operating system.&lt;BR /&gt;&lt;BR /&gt;As the VMS is unable to do a implicit dynamic link, all dynamic libraries (shareable images) references must be solved statically by the VMS linker.&lt;BR /&gt;Kind</description>
      <pubDate>Wed, 19 Oct 2011 15:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5366605#M36514</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-10-19T15:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with OpenVMS Linker warnings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5366935#M36515</link>
      <description>&lt;P&gt;﻿﻿&amp;gt;&amp;gt;&amp;gt;linker processing is strictly left to right.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;It depends. Did you ever wonder why these linker guys put the "Object Module Synopsis" into the map file? Once you use clusters the order may not be what you expect as "left to right".&lt;/DIV&gt;&lt;DIV&gt;Create a main.obj with a reference to symbol sub1 and sub2 defined in the object sub1.obj and and the shareable image sub2.exe. Create a object library s.olb and add sub1.obj and another independent object any.obj (which is not referenced but which you always want to have in your image).&lt;/DIV&gt;&lt;DIV&gt;On Alpha...&lt;/DIV&gt;&lt;DIV&gt;$ link/map=main/full/cross/exe=main tt:/opt&lt;/DIV&gt;&lt;DIV&gt;sub2/share&lt;/DIV&gt;&lt;DIV&gt;main&lt;/DIV&gt;&lt;DIV&gt;cluster=sub1,,,s/lib/incl=any&lt;/DIV&gt;&lt;DIV&gt;[ Exit ]&lt;/DIV&gt;&lt;DIV&gt;%LINK-W-NUDFSYMS, 1 undefined symbol:&lt;/DIV&gt;&lt;DIV&gt;%LINK-I-UDFSYM, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUB1&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;%LINK-W-USEUNDEF, undefined symbol SUB1 referenced&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in psect $LINK$ offset %X00000030&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in module MAIN file SYS$SYSDEVICE:[HARTMUT]MAIN.OBJ;1&lt;/DIV&gt;&lt;DIV&gt;$&lt;/DIV&gt;&lt;DIV&gt;The order of processing input files is defined by the linker clusters and the file order, known as "left to right". User clusters come first, then other clusters.&lt;/DIV&gt;&lt;DIV&gt;In the map you will see in the Object Module Synopsis the modules SUB2, ANY and MAIN (plus DECC$SHR, SYS$PUBLIC_VECTORS) and their corresponding files.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In the Image Section Synopsis you will see the clusters SUB2, SUB1 and DEFAULT_CLUSTER (plus DECC$SHR, SYS$PUBLIC_VECTORS).&lt;/DIV&gt;&lt;DIV&gt;With sub2/share you define the first user, or non-default cluster, so sub2.exe is processed first. ﻿﻿With main you do not define a user cluster, so main will go to the default cluster, which will be processed later.&amp;nbsp;With cluster=sub1 you define the second user cluster so s.olb is processed next. Here only the module any is included: there is no reference to the symbol sub1, yet. No more user cluster, now process main.obj which is the first module on the default cluster. It references sub1 which is not yet defined and will not be resolved by any subsequent input file (DECC$SHR, SYS$PUBLIC_VECTORS).&lt;/DIV&gt;&lt;DIV&gt;Obviously, shareable images are handled differently than object modules: when sub2 is processed, there is no reference to the symbol sub2.&lt;/DIV&gt;&lt;DIV&gt;And yes, if you put main on a user cluster the link completes without a problem.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;gt;&amp;gt; As the VMS is unable to do a implicit dynamic link...&lt;/DIV&gt;&lt;DIV&gt;VMS and the executable image format were never designed for dynamic linking. The symbols in a shareable image are for the linker and lib$fis. There are no symbols in main images: no symbol reference to a shareable image. As a result, VMS can't do symbol pre-emption. That's a main difference to Unix/Linux.&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Oct 2011 20:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/need-help-with-openvms-linker-warnings/m-p/5366935#M36515</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-10-19T20:42:35Z</dc:date>
    </item>
  </channel>
</rss>

