LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   perl mapi/swig dynaloader problem (https://www.linuxquestions.org/questions/linux-software-2/perl-mapi-swig-dynaloader-problem-613526/)

unkie888 01-14-2008 01:46 PM

perl mapi/swig dynaloader problem
 
when i run a script it says;

Code:

[root]# ./fetchmail.pl
Can't load '/usr/lib/perl5/site_perl/5.8.8/mapi.so' for module mapi: /usr/lib/perl5/site_perl/5.8.8/mapi.so: undefined symbol: swig_types at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
 at /usr/lib/perl5/site_perl/5.8.8/mapi.pm line 11
Compilation failed in require at ./fetchmail.pl line 15.
BEGIN failed--compilation aborted at ./fetchmail.pl line 15.

Then I do;

Code:

[root]# nm /usr/lib/perl5/site_perl/5.8.8/mapi.so | grep swig_types
        U swig_types


I think this means that perl cannot load mapi.so because swig_types is not defined in any .so library.

so i do;

Code:

for f in  `find / -name '*.so'`; do echo $f ; nm $f | grep swig_types ; done > x.x 2>y.y
then look in x.x for where swig_types is defined but there is nothing but mapi.so

How do I work out what library swig_types is defined in so that the perl script can work?

chrism01 01-16-2008 05:56 PM

You may also want to ask the Perl gurus at www.perlmonks.org


All times are GMT -5. The time now is 07:17 AM.