Operating System - HP-UX
1827811 Members
1956 Online
109969 Solutions
New Discussion

from PA-RISC to Itanium : Unable to load shared library

 
SOLVED
Go to solution
Franky Leeuwerck_2
Super Advisor

from PA-RISC to Itanium : Unable to load shared library

Hello,

We're trying to recompile some ABF/Vision applications, ported from HP-UX PA-Risc to the new HP-UX 11.23 Itanium platform.

Some of the compilation runs fail with the following error :
ld: Unable to load shared library "/opt/langtools/lib/hpux64/libu2comp.so"

This /opt/langtools/lib/hpux64/libu2comp.so is not present on the system.

According to the HP-UX forums, I read this file is part of the Auxiliary-Opt.LANG-AUX fileset.

Is there a way to see if this Auxiliary-Opt.LANG-AUX fileset is installed on the system ?
And, if not, how can we install it ? With a patch ?

Thanks in advance,
Franky
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: from PA-RISC to Itanium : Unable to load shared library

swlist -l fileset | grep -i Auxiliary-Opt.LANG-AUX

If its not there, you need to get it installed.


Quick check:

ll /opt/langtools/lib/hpux64/libu2comp.so

If its there the problem is that the object is not part of the SHLIB_PATH environment variable. Get the location to be part of SHLIB_PATH and try the compile again.

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
Franky Leeuwerck_2
Super Advisor

Re: from PA-RISC to Itanium : Unable to load shared library

Hello Steven,

# swlist -l fileset | grep -i Auxiliary-Opt.LANG-AUX
# ll /opt/langtools/lib/hpux64/libu2comp.so
/opt/langtools/lib/hpux64/libu2comp.so not found

The file is not present.
How do install this ? Is it via CD or via a patch to download ?

(I have not installed the HP-UX by myself.)

Thanks again,
Franky
Sanjay_6
Honored Contributor

Re: from PA-RISC to Itanium : Unable to load shared library

Hi Franky,

Seems like this is part of the C/ANSI C Compiler bundle which isa $$ product. Do you have C/ANSI C Compiler installed on your itanium server.

Hope this helps.

regds
Muthukumar_5
Honored Contributor

Re: from PA-RISC to Itanium : Unable to load shared library

Export shared library path with SHLIB_PATH variable there.

SHLIBPATH="/opt/langtools/lib/hpux64/"

swlist Auxiliary-Opt.LANG-AUX
will give informations about that fileset there, else make error there.

Auxiliary-Opt.LANG-AUX B.11.11.06 Advanced Optimization Tools
/opt/langtools
/opt/langtools/lbin
/opt/langtools/lbin/ucomp
/opt/langtools/lib
/opt/langtools/lib/libcomp.sl
/opt/langtools/lib/nls
/opt/langtools/lib/nls/msg
/opt/langtools/lib/nls/msg/C
/opt/langtools/lib/nls/msg/C/ucomp.cat
/opt/langtools/newconfig
/opt/langtools/newconfig/white_papers
/opt/langtools/newconfig/white_papers/optimize.ps

Try to export to shared library path. Use now. It will work.
Easy to suggest when don't know about the problem!
Steven E. Protter
Exalted Contributor
Solution

Re: from PA-RISC to Itanium : Unable to load shared library

I think Ansi C is available on either the Core OS CD or the Application Cd's

Looks like its a pay for add in product, licensed on a per/cpu basis, at least according the software.hp.com

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
Franky Leeuwerck_2
Super Advisor

Re: from PA-RISC to Itanium : Unable to load shared library

Thanks Steven and the others too for your quick reply.

The HP-Engineer is currently installing the fileset.

Regards,
Franky Leeuwerck
Franky Leeuwerck_2
Super Advisor

Re: from PA-RISC to Itanium : Unable to load shared library

Library was not installed.
krudi01
Occasional Contributor

Re: from PA-RISC to Itanium : Unable to load shared library

I am experiencing the same problem, and had a look at the Ansi C installation to install the libraries required, but with no luck.

Can you please tell me how to install the libraries required for "Unable to load shared library "/opt/langtools/lib/hpux64/libu2comp.so" message to go away?