Right, I've tried google, and a look around the monastry, but haven`t found anything useful yet. We've got our C program running as a perl intepreteter
if ((my_perl = perl_alloc()) == NULL) { perror("Failed to create interpreter"); return 2; } perl_construct(my_perl); /* Run the startup script */ startup[0] = soapGlobals.service; startup[1] = soapGlobals.config; if (perl_parse(my_perl, xs_init, NumberOf(startup), startup, NULL) != 0) { perror ("Failed to parse startup file"); return 3; } /* Define the proper exit flags */ #ifdef PERL_EXIT_DESTRUCT_END PL_exit_flags |= PERL_EXIT_DESTRUCT_END; #endif /* Run the interpreter */ if (perl_run(my_perl) != 0) { perror ("Failed to run interpreter"); return 3; }
Our xs_init is pretty much taken from the perldocs
static void xs_init(pTHX) { char *file = __FILE__; dXSUB_SYS; /* Bring in the dynamic loader */ newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); }
Though I couldn`t find any mengion of dXSUB_SYS, but it is used within the perl souce code, having it there or having it removed doesn`t appear to make any difference anyway. Our snippet of perl that we are trying to use is:
use Enmac::Transaction; 1;
To basically use our own module. However when this is run on our dec boxes (TRU64) running perl 5.6.1 this works fine. On AIX5.2 with perl 5.8.2 we get the following error:
Can't load '/users/lib/modules/lib/perl5/site_perl/5.8.5/aix-64all/aut +o/Enmac/Transaction/Transaction.so' for module Enmac::Transaction: A +file or directory in the path name does not exist. at /usr/local/lib/ +perl5/5.8.5/aix-64all/DynaLoader.pm line 230.
Now the file does indeed exist in the place that is mentioned, but no other clues are given. Has anyone seen this before, or are there any other sagely words of wisdom/places to look.

Thanks

CJC


In reply to perlembed problems by cassidyc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.