Hello to the list and I hope someone can shed some light on my problem.

I've created a C executable that has Perl embedded in it. Furthermore, I
have
also created an XSUB package so that the Perl code I run in this C
executable
can have access to a socketized API in the XSUB bound into the executable.

I started all this on AIX (where I thought I would have the most problems)
and
everything is running wonderfully. I then moved on to Linux where I thought
it
would be a piece of cake. Not so.

When I am linking my C executable (using the specified options obtained
from "perl -MExtUtils::Embed -e ldopts") there is specifically a reference
to
the DynaLoader library:

/usr/lib/perl5/perl5.8.0
/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a

but what I get back from gcc is an error that it can not find the
boot_DynaLoader
function referenced in xs_init! What the???

I tried manually extracting the DynaLoader.o out of the archive library and
when
I link this in gcc does not complain. But when I run my executable and it
hits the
newXS() call to register the DynaLoader bootstrap, I get a seg fault/core
dump.

So it appears to me that something's messed up with the DynaLoader.a/.o but
I can not find any mention of it on the RedHat or ActiveState web site. I
also tried
downloading and installing Perl 5.8.7 but I got the same thing.

I am on RH 9 with Perl 5.8.0.

And like I said earlier, all this runs great on AIX 4.3 with RH 5.6.1.

Any ideas? And thanks in advance for any help. I've scoured this list as
well
as the rest of the Internet without any hint as to what this problem really
is or
how it can be resolved.

Rich Wells

Reply via email to