- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: dlopen() broken by OS patches required by Java...
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
08-29-2003 12:04 AM
08-29-2003 12:04 AM
This started failing after Java 1.4 was installed to the machines, with subtly different failures for HP-UX 11.11 and HP-UX 11.0 machines.
The former now even refuses mode = RTLD_LAZY | RTLD_NODELETE
The later takes that ok, but was also refusing RTLD_GROUP.
I wonder if this is a known problem?
Regards,
Harri
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 12:10 AM
08-29-2003 12:10 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 12:24 AM
08-29-2003 12:24 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
$ what /usr/lib/dld.sl
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.36 030403
$ what /usr/lib/pa20_64/dld.sl
/usr/lib/pa20_64/dld.sl:
92453-07 linker command s800.sgs dld PA64 B.11.36 PBO 030403
On HP-UX 11.11 box:
bash-2.05a$ what /usr/lib/dld.sl
/usr/lib/dld.sl:
SMART_BIND
92453-07 dld dld dld.sl B.11.33 020617
bash-2.05a$ what /usr/lib/pa20_64/dld.sl
/usr/lib/pa20_64/dld.sl:
92453-07 linker command s800.sgs dld PA64 B.11.33 REL 020603
Note that the code in question is 32 bit code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2003 12:47 AM
08-29-2003 12:47 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
is there anything specific that made you think its something to do with the modes ?
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2003 05:58 PM
08-30-2003 05:58 PM
Re: dlopen() broken by OS patches required by Java 1.4 ?
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2003 06:21 PM
08-30-2003 06:21 PM
Re: dlopen() broken by OS patches required by Java 1.4 ?
If java 1.3 will work for you, you might want to consider going with that. As of my last check, oracle wasn't certified with java 1.4 anyway.
Just something to consider.
For any version of java you must have all the required patches installed prior to installation of java.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2003 11:48 PM
08-31-2003 11:48 PM
Re: dlopen() broken by OS patches required by Java 1.4 ?
Well, the mode proved to be the problem, because the following code started to fail, dlerror() reporting "invalid flags to dlopen()"
int mode = RTLD_LAZY;
#ifdef RTLD_LOCAL
mode |= RTLD_LOCAL;
#endif
#ifdef RTLD_NODELETE
mode |= RTLD_NODELETE;
#endif
void *handle = dlopen (path.chars (), mode);
if(!handle)
{
cerr << dlerror() << endl;
}
Note that the flags above still passed for our HP-UX 11.00 machine with its patches, but failed on HP-UX 11.11.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 01:48 AM
09-01-2003 01:48 AM
Solutionin the 32-bit dld, RTLD_NODELETE, RTLD_WORLD,RTLD_GROUP,RTLD_PARENT,RTLD_SELF and RTLD_DEFAULT were implemented only recently, for B.11.36 (PHSS_28434 for 11.00 and PHSS_28436 fro 11.11).
i'm sorry i didnt notice this earlier. you have the latest dld.sl on your 11.00 box and not on the 11.11 box.
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 02:08 AM
09-01-2003 02:08 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 02:14 AM
09-01-2003 02:14 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
Btw. for some reason the new HP-UX dlopen() does not like RTLD_GROUP | RTLD_WORLD, which is actually the default on Solaris. I guess the meaning of these flags is crystal clear only to few people...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2003 02:30 AM
09-01-2003 02:30 AM
Re: dlopen() broken by OS patches required by Java 1.4 ?
you can post your suggestions/requirements on the hpux-devtools mailing list, where more hpux developers (and the linker/loader team including me) can discuss about them. thanks!
--
ranga