HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Issues with shared libraries and static memebers
Operating System - HP-UX
1830730
Members
2486
Online
110015
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
Forums
Discussions
Discussions
Discussions
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
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
01-21-2003 04:24 AM
01-21-2003 04:24 AM
Issues with shared libraries and static memebers
Hi,
I have an issue with loading librarys on HPUX 11.00 and 11i, with gcc 3.2 using C++
I had an problem with the dlopen call not correctly setting up the static classes correctly. Therefore I tried
Load the Library
Get the address of _GLOBAL__DI
run that function
This does work however I have a problem with shutdown causing a seg 11 fault. The only information I can find on this issue is around 3 years old. Please could someone confirm/deny if this approach is still required or has been fixed in this version of hpux and my makefiles are incorrect
I have an issue with loading librarys on HPUX 11.00 and 11i, with gcc 3.2 using C++
I had an problem with the dlopen call not correctly setting up the static classes correctly. Therefore I tried
Load the Library
Get the address of _GLOBAL__DI
run that function
This does work however I have a problem with shutdown causing a seg 11 fault. The only information I can find on this issue is around 3 years old. Please could someone confirm/deny if this approach is still required or has been fixed in this version of hpux and my makefiles are incorrect
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2003 03:27 AM
01-23-2003 03:27 AM
Re: Issues with shared libraries and static memebers
I had a similar problem. I traced it back to the following cause: When loading a shared lib written in C++ dynamically from a C program, the global static members do not get initialized. The remedies I found are: Either compile the C program with the C++ compiler, call the initilization code explicitly, or not to use global static variables in your library (if you own the code).
You are probably referring to one of these remedies?
I don't think there is a OS or compiler patch for this. However maybe there is one available in the meantime.
You are probably referring to one of these remedies?
I don't think there is a OS or compiler patch for this. However maybe there is one available in the meantime.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP