- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- libraries and where to start looking
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
03-09-2004 01:39 AM
03-09-2004 01:39 AM
Background
I am building a new HP-UX 11.00 server which is due to replace an old D class as our development server. A couple of years back somebody 'hardened' the D class and installed OpenSSL and Sendmail 8.12.6 etc. They left behind a limited amount of documentation but there are shortfalls in it.
Problem
I have compiled and installed OpenSSL OpenSSH and most of the other software called for in the documents. However when I compile and install Sendmail it complains that it cant find libcrypto.0.9.6 when I try to start it
It seems that it is looking for it in the current directory and not using SHLIB_PATH
The error messages are as follows
(ilife121 ilmd-root) / $ /sbin/init.d/sendmail start
/usr/lib/dld.sl: Can't open shared library: ./libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
/sbin/init.d/sendmail[76]: 10698 Abort
/usr/lib/dld.sl: Can't open shared library: ./libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
/sbin/init.d/sendmail[91]: 10702 Abort
Question
What am I doing wrong. Is the problem in Sendmail or dld.sl. What is dld.sl. How do I tell it to look for the libcrypto library in /opt/ssl/lib
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:52 AM
03-09-2004 01:52 AM
Re: libraries and where to start looking
dld.sl is the dynamic loader. It loads the shared libraries required by the executable. Here it is not able to find libcrypto.sl.0.9.6 in it's known location. You can either export SHLIB_PATH or add /opt/ssl/lib in /etc/SHLIB_PATH file so that this is available to all the users. Make sure you have the library called libcrypto.sl.0.9.6 under /opt/ssl/lib. You will need to logoff and login if you made changes to /etc/SHLIB_PATH. Or you can simply do "export SHLIB_PATH=$SHLIB_PATH:/opt/ssl/lib" for the current shell and try starting sendmail.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 01:53 AM
03-09-2004 01:53 AM
Re: libraries and where to start looking
One workaround is creating the soft link in sendmail directory pointing it to actual libcrypto.0.9.6.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:27 AM
03-09-2004 02:27 AM
Re: libraries and where to start looking
The only time I can get Sendmail to start is if I am sitting in a directory which has a copy of libcrypto in it. But I still get a problem when I try to send a mail as it looks for the library in the ./ as soon as I hit CTRL-D
I have included the /opt/ssl/lib in the confLIBDIRS config file for sendmail compile and used the Build -f
(ilife121 ilmd-root) / $ /sbin/init.d/sendmail start
/usr/lib/dld.sl: Can't open shared library: ./libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
/sbin/init.d/sendmail[76]: 10867 Abort
/usr/lib/dld.sl: Can't open shared library: ./libcrypto.sl.0.9.6
/usr/lib/dld.sl: No such file or directory
/sbin/init.d/sendmail[91]: 10871 Abort
(ilife121 ilmd-root) / $ tail /etc/SHLIB_PATH
/usr/lib:/opt/gnome/lib:/etc/opt/resmon/lib:/opt/ssl/lib
(ilife121 ilmd-root) / $ echo $SHLIB_PATH
/opt/ssl/lib
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:31 AM
03-09-2004 02:31 AM
Re: libraries and where to start looking
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:32 AM
03-09-2004 02:32 AM
SolutionThis will list how it looks for shared library. Check what are the preferances set here. Where it looks first and where it looks second. Then if you want you can modify these preferances as you want. so that sendmail looks for SHLIB_PATH or embedded path. man chatr. chatr +b and chatr +s
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:58 AM
03-09-2004 02:58 AM
Re: libraries and where to start looking
I did a chatr +s enable /usr/sbin/sendmail and it is looking much better.
I promise I will stick to my Oracle DBA and Unix Admin role from now on and leave the C programming to the experts ;-)
Thanks a million.