On Thu, 6 Dec 2001, Nagesh Ayyagari wrote:

> I am using AIX 4.3.3.0 and Perl 5.6.1. I am having some issues using
> dynamically loading shared library inside a perl program.
> 
> I have a shared library called Repos.so.This has few XS functions that
> call Oracle OCI calls. From my perl program I could load the shared
> libraries using the Perl's Dynaloader module. When I call these
> functions from Perl  I get a SEGV at the first line of XS source code.
> The first line in the Repos.c file is dXSARGS;
> 
> Just FYI, the same XS code works on Solaris, HP, TRU & Linux platforms
> and fails for AIX. Any known issues with XS code on AIX 4.3.3.0 ?

In real life, I code an enormous amount of XS code under AIX 4.3.3, both 
in 32-bit and 64-bit mode.  There are no inherent problems with AIX, other 
than its bizarre approach to dynamic libs and objects.  

A few questions:

1. What compiler was used to build Perl, xlC C-Set, xlC VAC or GNU?
2. Was the same tool set used to build the module?
3. Is the module compiled as C++ code?  Is OCI using C++ linkage?
4. Can you post the output of 'perl -V'?
5. Can you post the expanded commands issued during the module build for
   both compiling and linking?
6. Are you able to get a trivial XS function (e.g. 'Hello, World') to 
   build and run in the AIX environment?

I'll try to help if you can produce the information.

Steve


Reply via email to