Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-06522 problem

Atesy-OracleMar 19 2007 — edited Mar 22 2007
Hi!

I and my college like to use a c++ program on a HP-UX 11 and Oracle 10gR2
but every time when we call our simple test c++ function from pl/sql as an external function we get an error.
Earlier we used 9i and we had not problem by the runing.
Our simple program:

extern "C"
{
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void test(char *ostr)
{
char *p;
p = getenv("CSILOGDIR");
if (p == NULL)
strcpy(ostr, "");
else
strcpy(ostr, p);

return;
}
}

We create a makesl file:

echo $CppComp

$CppComp dirt.cpp
ld -b -t -v -o dirt.sl dirt.o

We run this makesl on the HP-UX 11 and it creates the dirt.o and dirt.sl files.
When we create a PL/SQL stored procedure which call the test function
and run it we get the next error:

ORA-06520:PL/SQL: Error loading external library
ORA-06522:Unsatisfied code symbol '__cxa_personality_routine' in .../dirt.sl
...

Can somebody help?

Atesz

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 19 2007
Added on Mar 19 2007
7 comments
664 views