Function from dynamic shared library not registered (196 Views)
Reply
Occasional Visitor
eBilger
Posts: 4
Registered: ‎04-15-2010
Message 1 of 7 (196 Views)

Function from dynamic shared library not registered

Hi All,

I'm working on HPUX Itanium 11.23 64 bits. Code is C++.

My code is compiling well and my shared library is successfully generated and loaded into my executable. In this library I have a dummy function that is registered during compilation (i.e simply added into a map of functions) When executing my executable that will call this function using shared library, it says: "function identifier not find" (i.e function not in my map of functions)

This behavior only happens on Itanium, it is working fine on PARISC and Tru64 (even on Sun)

My compiler is aCC:
aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]

Linker Compilation options are:
/opt/aCC/bin/aCC -b +DD64 -AA -Wl,+k -L. -Wl,+b/usr/opt/tns/lib my_function.o -o my_lib.so

Could you please help me find why it is working well on all OS except itanium? Do I miss something in compilation?

Thank you.

Best regards
eBilger


Acclaimed Contributor
Dennis Handly
Posts: 25,049
Registered: ‎03-06-2006
Message 2 of 7 (196 Views)

Re: Function from dynamic shared library not registered

>When executing my executable that will call this function using shared library, it says: "function identifier not find"

You'll need to print out all of the function in your map to make sure you have the right number.
Are you using dlopen(3)?

>A.06.00 [Aug 25 2004]

This is not supported. The current version is A.06.25.

>Could you please help me find why it is working well on all OS except Integrity?

You are going to have to provide more details, actual code.
Occasional Visitor
eBilger
Posts: 4
Registered: ‎04-15-2010
Message 3 of 7 (196 Views)

Re: Function from dynamic shared library not registered

Hello Dennis,

First of all thank you for your answer.

I've updated aC++ compiler to A.06.02 and I'm recompiling my code. How could I upgrade aC++ to a newer version?

If the issue still occurs with the patched compiler, I'll send you the corresponding code. I'll keep you informed.

Thank you.

Regards,
eBilger
Acclaimed Contributor
Dennis Handly
Posts: 25,049
Registered: ‎03-06-2006
Message 4 of 7 (196 Views)

Re: Function from dynamic shared library not registered

>I've updated aC++ compiler to A.06.02

That's still obsolete.

>How could I upgrade aC++ to a newer version?

If you have a support contract, you can download it from the SUM program, see link to left: Software Update Manager

Otherwise you must purchase it.

>If the issue still occurs with the patched compiler

It probably still will.
Occasional Visitor
eBilger
Posts: 4
Registered: ‎04-15-2010
Message 5 of 7 (196 Views)

Re: Function from dynamic shared library not registered

Hello Dennis,

Sorry for this delay but I was busy. I've updated aC++ compiler on our itanium (from A.06.00 to A.06.15) and it is now working well :)

Thank you for your help.

Best regards,
eBilger
Occasional Visitor
eBilger
Posts: 4
Registered: ‎04-15-2010
Message 6 of 7 (196 Views)

Re: Function from dynamic shared library not registered

update to aC++ compiler A.06.15
Acclaimed Contributor
Dennis Handly
Posts: 25,049
Registered: ‎03-06-2006
Message 7 of 7 (196 Views)

Re: Function from dynamic shared library not registered

>it is now working well :)

If you are happy with the answers you got, please read the following about reopening threads and assigning points:
http://forums.itrc.hp.com/service/forums/helptips.do?#41
http://forums.itrc.hp.com/service/forums/helptips.do?#33
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.