Question & Answer
Question
exec(): 0509-036 Could not load program sendmail because of the following errors:
0509-150 Dependent module /usr/ud/bin/libcrypto.a(libcrypto.so) could not be loaded.
0509-152 Member llibcrypto.so is not found in archive
|
Cause
# echo $LIBPATH
/usr/ud/bin:/usr/ud/lib:/usr/lib:/usr/local/easysoft/lib:/usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/oraclewp/lib:/usr/local/easysoft/sqlserver/lib:/usr/local/easysoft/lib:/usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/oracle wp/lib:/usr/local/easysoft/sqlserver/lib: |
LIBPATH=$UDTBIN:$UDTLIB:/usr/lib:/usr/local/easysoft/lib:/usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/oraclewp/lib:/usr/local/easysoft/sqlserver/lib:$LIBPATH export UDTHOME UDTBIN PATH UCONV MYIPADDRESS LIBPATH CLASSPATH ODBCPATH |
Could not load program sendmail:
Dependent module /usr/ud/bin/libcrypto.a(libcrypto.so) could not be loaded.
Member libcrypto.so is not found in archive
|
Answer
# dump -Hv /usr/sbin/sendmail
The library search path is stored under index 0:
INDEX PATH BASE MEMBER
0 /usr/lib:/lib 1 libc.a shr.o 2 libpthreads.a shr_xpg5.o 3 libnsl.a shr.o 4 libcrypto.a libcrypto.so 5 libssl.a libssl.so 6 libsrc.a shr.o |
- Exception: A setuid or setgid program does not inherit the LIBPATH environment variable.
- Dependency conflicts
- Different applications or components might require different versions of the same library. If the wrong version is loaded, many failures might occur.
- For example
- 0509-130 Symbol resolution failed
- 0509-150 Dependent module <...> could not be loaded
- Incorrect architecture or bitness errors
- For example
- Different applications or components might require different versions of the same library. If the wrong version is loaded, many failures might occur.
- Debugging issues
- It is challenging to isolate and troubleshoot application errors with a custom LIBPATH that might provide a library unsupported by the application. Most product support teams require that the application is tested with default LIBPATH configuration.
- Maintenance issues
- Multiple third-party applications might provide custom versions of the same libraries, and application paths might vary by version, resulting in a lengthy and obsolete LIBPATH.
1) Set the environment variables in a file that is sourced when the application is started.
2) Create a wrapper script that sets the environment variables, then launches the application.
3) Use configuration files (INI, YAML, JSON, XML) that are read by the application. 4) Use command line arguments (must be supported and processed by the application).
5) Set the variables in the application user's .profile file.
6) Compile the application with the -L<dir> linker option to specify the library path.
|
SUPPORT |
---|
If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. - For more information, see: Working with IBM AIX Support: Describing the problem. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For more information, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
06 February 2024
UID
ibm17091281