|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
XS module cannot find boot_FooBar symbolby llancet (Friar) |
| on Mar 04, 2014 at 08:35 UTC ( [id://1076842]=perlquestion: print w/replies, xml ) | Need Help?? |
|
llancet has asked for the wisdom of the Perl Monks concerning the following question: Ok, I got the key. The module library should be located at auto/FooBar/FooBar.so instead of auto/FooBar.so... ============================================ Hi monks! I'm writing a module with XS, which is a wrapper for another library. I made a simple test on my module: 1. link FooBar.pm to current directory, 2. link compiled FooBar.so to ./auto/, 3. then run perl -MFooBar, and it cries:
This is strange, as boot_FooBar is compiled in the perl wrapper library, so it should not be searched in the original library.
I'm sure boot_FooBar is inside auto/FooBar.so, by using readelf -s: 46: 00000000000048a4 1049 FUNC GLOBAL DEFAULT 11 boot_FooBarIn addition, I did not use any perl helper modules (like Module::Build or ExtUtils::MakeMaker) to build my module. I did everything manually.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||||