1847814 Members
5131 Online
104021 Solutions
New Discussion

Re: 32 applications

 
Anand_56
Occasional Advisor

32 applications

Hi,
I am trying to compile my 32 bit application. But somehow the libdld.sl in the pa20_64 directory gets used and I get Unresolved symbol errors at run-time.

How can resolve these symbol errors ?

Thank you in advance.
7 REPLIES 7
Amit Agarwal_1
Trusted Contributor

Re: 32 applications

What is the compile line. Are you sure you are not using 64 bit compilation flag like +DD64 or +DA2.0W
Anand_56
Occasional Advisor

Re: 32 applications

I have not set the +DA2.0W for sure.
to give you the details, I am compiling a Oracle 10g Pro*C app. The 10g installation contains a lib and lib32 folder. lib contains the 64 bit libraries. So I have set my SHLIB_PATH to lib32. but this seems insuffcient and pa20_64/libdld.sl gets used.

hope this helps you to help me..

Thanks
Anand.
Steven E. Protter
Exalted Contributor

Re: 32 applications

Check and see if the 32 bit compiler is even installed.

That could be the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Anand_56
Occasional Advisor

Re: 32 applications

I think, according to HP docs the aCC could be used to compile 32-bit or 64 bit applications. Only difference to be noted is that the pa20_64 folder contains 64-bit libraries. So the SHLIB_PATH variable needs to be set appropriately to compile either 32-bit or 64-bit applications.

Is the cc trying to use the libs in the pa20_64 folder and causing this problem ?

The pa20_64 folder is present in 3 places:

1. /usr/ccs/lib
2. /usr/lib
3. /opt/aCC/lib

Are libs inside the pa20_64 folder in these 3 places are being used and causing the problem ?
Anand_56
Occasional Advisor

Re: 32 applications

Here is the cc version:

$ aCC -V
aCC: HP ANSI C++ B3910B A.03.55

Thanks
Anand.
Ermin Borovac
Honored Contributor

Re: 32 applications

Your makefile probably includes oracle makefile $ORACLE_HOME/precomp/lib/env_precomp.mk and making use of compile flags for 64-bit environment.

You can try cloning $ORACLE_HOME/precomp/demo/proc/demo_proc32.mk for 32-bit compilation.

I'm looking at 9i oracle installation; paths for 10g may be different, but you get the idea.
rick jones
Honored Contributor

Re: 32 applications

Just a random question from a networking rather than compiler guy - are you compiling C or C++? IIRC, aCC on PA-RISC isn't _really_ meant to compile C code
there is no rest for the wicked yet the virtuous have no pillows