- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't open shared library
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
тАО02-19-2010 09:05 PM
тАО02-19-2010 09:05 PM
Re: Can't open shared library
Have you tried gzip on it?
>Can you please tell me what parts of the file I need to paste.
Basically only the process with the error. And only the parts where the error occurs and enough history to see what's going on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2010 09:28 PM
тАО02-19-2010 09:28 PM
Re: Can't open shared library
I did not realize that we can attach files. I have zipped and attached the output file.
Btw, please ignore the error messages that i mentioned above...The following is the error logged in error logs of application:
Could not load library '/home/prash/newdb/lib32/libnmcfsga.sl' for reason 'Can't open shared library: libnmemso.sl'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2010 12:43 AM
тАО02-20-2010 12:43 AM
Re: Can't open shared library
>Could not load library '/home/prash/newdb/lib32/libnmcfsga.sl' for reason 'Can't open shared library: libnmemso.sl'
I see that several times. libnmemso.sl must be a dependent shlib with no particular path??
Please provide the output of "chatr /home/prash/newdb/lib32/libnmcfsga.sl".
The processes 28914, 28929, 28954 & 28958 are using libjvm.sl. Which dlopens(?) /home/prash/newdb/lib32//libnmemso.sl.
Is this the one you want?
Also, it would be helpful if you also included the exec system call:
-s open,read,close,mmap,munmap,stat,fstat,exec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2010 07:03 PM
тАО02-20-2010 07:03 PM
Re: Can't open shared library
libnmcfsga.sl:
shared library
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path disabled second Not Defined
shared library list:
dynamic libnmemso.sl
dynamic libjava.sl
dynamic libjvm.sl
dynamic /usr/lib/libcl.2
dynamic /usr/lib/librt.2
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libnss_dns.1
dynamic /usr/lib/libdld.2
dynamic /usr/lib/libnsl.1
dynamic /usr/lib/libm.2
shared vtable support disabled
explicit unloading enabled
runtime checks disabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
Yes, libnmemso.so belongs to the directory /home/prash/newdb/lib32/. This is the one that is not loading.
Please see the attached tusc1.out which contains exec system call also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2010 08:49 PM
тАО02-20-2010 08:49 PM
Re: Can't open shared library
>shared library list: dynamic libnmemso.sl
This says that if SHLIB_PATH contains m/home/prash/newdb/lib32, it should work.
What is the tusc command you are using? Why do we see other processes besides 25326, emagent? Can we start tusc on emagent and not attach after it starts?
Is emagent a SETUID process?
Why does 25326 keep going after the error? (We only need to see the error once.)
Is SHLIB_PATH before emagent starts?
>tusc1.out which contains exec system call also.
Please also include fork & exit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 03:58 PM
тАО02-22-2010 03:58 PM
Re: Can't open shared library
No, it is not SETUID process.
I have use the following command now:
tusc -fp -ea -o tusc.out
Please see the uploaded output in tusc2.out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 10:31 PM
тАО02-22-2010 10:31 PM
Re: Can't open shared library
stat("/usr/lib/libnmemso.sl", 0x778410d0) ........ ERR#2 ENOENT
You could make a soft link of the library in the /usr/lib directory
ln -sf /home/prash/newdb/lib32/libnmemso.sl /usr/lib/libnmemso.sl
Or... maybe you have some problem with SHLIB_PATHS ? (the path to the libnmemso.sl library is listed three times, should be only one).
SHLIB_PATH=/home/prash/newdb/jdk/jre/lib/PA_RISC2.0/hotspot:/home/prash/newdb/jdk/jre/lib/PA_RISC2.0:/home/prash/newdb/lib32:/home/prash/newdb/network/lib32:/home/prash/newdb/perl/lib:/home/prash/newdb/lib32:/home/prash/newdb/oui/lib/HP-UX:/home/prash/newdb/lib32
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2010 10:46 PM
тАО02-22-2010 10:46 PM
Re: Can't open shared library
Unless you can get your /home/prash/newdb/bin/emagent process to print out its SHLIB_PATH, we can only assume it doesn't have /home/prash/newdb/lib32?
Note: SHLIB_PATH must be set before emagent starts, not just before the dlopen/shl_load.
What linker/dld patches do you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 03:14 AM
тАО02-23-2010 03:14 AM
Re: Can't open shared library
The linker patch i am using is phss_39821.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2010 12:34 AM
тАО02-24-2010 12:34 AM
Re: Can't open shared library
That is the recommended patch, there is a later one: PHSS_40537