- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- using STL on HPUX
Operating System - Linux
1752782
Members
6425
Online
108789
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
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
тАО03-18-2005 04:27 AM
тАО03-18-2005 04:27 AM
using STL on HPUX
Hi there,
I am facing a problem regarding stl functions used by HPUX 11.11 g++ compiler 3.3.3.
consider following program. which is compiled as:g++ -o test -lstdc++ test.cpp
After execution on the other machine where it can resolve all the dependencies, it gives core on execution.
=========================================
#include
#include
using namespace std;
int main()
{
string str("test");
cout << "test string " << str << endl;
}
=========================================
ldd test
=>
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libstdc++.sl.5 => /usr/local/lib/libstdc++.sl.5
/usr/lib/libc.2 => /usr/lib/libc.2
/scratch/zack/pkgbuild/3.3.1/hpux-11/gcc-3.3.3-b/gcc/libgcc_s.sl => /usr/local/lib/libgcc_s.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
===============================================
if i run the executable , core is dumped.. gdb output is as follows:
=======================================
gdb test core
HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
warning: Can't find file /opt/graphics/OpenGL/lib/libogltls.sl referenced in dld
_list.
/opt/graphics/OpenGL/lib/libogltls.sl: No such file or directory.
#0 0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from /usr/local/lib/libstdc++.sl.5
(gdb) bt
#0 0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from /usr/local/lib/libstdc++.sl.5
#1 0xc5c16bec in _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0xec
() from /usr/local/lib/libstdc++.sl.5
#2 0x35d8 in main+0x160 ()
(gdb) q
=============================================
Could you please pinpoint the problem here.
Thanks
-Manish
I am facing a problem regarding stl functions used by HPUX 11.11 g++ compiler 3.3.3.
consider following program. which is compiled as:g++ -o test -lstdc++ test.cpp
After execution on the other machine where it can resolve all the dependencies, it gives core on execution.
=========================================
#include
#include
using namespace std;
int main()
{
string str("test");
cout << "test string " << str << endl;
}
=========================================
ldd test
=>
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/local/lib/libstdc++.sl.5 => /usr/local/lib/libstdc++.sl.5
/usr/lib/libc.2 => /usr/lib/libc.2
/scratch/zack/pkgbuild/3.3.1/hpux-11/gcc-3.3.3-b/gcc/libgcc_s.sl => /usr/local/lib/libgcc_s.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libm.2 => /usr/lib/libm.2
===============================================
if i run the executable , core is dumped.. gdb output is as follows:
=======================================
gdb test core
HP gdb 3.3 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.3 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
warning: Can't find file /opt/graphics/OpenGL/lib/libogltls.sl referenced in dld
_list.
/opt/graphics/OpenGL/lib/libogltls.sl: No such file or directory.
#0 0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from /usr/local/lib/libstdc++.sl.5
(gdb) bt
#0 0xc5c16500 in _ZNSo6sentryC1ERSo+0x20 () from /usr/local/lib/libstdc++.sl.5
#1 0xc5c16bec in _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0xec
() from /usr/local/lib/libstdc++.sl.5
#2 0x35d8 in main+0x160 ()
(gdb) q
=============================================
Could you please pinpoint the problem here.
Thanks
-Manish
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2005 05:01 AM
тАО03-18-2005 05:01 AM
Re: using STL on HPUX
I can not comment on the error about "privately mapped shared library" But for this error - "/opt/graphics/OpenGL/lib/libogltls.sl" Does that shared library exists?? If yes, have you set SHLIB_PATH and/or LD_LIBRARY_PATH variables??
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 12:09 AM
тАО12-14-2005 12:09 AM
Re: using STL on HPUX
it was a issue of HP patch for ld.
Thanks for your time and help.
Manish
Thanks for your time and help.
Manish
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