Crackers2 has asked for the wisdom of the Perl Monks concerning the following question:
(For those who don't know, Pidgin is the new name of the Gaim IM client, and libpurple the new name of the underlying libgaim library)
I'm on a FC 6 box, and I'm getting the following error when use'ing the Purple module:
[~]$ perl -e'use Purple;' Can't load '/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/a +uto/Purple/Purple.so' for module Purple: /usr/lib/perl5/vendor_perl/5 +.8.8/i386-linux-thread-multi/auto/Purple/Purple.so: undefined symbol: + g_str_hash at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader. +pm line 70. at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Purple.pm + line 52 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
I've searched Google and the Pidgin wiki, but haven't found any solution. g_str_hash is defined in /usr/include/glib-2.0/glib/ghash.h, which I assume is properly found since the compilation does succeed.
An ldd on Purple.so does not show glib2 in the list of libraries though. Should it show up or is the XS loader smart enough to find out what libraries to load some other way?
I tried explicitly linking against the library by adding a -lglib-2.0 to the final line of the .so creation. The resulting so file does show the dependency on glib2 then, but trying to load shows a different error:
[~]$ perl -e'use Purple;' perl: symbol lookup error: /usr/lib/perl5/vendor_perl/5.8.8/i386-linux +-thread-multi/auto/Purple/Purple.so: undefined symbol: purple_perl_ca +llXS
which to me seems to suggest linking in the library this way is not the correct thing to do.
If anything has any insight or suggestions on how to solve this, I'm all ears.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Purple/Pidgin perl plugin load error
by Khen1950fx (Canon) on May 20, 2007 at 09:56 UTC | |
by Crackers2 (Parson) on May 20, 2007 at 15:47 UTC | |
by Khen1950fx (Canon) on May 20, 2007 at 16:26 UTC | |
by Crackers2 (Parson) on May 22, 2007 at 13:51 UTC | |
|
Re: Purple/Pidgin perl plugin load error
by zdeqb (Novice) on Jun 11, 2007 at 19:00 UTC | |
by Crackers2 (Parson) on Jun 11, 2007 at 20:15 UTC | |
by zdeqb (Novice) on Jun 11, 2007 at 20:49 UTC | |
by Crackers2 (Parson) on Jun 12, 2007 at 02:13 UTC | |
by zdeqb (Novice) on Jun 12, 2007 at 04:58 UTC | |
|