- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Directory Path listing of .sl in ldd
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
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
тАО04-14-2005 12:14 AM
тАО04-14-2005 12:14 AM
Directory Path listing of .sl in ldd
When doing ldd file.sl,
I am getting full path names of shared libs.
Eg.
a.sl -> /A/x.sl
b.sl -> /A/B/y.sl
Now the problem that I am facing is that:
There are 3 variable paths from where a .sl searches shared libs during runtime
SH_LIBPATH, LD_LIBRARY_PATH and Embedded Path (which contains the above eg. path )
Now during runtime it will search the shared libs in the following order
Embedded Path -> LD_LIBRARY_PATH -> SH_LIBPATH
So if i change my build location shared libs for some unit testing, then central testing will give abnormal results as it will start referencing these libs.
I have tried to disable path using
chatr +b disable
and
chatr +s disable
It gives me warning Embedded paths can't be disabled in an ELF file, and it disables the LD and SH ones.
So what should I do to overcome this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 12:32 AM
тАО04-14-2005 12:32 AM
Re: Directory Path listing of .sl in ldd
$ chatr +s enable file.sl
to change the search order to
LD_LIBRARY_PATH first
SHLIB_PATH second
embedded path third
Is that what you were looking for or am I a way off?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2005 04:58 AM
тАО04-14-2005 04:58 AM
Re: Directory Path listing of .sl in ldd
but i think the proper way to handle this is to set LD_LIBRARY_PATH appropriately in the different environments.
if you turn off all paths, where do you want the program to pick up libraries from ? the system libraries path (/usr/lib/...)?
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2005 07:22 PM
тАО04-15-2005 07:22 PM
Re: Directory Path listing of .sl in ldd
All confused.
That day i had tried all the options including chatr +s enable file.sl and nothing worked.
Today by itself its showing the different order.
LD_LIBRARY_PATH -> SH_LIBPATH -> EmbeddedPath
+nodefaultrpath option worked out.
But what is it doing exactly, i think its not letting the .sl to search for that shared lib during runtime or something else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2005 01:51 AM
тАО04-18-2005 01:51 AM
Re: Directory Path listing of .sl in ldd
--
ranga
[i work for hpe]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2005 04:20 PM
тАО04-18-2005 04:20 PM
Re: Directory Path listing of .sl in ldd
Can you help me in finding out what did i do wrong on the first occasion,
as it showed different order of all the 3 paths and i couldn't change them,
next time onwards its giving a different order. should i use +nodefaultrpath in my linking.
will there be any side effets?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2005 04:23 PM
тАО04-22-2005 04:23 PM
Re: Directory Path listing of .sl in ldd
--
ranga
[i work for hpe]