<?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: Incorrect embedded library names in shared library in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180776#M682718</link>
    <description>If not clear from JRF's link you should be using -L and -l:&lt;BR /&gt;-L../foo/bin -lfoo&lt;BR /&gt;&lt;BR /&gt;(You should also be putting foo in a lib/ directory, not bin/.)</description>
    <pubDate>Fri, 12 Jun 2009 05:20:33 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-06-12T05:20:33Z</dc:date>
    <item>
      <title>Incorrect embedded library names in shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180773#M682715</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;While building a shared library, I noticed that if I pass a path to a dependent shared library on the link line (as opposed to using the -l and -L linker options), the path is embedded in the new library. For example, building libbar that depends on libfoo:&lt;BR /&gt;&lt;BR /&gt;$ aCC -AA -b +DD64 -g -mt -o libbar.so bar.o ../foo/bin/libfoo.so&lt;BR /&gt;&lt;BR /&gt;results in:&lt;BR /&gt;$ chatr libbar.so&lt;BR /&gt;libbar.so:&lt;BR /&gt;         64-bit ELF shared library&lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             LD_LIBRARY_PATH    enabled  first &lt;BR /&gt;             SHLIB_PATH         enabled  second&lt;BR /&gt;             embedded path      enabled  third  /usr/lib/hpux64:/opt/langtools/lib/hpux64&lt;BR /&gt;         shared library list:&lt;BR /&gt;             ../foo/bin/libfoo.so&lt;BR /&gt;             libpthread.so.1&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;The name of libfoo.so is embedded with the path used on the link line. Now libbar will only load if the relative path to libfoo.so resolves- LD_LIBRARY_PATH and SHLIB_PATH do not work. Is this the way it should work? I would think that just the name of the library should be embedded.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jim Gallagher&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jun 2009 15:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180773#M682715</guid>
      <dc:creator>Jim Gallagher</dc:creator>
      <dc:date>2009-06-11T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect embedded library names in shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180774#M682716</link>
      <description>Hi Jim:&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/9482/linkertasks.htm#notrecordinglinktime" target="_blank"&gt;http://docs.hp.com/en/9482/linkertasks.htm#notrecordinglinktime&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 11 Jun 2009 15:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180774#M682716</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-11T15:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect embedded library names in shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180775#M682717</link>
      <description>JRF,&lt;BR /&gt;&lt;BR /&gt;That was a very fast reply, thank you. &lt;BR /&gt;&lt;BR /&gt;I ran into this using Boost-Build to run the the build of a several library project. Do you know if this behavior is similar on other Unix variants? &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jim</description>
      <pubDate>Thu, 11 Jun 2009 15:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180775#M682717</guid>
      <dc:creator>Jim Gallagher</dc:creator>
      <dc:date>2009-06-11T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect embedded library names in shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180776#M682718</link>
      <description>If not clear from JRF's link you should be using -L and -l:&lt;BR /&gt;-L../foo/bin -lfoo&lt;BR /&gt;&lt;BR /&gt;(You should also be putting foo in a lib/ directory, not bin/.)</description>
      <pubDate>Fri, 12 Jun 2009 05:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180776#M682718</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-12T05:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect embedded library names in shared library</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180777#M682719</link>
      <description>ok</description>
      <pubDate>Fri, 12 Jun 2009 12:24:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/incorrect-embedded-library-names-in-shared-library/m-p/5180777#M682719</guid>
      <dc:creator>Jim Gallagher</dc:creator>
      <dc:date>2009-06-12T12:24:56Z</dc:date>
    </item>
  </channel>
</rss>

