- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- *.so and *.sl files
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
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
тАО05-01-2006 04:55 PM
тАО05-01-2006 04:55 PM
What is difference between files having *.so and *.sl extension ? I know they are shared object and shared library but wanted to know in what respect they differ ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 05:05 PM
тАО05-01-2006 05:05 PM
Solution*.so shared libraries are used in HP-UX 11.20 and upwards.
*.sl are used in PA-RISC (11.11)
Basically, *.so files reside in /usr/lib/hpux32 and /usr/lib/hpux64/ on Itanium.
*.sl resides in /usr/lib
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 05:09 PM
тАО05-01-2006 05:09 PM
Re: *.so and *.sl files
This page gives a good overview of Shared Object and Static libraries:
http://users.actcom.co.il/~choo/lupg/tutorials/libraries/unix-c-libraries.html
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 06:37 PM
тАО05-01-2006 06:37 PM
Re: *.so and *.sl files
HP-UX (pa-risc) prefers .sl, while the Linux, Solaris, and AIX world uses .so
The problem with some GNU utils that produce these .so's is that they create ONE object, called shr.o, and promote that to a shared object or shared library with ld -b
That means that the shr.o includes all the exported varioables of the library, and that if needed only one function, it loads all the others at the same time, causing sometimes name conflicts with other libraries, so that the functions you wanted from liba is now forced from libb because libb was the only lib to define function foo () you so desperately wanted to use.
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 07:14 PM
тАО05-01-2006 07:14 PM
Re: *.so and *.sl files
Here is good reference site for .sl and .so
http://ptolemy.berkeley.edu/ptolemyclassic/almagest/docs/user/html/sharedlib.doc1.html
Regards,
Sung
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2006 07:32 PM
тАО05-01-2006 07:32 PM
Re: *.so and *.sl files
An extract from the above:
A shared library consists of an archive of object files (.o files) collected into one file by either the compiler or the linker. Usually, to create a shared library, the .o files must be compiled into Position Independent Code (PIC) by the compiler. The compiler usually has a special option to produce PIC code, under gcc/g++, the -fPIC option produces PIC code. Shared libraries have suffixes that are architecture dependent: under SunOS4.1 and Solaris, shared libraries end with .so (i.e., libg++.so); under HPUX, shared libraries end with .sl (i.e., libg++.sl).
Example:
/etc/opt/resmon/lib/libresmon.sl
/opt/netscape/plugins/libnullplugin.so
# file /etc/opt/resmon/lib/libresmon.sl
/etc/opt/resmon/lib/libresmon.sl: PA-RISC1.1 shared library -not stripped
---
# file /opt/netscape/plugins/libnullplugin.so
/opt/netscape/plugins/libnullplugin.so: PA-RISC1.1 shared library -not stripped
----
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2007 02:32 PM
тАО06-10-2007 02:32 PM
Re: *.so and *.sl files
Understand that
*.so is generally used in HPUX based on Itanium platform while *.sl is generally used in HPUX based on PA-RISC platofrm
But can Itaium-based HPUX use *.sl as well? If so, is there any any useful documentation can you experts can point me to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2007 03:01 PM
тАО06-10-2007 03:01 PM
Re: *.so and *.sl files
Yes, but it isn't recommended, see ld(1) under -lx:
http://docs.hp.com/en/B2355-60103/ld.1.html