- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem Creating 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
Forums
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
04-01-2004 11:24 PM
04-01-2004 11:24 PM
Problem Creating Shared Library
I m using gcc 3.3.3 11.11/32 bit binary created by Merjin on hppa2.0w.
I have created xaa.cpp
#include
void name()
{
cout<<"Name"<
Then compile it using
g++ -c -g xaa.cpp
which does fine
now when i create shared library of this using
g++ -g -shared -fPIC -o xaa.so xaa.o
results in
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "std::basic_ostream
collect2: ld returned 1 exit status
How can i resolve this???
Rgds
Lalit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 11:41 PM
04-01-2004 11:41 PM
Re: Problem Creating Shared Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 11:50 PM
04-01-2004 11:50 PM
Re: Problem Creating Shared Library
Still Error Occurs :(
What next ????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 12:03 AM
04-02-2004 12:03 AM
Re: Problem Creating Shared Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 12:06 AM
04-02-2004 12:06 AM
Re: Problem Creating Shared Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 12:14 AM
04-02-2004 12:14 AM
Re: Problem Creating Shared Library
g++ -c -fPIC -shared xaa.cpp
g++ -fPIC -shared -o xaa.so xaa.o
and got
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "__gxx_personality_sj0" in input file "../HPUXGCC3.3.3-32/pa20_32/lib/libstdc++.a(ios.o)"
collect2: ld returned 1 exit status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 03:54 PM
04-02-2004 03:54 PM
Re: Problem Creating Shared Library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2004 08:54 PM
04-13-2004 08:54 PM
Re: Problem Creating Shared Library
You have 2 options:
* Recompile libstdc++.a as position independent.
* Link with libstdc++.sl shared library.
I have recompiled libstdc++.a as position independent and this problem was disappeared.
Maxim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2004 10:21 AM
04-14-2004 10:21 AM
Re: Problem Creating Shared Library
You might also try linking with with standrad c library with "-lc" tag if that doesnt work.