1834302 Members
2585 Online
110066 Solutions
New Discussion

libc upgrade

 
Rohinton Daruwala_1
Occasional Contributor

libc upgrade

Hi
I'm trying to compile binaries on an HP-UX 11 PA-RISC 2.0 machine to be run on an HP-UX 10.20 PA-RISC 1.1 machine.
I'm using the -march=1.1 option on gcc which produces the executable but when i copy the executable to the 10.20 machine and try to run them they give an error saying

/usr/lib/dld.sl: Can't open shared library: /usr/lib/libc.2
/usr/lib/dld.sl: No such file or directory

For this I believe I need to upgrade the libc on my 10.20 machine to libc.2

Could anyone tell me how to do this?
Also if it can be done will I be able to downgrade back to libc.1 at a later date?

Thanks
Rohinton Daruwala
2 REPLIES 2
Massimo Bianchi
Honored Contributor

Re: libc upgrade

Hi,
i did a simple check on my 11.11

/usr/lib/libc.2: PA-RISC2.0 shared library -not stripped

I think that libc.2 contains only PA2.0 code, so it will not be present in a 10.20 server.

I think that there are other flag you must specify to overcome this library.

HTH,
Massimo
Massimo Bianchi
Honored Contributor

Re: libc upgrade

Hi,
in this thread is explained what you can do...

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1cab3a7b3682d611abdb0090277a778c,00.html


Sorry i don't understand compiling :)

Massimo