- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to suppress warning from the dynamic loade...
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
Forums
Discussions
Discussions
Discussions
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
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
12-27-2004 07:38 AM
12-27-2004 07:38 AM
How to suppress warning from the dynamic loader?
Someone in our group would like to supress warning messages from the dynamic loader, dld.sl.
Can that be done? How?
Maybe an environment variable that can be set?
He knows he can create a stub for his own routine which is not found, but would like to do something simpler
I did "man dld.sl" and looked at DIAGNOSTICS and did not see anything mentioned.
Thanks.
This the mail he sent me:
I have a program that does dlopen on shared library, case when dlopen fails and library is not found is handled. However when I run the executable I get following warning message from the loader
/usr/lib/dld.sl: Can't find path for shared library debug.sl
/usr/lib/dld.sl: No such file or directory
Is there a reason for this warning? and is there an easy way to suppress the warning?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2004 09:52 AM
12-27-2004 09:52 AM
Re: How to suppress warning from the dynamic loader?
find your shared lib. If you don't like the warning,
just check in your code if the file exists and then
call dlopen() if it does.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2004 10:44 AM
12-27-2004 10:44 AM
Re: How to suppress warning from the dynamic loader?
As I mentioned in the original post, the software handles the case of "library not found" and understands dld.sl can't find the library.
If possible he would prefer to not change the code and deal with checkins for a product close to release. That group is trying to minimize code changes and thinks that if an environment variable exists to suppress the warning, that would be easier for them.
Is there such a method?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 05:40 AM
12-28-2004 05:40 AM
Re: How to suppress warning from the dynamic loader?
If the dependency is not real, then somewhere along the way someone needs to stop linking against that library and that will make the messages go away.
Perhaps it is still real, and someone has "forgotten" to remove some debug code close to release?
I'll get rapidly out of my networking-grounded depth here, but there may be some options on the style of binding - demand or at time of load or somesuch that may affect when debug.sl is sought.
Doing some chatr or ldd against the executable and/or libraries may find where the dependency on debug.sl exists. Also check the manpages for dlopen, chatr, and ldd.
In broad handwaving terms, supressing warning messages is rather like trying to sweep something under the rug. It may suffice for a little while, but later you have an even bigger mess to clean-up. Or if you prefer another analogy :) it is like starting a ticking timb-bomb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2004 06:49 AM
12-28-2004 06:49 AM
Re: How to suppress warning from the dynamic loader?
Rick,
Thanks for the reply.
I will pass it on.
Howard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2004 08:08 AM
12-29-2004 08:08 AM
Re: How to suppress warning from the dynamic loader?
The person knew the error message was occuring because the code uses shl_load
with the BIND_VERBOSE option and they did not want to go through the involved quality assurance process of changing code close to shipment rather adding an environment variable to a script.
Thanks again.