- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dlopen not working
Operating System - HP-UX
1822008
Members
3457
Online
109639
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-19-2005 12:31 AM
тАО12-19-2005 12:31 AM
dlopen not working
I am trying the following code on HP-UX ...
#include
#include
#include
int main()
{
void *libhandle;
libhandle= dlopen("templib.1.sl",RTLD_LAZY|RTLD_GLOBAL);
if(libhandle == NULL)
printf("There is a problem %s\n",dlerror());
else
printf("everything went fine \n");
return 1;
}
I have set the SHLIB_PATH properly to point to the location where the library file exist but still dlopen call is failing.
The error message I get is "Can't open shared library: templib.1.sl"
What could be the possible reasons for this behavior.
The system specification is "HP-UX ccs-hp1 B.11.11 U 9000/800" I am using native compiler for creating the binary.
Raj
#include
#include
#include
int main()
{
void *libhandle;
libhandle= dlopen("templib.1.sl",RTLD_LAZY|RTLD_GLOBAL);
if(libhandle == NULL)
printf("There is a problem %s\n",dlerror());
else
printf("everything went fine \n");
return 1;
}
I have set the SHLIB_PATH properly to point to the location where the library file exist but still dlopen call is failing.
The error message I get is "Can't open shared library: templib.1.sl"
What could be the possible reasons for this behavior.
The system specification is "HP-UX ccs-hp1 B.11.11 U 9000/800" I am using native compiler for creating the binary.
Raj
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 01:04 AM
тАО12-19-2005 01:04 AM
Re: dlopen not working
Hi Raj,
HPUX doesnot support dlopen call, it supports sh_load call. So this code will not work on HP-UX os, so try it on Linux
HTH,
Prabu.S
HPUX doesnot support dlopen call, it supports sh_load call. So this code will not work on HP-UX os, so try it on Linux
HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2005 01:46 AM
тАО12-19-2005 01:46 AM
Re: dlopen not working
Hi Prabu,
I tried with the shl_load also it is still failing.
And FYI dlopen is now supported on HP-UX. have a look at following link http://docs.hp.com/en/B2355-90694/dlopen.3C.html
Thanks for you interest
Regards
Raj
I tried with the shl_load also it is still failing.
And FYI dlopen is now supported on HP-UX. have a look at following link http://docs.hp.com/en/B2355-90694/dlopen.3C.html
Thanks for you interest
Regards
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2005 05:56 PM
тАО12-20-2005 05:56 PM
Re: dlopen not working
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=72934
Please follow the link for the solution. For the HP-UX +s option has to be passed with linker to enable looking for libraries in SHLIB_PATH.
Regards
Raj
Please follow the link for the solution. For the HP-UX +s option has to be passed with linker to enable looking for libraries in SHLIB_PATH.
Regards
Raj
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP