<?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: copying executable with shared lib in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834923#M938820</link>
    <description>the point is how to change the library list in an executable</description>
    <pubDate>Tue, 29 Oct 2002 09:10:04 GMT</pubDate>
    <dc:creator>Tore_1</dc:creator>
    <dc:date>2002-10-29T09:10:04Z</dc:date>
    <item>
      <title>copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834916#M938813</link>
      <description>Hi, say I want to copy /usr/sbin/lvdisplay&lt;BR /&gt;to /tmp and umount /usr. &lt;BR /&gt;&lt;BR /&gt;chatr lvdisplay says : &lt;BR /&gt;&lt;BR /&gt;lvdisplay: &lt;BR /&gt;         shared executable &lt;BR /&gt;         shared library dynamic path search:&lt;BR /&gt;             SHLIB_PATH     disabled  second &lt;BR /&gt;             embedded path  disabled  first  Not Defined&lt;BR /&gt;         shared library list:&lt;BR /&gt;             dynamic   /usr/lib/libc.2&lt;BR /&gt;         shared library binding:&lt;BR /&gt;             deferred &lt;BR /&gt;         global hash table disabled&lt;BR /&gt;         plabel caching disabled&lt;BR /&gt;         global hash array size:1103&lt;BR /&gt;         global hash array nbuckets:3&lt;BR /&gt;         shared vtable support disabled&lt;BR /&gt;         static branch prediction disabled&lt;BR /&gt;         executable from stack: D (default)&lt;BR /&gt;         kernel assisted branch prediction enabled&lt;BR /&gt;         lazy swap allocation disabled&lt;BR /&gt;         text segment locking disabled&lt;BR /&gt;         data segment locking disabled&lt;BR /&gt;         third quadrant private data space disabled&lt;BR /&gt;         fourth quadrant private data space disabled&lt;BR /&gt;         data page size: D (default)&lt;BR /&gt;         instruction page size: D (default)&lt;BR /&gt;&lt;BR /&gt;How can I change so that /tmp/lvdisplay uses library /tmp/libc.2 instead of /usr/lib/libc.2&lt;BR /&gt;&lt;BR /&gt;Thanks in advance. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2002 08:47:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834916#M938813</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-10-29T08:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834917#M938814</link>
      <description>why don't you simply copy the /sbin version?&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 29 Oct 2002 08:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834917#M938814</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-10-29T08:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834918#M938815</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;instead of /usr/sbin&lt;BR /&gt;take the files from /sbin.&lt;BR /&gt;The /sbin versions uses no shared libs.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 29 Oct 2002 09:00:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834918#M938815</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-10-29T09:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834919#M938816</link>
      <description>thats not the point</description>
      <pubDate>Tue, 29 Oct 2002 09:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834919#M938816</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-10-29T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834920#M938817</link>
      <description>The /usr file system cannot be umounted in the multiuser mode.&lt;BR /&gt;You have to take the system down to the single user mode.&lt;BR /&gt;Lot of processes use /usr when the system is in the multiuser mode.&lt;BR /&gt;I used to re-build my application executables to give a different path of the shared library.&lt;BR /&gt;&lt;BR /&gt;Not sure about OS commands.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 29 Oct 2002 09:02:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834920#M938817</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-29T09:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834921#M938818</link>
      <description>no, but it's a solution ;)&lt;BR /&gt;&lt;BR /&gt;Use ld&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 29 Oct 2002 09:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834921#M938818</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-10-29T09:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834922#M938819</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What is the point ?&lt;BR /&gt;&lt;BR /&gt;I would have suggested to boot in lvm maintenance mode.&lt;BR /&gt;&lt;BR /&gt;C.</description>
      <pubDate>Tue, 29 Oct 2002 09:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834922#M938819</guid>
      <dc:creator>Clemens van Everdingen</dc:creator>
      <dc:date>2002-10-29T09:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834923#M938820</link>
      <description>the point is how to change the library list in an executable</description>
      <pubDate>Tue, 29 Oct 2002 09:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834923#M938820</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-10-29T09:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834924#M938821</link>
      <description>TG : how do I do that (remember I only got the exe + libray, not the object file)? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2002 09:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834924#M938821</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-10-29T09:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834925#M938822</link>
      <description>rebuild the executables with the path specified as /tmp/lib....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2002 09:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834925#M938822</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2002-10-29T09:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834926#M938823</link>
      <description>Try enabling the use of SHLIB_PATH.&lt;BR /&gt;#chatr +s enable lvdisplay &lt;BR /&gt;#export SHLIB_PATH=${SHLIB_PATH}:/tmp</description>
      <pubDate>Tue, 29 Oct 2002 11:44:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834926#M938823</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-10-29T11:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834927#M938824</link>
      <description>De.. I tried this (-s), but lvdisplay still uses /usr/lib/libc.2 (I ran it through tusc which showed that it open /usr/lib/libc.2)&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2002 11:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834927#M938824</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-10-29T11:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: copying executable with shared lib</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834928#M938825</link>
      <description>chatr +s and SHLIB_PATH work for me-&lt;BR /&gt;&lt;BR /&gt;% cp /usr/sbin/lvdisplay .&lt;BR /&gt;% chmod +w lvdisplay&lt;BR /&gt;% chatr -s +s enable lvdisplay&lt;BR /&gt;% cp /usr/lib/libc.2 .&lt;BR /&gt;% SHLIB_PATH=. tusc -s open lvdisplay&lt;BR /&gt;tusc: lvdisplay: No such file or directory&lt;BR /&gt;% SHLIB_PATH=. tusc -s open ./lvdisplay&lt;BR /&gt;open("/usr/lib/dld.sl", O_RDONLY, 05364) ................. = 3&lt;BR /&gt;open("/opt/graphics/OpenGL/lib/libogltls.sl", O_RDONLY, 0) = 3&lt;BR /&gt;open("./libc.2", O_RDONLY, 02) ........................... = 3&lt;BR /&gt;open("/usr/lib/libdld.2", O_RDONLY, 046437) .............. = 3&lt;BR /&gt;open("./libc.2", O_RDONLY, 03) ........................... = 3&lt;BR /&gt;open("/usr/lib/nls/loc/locales.2/en_US.iso88591", O_RDONLY, 0) = 3&lt;BR /&gt;open("/usr/lib/nls/en/US/iso88591/locale.inf", O_RDONLY, 0) ERR#2 ENOENT&lt;BR /&gt;open("/usr/lib/nls/american/iso88591/locale.inf", O_RDONLY, 056) ERR#2 ENOENT&lt;BR /&gt;open("/usr/lib/nls/msg/en_US.iso88591/lvm.cat", O_RDONLY, 0177777) ERR#2 ENOENT&lt;BR /&gt;open("/usr/lib/nls/en/US/iso88591/lvm.cat", O_RDONLY, 0177777) ERR#2 ENOENT&lt;BR /&gt;Usage: lvdisplay  &lt;BR /&gt; [-v] &lt;BR /&gt; [-k]  &lt;BR /&gt; LogicalVolumePath... &lt;BR /&gt;More arguments required.&lt;BR /&gt;% &lt;BR /&gt;&lt;BR /&gt;You may need to use "chatr -l library" if some of the libraries have static instead of dynamic paths.  You will also have issues if some shared libraries depend on other shared libraries using paths that you don't like.</description>
      <pubDate>Wed, 30 Oct 2002 19:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copying-executable-with-shared-lib/m-p/2834928#M938825</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2002-10-30T19:16:54Z</dc:date>
    </item>
  </channel>
</rss>

