- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- option to have gcc look for xxxx.sl instead of xxx...
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
тАО06-23-2006 07:55 AM
тАО06-23-2006 07:55 AM
XML_Parse (first referenced in /var/tmp//ccu5uXWb.o) (code)
at dld.sl
I know symbol XML_Parse is defined in /usr/local/lib/libexpat.sl. I THINK gcc is looking for it at /usr/local/lib/libexpat.so, instead of /usr/local/lib/libexpat.sl.
MY QUESTION: Is there an option when compiling with gcc to tell it the shared libraries have an .sl extension instead of .so?
I did have a way around this. But I bet there is a better way. I ran my gcc compile this way:
LDOPTS="-L/usr/local/lib -l:libiconv.sl"
export LDOPTS
gcc ./elements.c
Apparently the "-L" tells the linker part of gcc to look in directory /usr/local/lib. And the "-l:" tells the linker part of gcc to look at file libiconv.sl. I would have rather had gcc look for any files with .sl or .so in them under /usr/local/lib.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2006 08:03 AM
тАО06-23-2006 08:03 AM
Re: option to have gcc look for xxxx.sl instead of xxxx.so?
you can create link. if there is np libexpat.so in your system :
ln -s /usr/local/lib/libexpat.sl /usr/local/lib/libexpat.so
i.e. supporting to older versions is usually done in this way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2006 08:14 AM
тАО06-23-2006 08:14 AM
Re: option to have gcc look for xxxx.sl instead of xxxx.so?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2006 03:29 PM
тАО06-23-2006 03:29 PM
Re: option to have gcc look for xxxx.sl instead of xxxx.so?
MY QUESTION: Is there an option when compiling with gcc to tell it the shared libraries have an .sl extension instead of .so?
You can hard code the library into Makefile. Are you trying to compile in 11.11 or 11.23 ? In 11.11, .sl is the default extension of a shared library.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 12:28 AM
тАО06-26-2006 12:28 AM
Re: option to have gcc look for xxxx.sl instead of xxxx.so?
The actual option for gcc to know it's supposed to use .sl instead of .so? I don't know either.
I was going to dig into make files. Assuming I can't figure it out (I'm a pessimist), I would:
1. cd /usr/local/lib
2. grep -iEl
3. from the list of files I get,
ln -s ./file.sl ./file.so
4. then try compiling/linking again.
Am I compiling in 11.11 or 11.23?
The answer is: a bit of both.
I would be compiling on 11.11 sometime in the near future. I am currently compiling on 11.23 but it is PA-RISC2.0, NOT itanium.
steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 03:32 AM
тАО06-26-2006 03:32 AM
Solution- Tags:
- ld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2006 03:40 AM
тАО06-26-2006 03:40 AM
Re: option to have gcc look for xxxx.sl instead of xxxx.so?
Use LDOPTS. And run "man ld".
Ok. Thank you.