<?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: static linking libc on a itanium in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201178#M681071</link>
    <description>The only libs we need are the libc.so.1, and with it, the libdl.so.1&lt;BR /&gt;&lt;BR /&gt;So, as I understand you, if I copy these two libs to e.g. /etc, which is in the root partition, and link it with -l:/etc/libc.so -l:/etc/libdl.so this should work while booting into single user mode??&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 29 Sep 2009 13:40:15 GMT</pubDate>
    <dc:creator>Karl-Heinz Delzeit</dc:creator>
    <dc:date>2009-09-29T13:40:15Z</dc:date>
    <item>
      <title>static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201174#M681067</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I need to link with the static libc.a, but there is no libc.a available on the ia64 system.&lt;BR /&gt;&lt;BR /&gt;It should be a shell which should reside in /sbin/  as /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;/sbin/sh is statically linked.&lt;BR /&gt;&lt;BR /&gt;How can I do this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Karl-Heinz</description>
      <pubDate>Tue, 29 Sep 2009 10:47:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201174#M681067</guid>
      <dc:creator>Karl-Heinz Delzeit</dc:creator>
      <dc:date>2009-09-29T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201175#M681068</link>
      <description>Hello Karl-Heinz!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;On "Integrity" there's only libc.so... }:|&lt;BR /&gt;&lt;BR /&gt;The compiler flag used on this platform to use "minimally shared libs" is -minshared.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Greets back to Germany,&lt;BR /&gt;&lt;BR /&gt;Kobylka</description>
      <pubDate>Tue, 29 Sep 2009 11:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201175#M681068</guid>
      <dc:creator>kobylka</dc:creator>
      <dc:date>2009-09-29T11:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201176#M681069</link>
      <description>Exact that is my problem.&lt;BR /&gt;&lt;BR /&gt;How do they compile the binaries in /sbin/ ??&lt;BR /&gt;&lt;BR /&gt;They are all static linked.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Karl-Heinz</description>
      <pubDate>Tue, 29 Sep 2009 11:35:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201176#M681069</guid>
      <dc:creator>Karl-Heinz Delzeit</dc:creator>
      <dc:date>2009-09-29T11:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201177#M681070</link>
      <description>AFAIK the tools to create statically linked programs are available only to the HP-UX development team and specific partners who need to have stuff running in single user mode (like Veritas/Symantec).&lt;BR /&gt;&lt;BR /&gt;If you want to do something like this I think you'll need to approach HP formally and ask the questions...&lt;BR /&gt;&lt;BR /&gt;As to the reason why - I'm not sure - Dennis H will know and might chip in here later...&lt;BR /&gt;&lt;BR /&gt;Why do you need to compile your own code that will run in single user mode???&lt;BR /&gt;&lt;BR /&gt;I guess an alternative would be to figure out which shared libs you need and make sure they are located somewhere in the root filesystem as well... dynamic linking still *works* in single user mode - its just most of the libs aren't available...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 29 Sep 2009 12:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201177#M681070</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-09-29T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201178#M681071</link>
      <description>The only libs we need are the libc.so.1, and with it, the libdl.so.1&lt;BR /&gt;&lt;BR /&gt;So, as I understand you, if I copy these two libs to e.g. /etc, which is in the root partition, and link it with -l:/etc/libc.so -l:/etc/libdl.so this should work while booting into single user mode??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 13:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201178#M681071</guid>
      <dc:creator>Karl-Heinz Delzeit</dc:creator>
      <dc:date>2009-09-29T13:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201179#M681072</link>
      <description>This functionality isn't available for users.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It should be a shell &lt;BR /&gt;&lt;BR /&gt;The only real shell you should use is the posix shell, why would you need another?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;The only libs we need are the libc.so.1, and with it, the libdl.so.1&lt;BR /&gt;&lt;BR /&gt;That's not enough and libdl.so.1 should really be used.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;... this should work while booting into single user mode?&lt;BR /&gt;&lt;BR /&gt;No.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Duncan: If you want to do something like this I think you'll need to approach HP formally&lt;BR /&gt;&lt;BR /&gt;Right.  Or explain what you are trying to do and perhaps there is a simpler command that can do what you want, while you stick with the real shell.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;As to the reason why&lt;BR /&gt;&lt;BR /&gt;Because mixing shared vs archive versions of system libs caused problems.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I guess an alternative would be to figure out which shared libs&lt;BR /&gt;&lt;BR /&gt;That won't work since dld.so must be there too.</description>
      <pubDate>Tue, 29 Sep 2009 20:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201179#M681072</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-29T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201180#M681073</link>
      <description>We have linked with this, to search for the libs in /etc/jets:&lt;BR /&gt;ld -o jetsh checkexp.o filebackup.o gethost.o privops.o vxsch.o js_md5.o clog.o  +b /etc/jets -lc&lt;BR /&gt;&lt;BR /&gt;libc is the only lib needed by the program.&lt;BR /&gt;&lt;BR /&gt;If I set /etc/jets to SHLIB_PATH:&lt;BR /&gt;ldd jetsh&lt;BR /&gt;        libc.so.1 =&amp;gt;    /etc/jets/libc.so.1&lt;BR /&gt;        libdl.so.1 =&amp;gt;   /etc/jets/libdl.so.1&lt;BR /&gt;&lt;BR /&gt;ls -la /etc/jets&lt;BR /&gt;total 10992&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Sep 30 03:41 .&lt;BR /&gt;dr-xr-xr-x  31 bin        bin           8192 Sep 29 10:00 ..&lt;BR /&gt;-r-xr-xr-x   1 root       sys         925808 Sep 30 03:42 dld.so&lt;BR /&gt;-r-xr-xr-x   1 root       sys        4600380 Sep 29 10:00 libc.so.1&lt;BR /&gt;-r-xr-xr-x   1 root       sys          76704 Sep 29 10:00 libdl.so.1&lt;BR /&gt;&lt;BR /&gt;With this programm we want to control the /sbin/sh.&lt;BR /&gt;mv /sbin/sh /sbin/jetsh_sh&lt;BR /&gt;cp jetsh /sbin/sh&lt;BR /&gt;&lt;BR /&gt;jetsh (/sbin/sh) calls the /sbin/jetsh_sh and logs some things, set in a config file.&lt;BR /&gt;&lt;BR /&gt;This runs well, but if we want to reboot, it does not work.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2009 07:06:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201180#M681073</guid>
      <dc:creator>Karl-Heinz Delzeit</dc:creator>
      <dc:date>2009-09-30T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201181#M681074</link>
      <description>&amp;gt;We have linked with this, to search for the libs in /etc/jets:&lt;BR /&gt;&lt;BR /&gt;This isn't going to solve my statement:&lt;BR /&gt;That won't work since dld.so must be there too.&lt;BR /&gt;(You have dld.so but you need more than that. And you have to tell ld where you are placing dld.so.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If I set /etc/jets to SHLIB_PATH:&lt;BR /&gt;&lt;BR /&gt;If you are using +b, you don't need that.&lt;BR /&gt;Also, you should really be copying the shlibs into a directory like:&lt;BR /&gt;/etc/jets/lib/hpux32/&lt;BR /&gt;&lt;BR /&gt;&amp;gt;mv /sbin/sh /sbin/jetsh_sh&lt;BR /&gt;&lt;BR /&gt;You absolutely don't want to move /sbin/sh, nor replace it!&lt;BR /&gt;&lt;BR /&gt;&amp;gt;if we want to reboot, it does not work.&lt;BR /&gt;&lt;BR /&gt;Of course, what you are trying to do isn't easy, nor safe.  I would assume after your boot fails, you must reinstall/reignite the system?&lt;BR /&gt;&lt;BR /&gt;Sysadmins need to know nobody has fiddled with /sbin/sh and replaced it with a look alike with unknown functionality.</description>
      <pubDate>Wed, 30 Sep 2009 17:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201181#M681074</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-30T17:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: static linking libc on a itanium</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201182#M681075</link>
      <description>We have found a way to do this (dirt but triky).&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Fri, 02 Oct 2009 05:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/static-linking-libc-on-a-itanium/m-p/5201182#M681075</guid>
      <dc:creator>Karl-Heinz Delzeit</dc:creator>
      <dc:date>2009-10-02T05:11:13Z</dc:date>
    </item>
  </channel>
</rss>

