Operating System - HP-UX
1846136 Members
4951 Online
110254 Solutions
New Discussion

Re: Problem with libCsup_v2.2 & libstd_v2.2 libraries while running my application

 
pnarender
New Member

Problem with libCsup_v2.2 & libstd_v2.2 libraries while running my application

Hi,

I am working on HP-UX machine & able to compile my application successfully on 32 bit mode but while running I am facing the problems with some libraries listed below in the error message.
Please find my work environment at the end of the message:

Program received signal SIGABRT, Aborted.
0x77fabad0 in kill+0x10 () from /usr/lib/libc.2
(gdb) where
#0 0x77fabad0 in kill+0x10 () from /usr/lib/libc.2
#1 0x77f4655c in raise+0x24 () from /usr/lib/libc.2
#2 0x77f869a8 in abort_C+0x160 () from /usr/lib/libc.2
#3 0x77f86a04 in abort+0x1c () from /usr/lib/libc.2
#4 0x77d564f0 in std::terminate+0x38 () from /usr/lib/libCsup_v2.2
#5 0x77d569b8 in ThrowException+0x74 () from /usr/lib/libCsup_v2.2
#6 0x77d56f18 in __throw__FPvT1+0x14c () from /usr/lib/libCsup_v2.2
#7 0x77ce4674 in std::ios_base::setf+0x7c () from /usr/lib/libstd_v2.2
#8 0x77ce4118 in std::ios_base::Init::Init+0x1e40 () from /usr/lib/libstd_v2.2
#9 0x3ce0c in std::__sinit_AckGenerate_cpp+0x1c ()
#10 0x77d5a200 in __mainHelper+0x40 () from /usr/lib/libCsup_v2.2
#11 0x77d5a534 in _main+0xec () from /usr/lib/libCsup_v2.2

Working Environement:
PA-RISC Version : 2.0 System name : HP-UX
Version : U
Release : B.11.11
Machine : 9000/800
Compiler: HP ANSI C++ B3910B A.03.37 (aCC)

Greatful to you if any any one of you help me soon.

Regards,
Narender
3 REPLIES 3
ranganath ramachandra
Esteemed Contributor

Re: Problem with libCsup_v2.2 & libstd_v2.2 libraries while running my application

some general tips:
. make sure all libraries you use are compiled with -AA, or without it - dont mix -AA libs/progs with non- -AA libs/progs
. use aCC's -mt while building for multi-threaded applications
. always use aCC to link c++ libs/apps, not ld
. aCC 3.37 is rather old, consider upgrading

if you have problems after all this, please post your compile/link lines.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

pnarender
New Member

Re: Problem with libCsup_v2.2 & libstd_v2.2 libraries while running my application

Hi,
Compilation and linking for 32 bit is as follows
aCC -AA -c -I/opt/oracle/product/ora92/rdbms/public -I/opt/oracle/product/ora92/plsql/public -I/opt/oracle/product/ora92/network/public -I. -I/opt/oracle/product/ora92/precomp/public -I/opt/oracle/product/ora92/rdbms/public -I/opt/oracle/product/ora92/rdbms/demo -I/opt/oracle/product/ora92/plsql/public -I/opt/oracle/product/ora92/network/public -I/opt/oracle/product/ora92/rdbms/demo test1.cpp -DUNIX

aCC -AA -o test123 test123.o -L/opt/oracle/product/ora92/lib32 -lclntsh -L/opt/oracle/product/ora92/lib32 -lwtc9 -L. -DUNIX
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (test123.o) was detected. The linked output may not run on a PA 1.x system.

Only the c++ program is working fine but the core dump is only for proc++ program.

Thanks,
Narender
ranganath ramachandra
Esteemed Contributor

Re: Problem with libCsup_v2.2 & libstd_v2.2 libraries while running my application

do you mean that the program has a problem when built with proc++, not when built with aCC ? if that is the case, i guess you should see what command line aCC is passing to linker (using aCC's -v), compare with what is sent by proc++ and then modify the command line for proc++ appropriately. i will check with compiler folks about this. if you are using two different compilers to link the program and the shared library, make sure that does not result in mixing of -AA and non- -AA again.

so can you post the linker command line from both compilers, both when linking the libraries and when linking the program ?
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo