Operating System - Linux
1753481 Members
4914 Online
108794 Solutions
New Discussion

Re: HPUX-pa libCsup.2 problem

 
Fei Shen
Occasional Advisor

Re: HPUX-pa libCsup.2 problem

The call sequence is as follows
customer application calls our C library and the C library dlopen the C++ library. The C++ library uses __shlTerm.

Our C library is built with -lCsup by cc. C++ library is built by aCC without -lCsup.

Now sure what customer application is written in.

The dlopen param is

dlopen(C++ library name, RTLD_GLOBAL | RTLD_LAZY);

Not sure about the patch level of aCC, how do I find out?



Dennis Handly
Acclaimed Contributor

Re: HP-UX PA libCsup.2 problem

>customer application calls our C library and the C library dlopen the C++ library. Our C library is built with -lCsup by cc. C++ library is built by aCC without -lCsup.

While this is not what we recommend, it should work.

>Now sure what customer application is written in.

It probably doesn't matter if your lib has libCsup. Do you also have libstream and libstd on your lib?

>Not sure about the patch level of aCC, how do I find out?

I was asking about linker versions.

To find the patch, you need to use swlist:
/usr/sbin/swlist -l product | fgrep -i -e aC++ -e linker

A what(1) on the shlibs would also give you a version.