- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Fail when running a binary file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 08:46 AM
тАО11-24-2008 08:46 AM
Fail when running a binary file
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
I checked this binary and libpthread library on the build machine:
1. $ file /bin/binary
/bin/binary: PA-RISC2.0 shared executable dynamically linked -not stripped
2. $ file /lib/libpthread.1
/lib/libpthread.1: PA-RISC1.1 shared library -not stripped
3. $ ldd -s /bin/binary
On another machine:
1. $ file /bin/binary
/bin/binary: PA-RISC2.0 shared executable dynamically linked -not stripped
2. $ file /lib/libpthread.1
/lib/libpthread.1: PA-RISC1.1 shared library -not stripped
3. $ ldd -s /bin/binary
ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.
Why ldd on another machine says "Shared executable or shared library expected" when actually the binary is shared executable as "file" command prints?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 09:42 AM
тАО11-24-2008 09:42 AM
Re: Fail when running a binary file
Key issue:
ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.
This program was compiled expecting something to be there that is not.
It needs to be recompiled normally.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2008 11:54 AM
тАО11-24-2008 11:54 AM
Re: Fail when running a binary file
ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.
This is NOT how to use linker tools on PA binaries on IPF.
The proper way is:
SDKROOT=/usr/ccs/pa ldd -s /bin/binary
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.
>Why ldd on another machine says "Shared executable or shared library expected"
Because you are using the IPF ldd, not the PA32 ldd.
>SEP: This program was compiled expecting something to be there that is not.
The problem is with the user or the tool not the program.
>It needs to be recompiled normally.
Yes, recompiling natively will also help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2008 07:33 AM
тАО11-25-2008 07:33 AM
Re: Fail when running a binary file
In some reasons above command is silent. I simply modified it:
DKROOT=/usr/ccs/pa eval ldd -s /bin/binary
and got the same error:
ldd: Invalid file type: "/bin/binary". Shared executable or shared library expected.
> Because you are using the IPF ldd, not the PA32 ldd
It seems in the above case (with SDKROOT variable) I used PA32 ldd. Correct?
> The problem is with the user or the tool not the program.
Could you please give me a clues to solve this problem?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2008 11:36 AM
тАО11-25-2008 11:36 AM
Re: Fail when running a binary file
>In some reasons above command is silent.
Those are EXACTLY the N reasons it still doesn't work.
>I simply modified it:
SDKROOT=/usr/ccs/pa eval ldd -s /bin/binary
Why would you use eval?
>It seems in the above case (with SDKROOT variable) I used PA32 ldd. Correct?
Not really, there are N files missing, including the message catalog.
But neither of these will solve your pthread_mutexattr_getprotocol abort.
>Could you please give me a clues to solve this problem?
It is too complicated but tusc is your friend.
You should first see if the latest linker patch fixes it. If not, you should report the problem to the Response Center.
Any reason you can't make do with chatr(1)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2008 02:49 PM
тАО11-26-2008 02:49 PM
Re: Fail when running a binary file
It looks like I documented the N steps in these threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1210111
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1201952
Here is the Aries troubleshooting tips document about SDKROOT:
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801?ciid=c935c7b31d779110VgnVCM100000275d6e10RCRD