Operating System - HP-UX
1834838 Members
3072 Online
110070 Solutions
New Discussion

Bad magic number for shared library: /usr/lib/pa20_64/libpthread.1

 
rakesh.babu
New Member

Bad magic number for shared library: /usr/lib/pa20_64/libpthread.1

Could some Help in resloving the issue
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Bad magic number for shared library: /usr/lib/pa20_64/libpthread.1

What OS are you using? Also PA or IPF?
What does file(1) say about your application?

If you get this error is means you have a PA32 executable and have /usr/lib/pa20_64 in your SHLIB_PATH or embedded path.

$ SHLIB_PATH=/usr/lib/pa20_64 a.out
/usr/lib/dld.sl: Bad magic number for shared library: /usr/lib/pa20_64/libc.2
/usr/lib/dld.sl: Exec format error