<?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: Fail when running a binary file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311949#M670299</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Key issue:&lt;BR /&gt;ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.&lt;BR /&gt;&lt;BR /&gt;This program was compiled expecting something to be there that is not.&lt;BR /&gt;&lt;BR /&gt;It needs to be recompiled normally.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 24 Nov 2008 17:42:00 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2008-11-24T17:42:00Z</dc:date>
    <item>
      <title>Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311948#M670298</link>
      <description>The binary file was created on HP-UX 11.11 PA-RISC and it is "PA-RISC2.0 shared executable dynamically linked -not stripped". Using this binary on machine when it was created is successful&lt;BR /&gt;&lt;BR /&gt;Once I run this binary on another machine, which is HP-UX Itanium running in HP-UX PA-RISC 11.11 emulation mode, my utility fails and generates the core dump. The problem point is calling pthread_mutexattr_getprotocol() from /lib/libpthread.1&lt;BR /&gt;&lt;BR /&gt;I checked this binary and libpthread library on the build machine:&lt;BR /&gt;1. $ file /bin/binary&lt;BR /&gt;/bin/binary: PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;2. $ file /lib/libpthread.1&lt;BR /&gt;/lib/libpthread.1:      PA-RISC1.1 shared library -not stripped&lt;BR /&gt;3. $ ldd -s /bin/binary&lt;BR /&gt;&lt;MUCH info="" about="" dyn="" deps=""&gt;&lt;BR /&gt;&lt;BR /&gt;On another machine:&lt;BR /&gt;1. $ file /bin/binary&lt;BR /&gt;/bin/binary: PA-RISC2.0 shared executable dynamically linked -not stripped&lt;BR /&gt;2. $ file /lib/libpthread.1&lt;BR /&gt;/lib/libpthread.1:      PA-RISC1.1 shared library -not stripped&lt;BR /&gt;3. $ ldd -s /bin/binary&lt;BR /&gt;ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.&lt;BR /&gt;&lt;BR /&gt;Why ldd on another machine says "Shared executable or shared library expected" when actually the binary is shared executable as "file" command prints?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/MUCH&gt;</description>
      <pubDate>Mon, 24 Nov 2008 16:46:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311948#M670298</guid>
      <dc:creator>H.H.</dc:creator>
      <dc:date>2008-11-24T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311949#M670299</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Key issue:&lt;BR /&gt;ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.&lt;BR /&gt;&lt;BR /&gt;This program was compiled expecting something to be there that is not.&lt;BR /&gt;&lt;BR /&gt;It needs to be recompiled normally.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 24 Nov 2008 17:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311949#M670299</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-11-24T17:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311950#M670300</link>
      <description>&amp;gt;3. $ ldd -s /bin/binary&lt;BR /&gt;ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.&lt;BR /&gt;&lt;BR /&gt;This is NOT how to use linker tools on PA binaries on IPF.&lt;BR /&gt;&lt;BR /&gt;The proper way is:&lt;BR /&gt;SDKROOT=/usr/ccs/pa ldd -s /bin/binary&lt;BR /&gt;&lt;BR /&gt;Unfortunately there are N other problems that prevent this from working.  I don't know if the latest linker patch fixes it.  I have mentioned this issue to the linker team.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Why ldd on another machine says "Shared executable or shared library expected"&lt;BR /&gt;&lt;BR /&gt;Because you are using the IPF ldd, not the PA32 ldd.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;SEP: This program was compiled expecting something to be there that is not.&lt;BR /&gt;&lt;BR /&gt;The problem is with the user or the tool not the program.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It needs to be recompiled normally.&lt;BR /&gt;&lt;BR /&gt;Yes, recompiling natively will also help.</description>
      <pubDate>Mon, 24 Nov 2008 19:54:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311950#M670300</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-24T19:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311951#M670301</link>
      <description>&amp;gt; SDKROOT=/usr/ccs/pa ldd -s /bin/binary&lt;BR /&gt;In some reasons above command is silent. I simply modified it:&lt;BR /&gt;DKROOT=/usr/ccs/pa eval ldd -s /bin/binary&lt;BR /&gt;&lt;BR /&gt;and got the same error:&lt;BR /&gt;ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Because you are using the IPF ldd, not the PA32 ldd&lt;BR /&gt;It seems in the above case (with SDKROOT variable) I used PA32 ldd. Correct?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The problem is with the user or the tool not the program.&lt;BR /&gt;Could you please give me a clues to solve this problem?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 25 Nov 2008 15:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311951#M670301</guid>
      <dc:creator>H.H.</dc:creator>
      <dc:date>2008-11-25T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311952#M670302</link>
      <description>&amp;gt; SDKROOT=/usr/ccs/pa ldd -s /bin/binary&lt;BR /&gt;&amp;gt;In some reasons above command is silent.&lt;BR /&gt;&lt;BR /&gt;Those are EXACTLY the N reasons it still doesn't work.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I simply modified it:&lt;BR /&gt;SDKROOT=/usr/ccs/pa eval ldd -s /bin/binary&lt;BR /&gt;&lt;BR /&gt;Why would you use eval?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;It seems in the above case (with SDKROOT variable) I used PA32 ldd. Correct?&lt;BR /&gt;&lt;BR /&gt;Not really, there are N files missing, including the message catalog.&lt;BR /&gt;&lt;BR /&gt;But neither of these will solve your pthread_mutexattr_getprotocol abort.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Could you please give me a clues to solve this problem?&lt;BR /&gt;&lt;BR /&gt;It is too complicated but tusc is your friend.&lt;BR /&gt;You should first see if the latest linker patch fixes it.  If not, you should report the problem to the Response Center.&lt;BR /&gt;&lt;BR /&gt;Any reason you can't make do with chatr(1)?</description>
      <pubDate>Tue, 25 Nov 2008 19:36:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311952#M670302</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-25T19:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fail when running a binary file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311953#M670303</link>
      <description>&amp;gt;ME: Those are EXACTLY the N reasons it still doesn't work.&lt;BR /&gt;&lt;BR /&gt;It looks like I documented the N steps in these threads:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1210111" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1210111&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1201952" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1201952&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the Aries troubleshooting tips document about SDKROOT:&lt;BR /&gt;&lt;A href="http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=c935c7b31d779110VgnVCM100000275d6e10RCRD" target="_blank"&gt;http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=c935c7b31d779110VgnVCM100000275d6e10RCRD&lt;/A&gt;</description>
      <pubDate>Wed, 26 Nov 2008 22:49:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/fail-when-running-a-binary-file/m-p/4311953#M670303</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-11-26T22:49:52Z</dc:date>
    </item>
  </channel>
</rss>

