.so to .sl conversion ?

Hi all,

I have one libxxx.so file ( which I got from a third party ). We use shared library libxxx.sl . Is there any way to convert the .so file to .sl file ?

Thanks in advance

  • M

I presume this is an HP-UX library ?
If you do a "file libxxx.so" and check the output against another library on your host, and check they are both shared libraries, for eg:
libxxx.so: PA-RISC2.0 shared library
then you should just be able to mv the .so to .sl.
If any other shared libraries or programs depend on the .so name, then I believe you can use "chatr" to change the dependancy to the .sl name.

I hope this helps...

Yes. I am talking about HP-UX only.
The new libxxx.so is in Solaris. I already have one libxxx.sl in HP-UX , which I need to replace with the new Sloaris libxxx.so

Ran "file" command on these files :

$ file libspapi.sl
libspapi.sl: PA-RISC1.1 shared library -not stripped

$ file libspapi.so
libspapi.so: ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped

I tried re-naming new .so to .sl. But not working.
How to use "chatr" command ?

Thx in advance

  • M

Ah, sorry I misunderstood. You cannot use a shared library from a Solaris host on a HP-UX host - they use a completely different architecture.

1 Like