- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Undefined type info of std::length_error
Operating System - HP-UX
1753657
Members
5536
Online
108798
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
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
Go to solution
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
тАО07-01-2010 03:38 PM
тАО07-01-2010 03:38 PM
I'm trying to build a shared library that will be used by Oracle as an external procedure.
This shared library works fine when I try to call it using a test program built in c++. However, when I call it from Oracle, it complains about a undefined symbol:
ORA-06522: Unsatisfied data symbol '_ZTISt12length_error' in load module
'/oracle_10/product/lib/libtriggerfish.sl'.
When I search for this symbol on my library, it's undefined:
# nm -C lib* | grep length
[72]|0|0|OBJT|GLOB|0|UNDEF|type info of std::length_error
Is there a linker option that resolves this reference to me?
I tried to compile/link using the -Wl,-a,archive option, but had no success.
Thanks in advance,
Ildefonso.
This shared library works fine when I try to call it using a test program built in c++. However, when I call it from Oracle, it complains about a undefined symbol:
ORA-06522: Unsatisfied data symbol '_ZTISt12length_error' in load module
'/oracle_10/product/lib/libtriggerfish.sl'.
When I search for this symbol on my library, it's undefined:
# nm -C lib* | grep length
[72]|0|0|OBJT|GLOB|0|UNDEF|type info of std::length_error
Is there a linker option that resolves this reference to me?
I tried to compile/link using the -Wl,-a,archive option, but had no success.
Thanks in advance,
Ildefonso.
Solved! Go to Solution.
- Tags:
- unsat
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 01:05 AM
тАО07-02-2010 01:05 AM
Solution
What HP-UX version are you using? What version of aC++ or g++ are you using?
>Is there a linker option that resolves this reference to me?
If you are using your shlib as a plugin for C code, you must provide the C++ runtime:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/distributing.htm#linking
>Is there a linker option that resolves this reference to me?
If you are using your shlib as a plugin for C code, you must provide the C++ runtime:
http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/distributing.htm#linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 01:23 PM
тАО07-02-2010 01:23 PM
Re: Undefined type info of std::length_error
Thanks for your fast answer Dennis. That link that you sent solved my problem.
Best Regards,
Ildefonso
Best Regards,
Ildefonso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2010 01:27 PM
тАО07-02-2010 01:27 PM
Re: Undefined type info of std::length_error
I followed the suggestion of the article that Dennis pointed out and added these libraries in this order:
-lstd_v2 -lCsup -lunwind -lm
This made that type defined in my shared library.
-lstd_v2 -lCsup -lunwind -lm
This made that type defined in my shared library.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP