Operating System - HP-UX
1753511 Members
5432 Online
108795 Solutions
New Discussion юеВ

Re: Error "aCC runtime:" while runing appication on HP

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: Error "aCC runtime:" while runing appication on HP

>My application is a single threaded application.

Since you linked with libpthread, it is multi-threaded.

>So if -mt is off for clientmgrd, is it a problem? It can be the case that all -mt values is off in the lib?

Yes. Possible.

>Few of the units are compiled with "architecture [pa1.0]", is it must to remove? What is the impact of it?

I see a lot more than just a "few". It means someone hasn't updated the build process in 12+ years. It would be a good idea to recompile those.
anshuman_3
Occasional Advisor

Re: Error "aCC runtime:" while runing appication on HP

so we need to recompile our module clientmgrd with mt option so that all the units comes as "on" with foot prints command.

Same is to be done with related sharedlibararies.

Pls confirm.

As we are using quite a few thirdparties and same code base is working fine on Solaris box.
We have this problem only on HP.

Here is our compilation log :
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c Logon.C -o build/Logon.o -DVCS_ID=\"`cleartool desc -short Logon.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c SessionMgr.C -o build/SessionMgr.o -DVCS_ID=\"`cleartool desc -short SessionMgr.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c clientdisplay.C -o build/clientdisplay.o -DVCS_ID=\"`cleartool desc -short clientdisplay.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c clientmain.C -o build/clientmain.o -DVCS_ID=\"`cleartool desc -short clientmain.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c clientmgrPref.C -o build/clientmgrPref.o -DVCS_ID=\"`cleartool desc -short clientmgrPref.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP -c message.C -o build/message.o -DVCS_ID=\"`cleartool desc -short message.C`\" -z +DAportable -DHP -DHP11 -DHPUX11 -DSYSV4 -DCOMPILER_HAS_BOOL -I/usr -I/opt/aCC/include_std -I/opt/aCC/include -I/projects/netex/osidb -I/thirdparty/oracle/rdbms/demo -I/thirdparty/oracle/precomp/public -I/thirdparty/oracle/plsql/public -I/thirdparty/oracle/network/public -I/thirdparty/oracle/rdbms/public -I/projects/netex/server/ideas/relateTables -I/projects/netex/server/ideas/include -D_RWCONFIG_12d -D_RWSTD_MULTI_THREAD=1 -D_REENTRANT -ext -g0 -Dhpux -DHP700 -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/include -I/projects/netex/db -I/projects/netex/tools/tk1 -I/projects/netex/tools/tk2 -I/projects/netex/ui/gui -I/projects/netex/server/admin/netexadmin -I. -D_RWBUILDSHARED -DACE_NLOGGING -DXO_HP -DXO_USE_ALARM -DXO_NODEBUG -DXO_NO_XRT -DXO_USE_ASSERT -DXO_USE_MEM_MGR -DXO_NO_QUANTIFY -I/projects/netex/include -I/projects/fw -I/projects/fw/pos/rdb +Z -I. -I/projects/fw/include -I/opt/aCC -I/projects/ThirdParty/ACE323 -I/opt/cm/local/include -I/opt/cm/local/include -I/thirdparty/xerces_c++/rel/include -I/usr/openwin/include -DCRYPTED_PASSWORD -I/projects/netex/tools/cryptool -I/rel/ThirdParty/bsafe/include -DHP700 -DC_ISANSILIKE -DMULTILOGIN -I. -I/thirdparty/presenter/rel/c/include -I/usr/include/X11R6 -I/projects/netex/server/ideas/3.2/Package -I/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/include -I/thirdparty/flexlm/rel/include
/opt/aCC/bin/aCC -AA -D_HPUX_SOURCE "-Dvolatile= " -DHP11 -DPORTMAP +DAportable -o build/clientmgrd build/Logon.o build/SessionMgr.o build/clientdisplay.o build/clientmain.o build/clientmgrPref.o build/message.o /projects/netex/lib/gui.a /projects/netex/lib/libtk2lite_hp.a /projects/netex/lib/tk1_hp.a \
-lm /thirdparty/flexlm/rel/lib/lm_new.o -L/thirdparty/flexlm/rel/lib -losilm -llmgr -lcrvs -lsb -L/projects/netex/lib -lnxcrypt -L/rel/ThirdParty/bsafe/lib -lbsafe -lnxcrypt -g0 -Wl,+s -Wl,-a,archive -lV3 -Wl,-a,default -L/thirdparty/presenter/rel/c/lib -lndguisvr -lndscvrb -lndgw -lndtkit -lndvgm -lndoaba -lndcorex -lndsec -lndres -lndcore -L/usr/lib/X11R6 -lX11 -ltermcap -lm -lnsl -lnsl_s -lpthread -lsec -ldld -Wl,-a,default -L/usr/lib -lrwtool_v2 -L/view/easydom_6.2.0_nightly_hp11/spm/easydom/rel/lib -l easydom -L/thirdparty/xerces_c++/rel/lib -l xerces-c -L/thirdparty/xalan_c++/rel/lib -l xalan-c
>>
>>> Releasing - clientmgrd
>>
ln build/clientmgrd /projects/netex/rel/hp/ora/bin/clientmgrd
chmod 775 /projects/netex/rel/hp/ora/bin/clientmgrd
ln -s ../../gui/build/gui.dat build/gui.dat
cd build; /thirdparty/presenter/rel/c/bin/rescomp ../clientmgr.rc ../clientdisplay.rc ../message.rc ../Logon.rc ../SessionMgr.rc ../VERSION.rc
Rescompiling ../clientmgr.rc
Rescompiling ../clientdisplay.rc
Rescompiling ../message.rc
Rescompiling ../Logon.rc
Rescompiling ../SessionMgr.rc
Rescompiling ../VERSION.rc
>>
>>> Releasing - clientmgr.dat
>>
ln build/clientmgr.dat /projects/netex/rel/hp/ora/Dat/clientmgr.dat
Dennis Handly
Acclaimed Contributor

Re: Error "aCC runtime:" while runing appication on HP

>We have this problem only on HP-UX.

Unfortunately we tried to optimize the non-threaded case and that can't be run with libpthread.

>aCC -AA "-Dvolatile= "

There should be no reason to remove the volatile keyword. This can break the runtime.

>-I/usr -I/opt/aCC/include_std -I/opt/aCC/include

It is illegal to specify the default aC++ include paths, remove these.

>-D_RWSTD_MULTI_THREAD=1 -D_REENTRANT

These are equivalent to -mt, so recompiling will only make footprints(1) happy.

If you aren't creating threads, the right thing to do is remove the libpthread dependency. Which shlibs have it?
anshuman_3
Occasional Advisor

Re: Error "aCC runtime:" while runing appication on HP

Does the order in which the shared library is linked make any impact?

I have done few changes in compilation for my module i can't change complete compilation as there are lot many modules. Here is the outcome:

>We have this problem only on HP-UX.
Unfortunately we tried to optimize the non-threaded case and that can't be run with libpthread.

@
My module doesn't create any thread ,so removed libpthread dependency from shlibs,but the same error was coming
@

>aCC -AA "-Dvolatile= "
There should be no reason to remove the volatile keyword. This can break the runtime.

@
I can't remove this as my compilation was breaking .
@
>-I/usr -I/opt/aCC/include_std -I/opt/aCC/include
It is illegal to specify the default aC++ include paths, remove these.

@
Removal /opt/aCC/include & include_std

resulted in core from libxerces-c.sl.21
(gdb) where
#0 0xc020da50 in kill+0x10 () from /usr/lib/libc.2
#1 0xc01a7f74 in raise+0x24 () from /usr/lib/libc.2
#2 0xc01e92c8 in abort_C+0x160 () from /usr/lib/libc.2
#3 0xc01e9324 in abort+0x1c () from /usr/lib/libc.2
#4 0xc0d83c68 in std::terminate+0x38 () from /usr/lib/libCsup_v2.2
#5 0xc0d84278 in ThrowException+0xc8 () from /usr/lib/libCsup_v2.2
#6 0xc0d847c8 in __throw__FPvT1+0x14c () from /usr/lib/libCsup_v2.2
#7 0xc1780e94 in std::ios_base::setf+0x78 () from /usr/lib/libstd_v2.2
#8 0xc178095c in std::ios_base::Init::Init+0x1df0 () from /usr/lib/libstd_v2.2
#9 0xc7c82848 in std::__sinit_StdOutFormatTarget_cpp+0x30 () from /home/trv1/netexpert/netex622HP/Lib/libxerces-c.sl.21
#10 0xc0d8627c in __shlInit+0x88 () from /usr/lib/libCsup_v2.2
#11 0xc7b9ee48 in _shlInit+0x20 () from /home/trv1/netexpert/netex622HP/Lib/libxerces-c.sl.21
#12 0xc0d85ba8 in __shlinit+0xac () from /usr/lib/libCsup_v2.2
#13 0xc0d881d4 in _main+0xd8 () from /usr/lib/libCsup_v2.2

@
>-D_RWSTD_MULTI_THREAD=1 -D_REENTRANT
These are equivalent to -mt, so recompiling will only make footprints(1) happy.

@
this just let footprint know that 6 units are with mt (on)
@
If you aren't creating threads, the right thing to do is remove the libpthread dependency. Which shlibs have it?
Dennis Handly
Acclaimed Contributor

Re: Error "aCC runtime:" while runing appication on HP

>Does the order in which the shared library is linked make any impact?

Yes most definitely, if the leftmost one is bad, then it is more likely to happen.

>My module doesn't create any thread, so removed libpthread dependency from shlibs but the same error was coming

You have to remove it from every stinkin' shlib. Including Oracle? You can use chatr(1) or ldd(1) to track them down.

>I can't remove -Dvolatile= as my compilation was breaking.

Then you need to fix the source, not add another kludge. What's your error?

>Removal /opt/aCC/include & include_std
>resulted in core from libxerces-c.sl.21

Are these connected? There shouldn't be any. It just means there is a bad shlib to the left of libxerces-c.sl.21, in the binding order.
anshuman_3
Occasional Advisor

Re: Error "aCC runtime:" while runing appication on HP

Hi Dennis,

Thanks for your support.

We were able to resolve the issue by removing the newly added library dependency for now.

You were very quick in responding.

Regards,
Anshuman
Dennis Handly
Acclaimed Contributor

Re: Error "aCC runtime:" while runing appication on HP

>Thanks for your support.

If you were happy with answers you can assign points for each reply:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
anshuman_3
Occasional Advisor

Re: Error "aCC runtime:" while runing appication on HP

done that.