Operating System - HP-UX
1832822 Members
3029 Online
110045 Solutions
New Discussion

Re: Where are 32 bit libraries located in 64 bit 11i OS?

 
Sudhakar.J
Advisor

Where are 32 bit libraries located in 64 bit 11i OS?

While trying to start my 32 bit application, it throws an error and wont go further.
------------------------------------------
Bad magic number for shared library: /usr/lib/pa20_64/libpthread.1
------------------------------------------

I wanted to point my application to 32 bit library files in 64 bit OS of 11i. Can someone tell me the location of these?

ATB.
Sudhakar
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Where are 32 bit libraries located in 64 bit 11i OS?

>I wanted to point my application to 32 bit library files in 64 bit OS of 11i.

Just take the default, /usr/lib/.
Sudhakar.J
Advisor

Re: Where are 32 bit libraries located in 64 bit 11i OS?

Dennis,

By default it is referring to 64 bit. I want 32 bit library location.
Dennis Handly
Acclaimed Contributor

Re: Where are 32 bit libraries located in 64 bit 11i OS?

>By default it is referring to 64 bit.

You are confused. The default is always 32 bit on HP-UX.

In order to get your error above, you have either added the wrong embedded path or have mistakenly exported SHLIB_PATH to have /usr/lib/pa20_64.

(Assigning 0 points is not going to endear you and get other answers especially since I answered your questions.)
Heiner E. Lennackers
Respected Contributor

Re: Where are 32 bit libraries located in 64 bit 11i OS?

Hi Sudhakar,

it seems that you have the path /usr/lib/pa20_64 added to your SHLIB_PATH environment variable. Yoy should remove it to prevent loading 64bit libraries before 32bit libraries.

Hel
if this makes any sense to you, you have a BIG problem
Sudhakar.J
Advisor

Re: Where are 32 bit libraries located in 64 bit 11i OS?


Hi Dennis,
As the problem didnt sorted out, had assigned that. Anyways thanks for explaing me on this. Lol...assigning you the points now.

Thanks Dennis and Heiner.

Let me check and come back to you.


Dennis Handly
Acclaimed Contributor

Re: Where are 32 bit libraries located in 64 bit 11i OS?

>As the problem didnt sorted out, had assigned that.

Well, you can ask more questions and wait.

You can use chatr(1) on your executable to check the shlib paths.

You can also use ldd(1) on the executable to get all of the paths.