<?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: Shared library binding in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845104#M721318</link>
    <description>Would chatr on your program be the answer&lt;BR /&gt;man chatr&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
    <pubDate>Thu, 14 Nov 2002 17:08:44 GMT</pubDate>
    <dc:creator>Jean-Luc Oudart</dc:creator>
    <dc:date>2002-11-14T17:08:44Z</dc:date>
    <item>
      <title>Shared library binding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845103#M721317</link>
      <description>I have a program that I link with the following options ???Wl,-B,deferred so the shared library binding should be put off until a symbol from the shared library is referenced. The first thing in my main source I call shl_load("path/to/my/library",BIND_IMMEDIATE,0L) to bind to my shared library. However, when I run my program the first thing it does is attempt to bind to my shared library, I get the following error: &lt;BR /&gt;/usr/lib/dld.sl: Can't find path for shared library: my_library_name&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;The program never executes a single line of my main source.&lt;BR /&gt;I???m using running on HPUX 10.20, is there something else that I need to do to put off shared library binding.&lt;BR /&gt;Thanks,&lt;BR /&gt;Erich&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 16:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845103#M721317</guid>
      <dc:creator>Erich Hochmuth</dc:creator>
      <dc:date>2002-11-14T16:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library binding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845104#M721318</link>
      <description>Would chatr on your program be the answer&lt;BR /&gt;man chatr&lt;BR /&gt;&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 14 Nov 2002 17:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845104#M721318</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2002-11-14T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shared library binding</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845105#M721319</link>
      <description>The -B,deferred option does not control when a shared library is looked for.  It controls when the addresses of called functions are determined.  If you use the deferred mode then each function is looked up in the shared library symbol tables when the function is first called from an a.out or a particular shared library.&lt;BR /&gt;If you link a program with a shared library, then the shared library itself will need to be found at startup.&lt;BR /&gt;You can link a program without a shared library, then load the library with shl_load at runtime.  You can then look up function addresses with shl_findsym.  If you just call an extern function that is not linked in the compiler/linker will complain about the unresolved symbol.  It will create a program file, but won't make it executable.  It is possible to use "chmod +x" on that program and run it.</description>
      <pubDate>Fri, 15 Nov 2002 20:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shared-library-binding/m-p/2845105#M721319</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2002-11-15T20:39:43Z</dc:date>
    </item>
  </channel>
</rss>

