Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

HI All,
I'm facing trouble loading the module File::RsyncP and the following error throws while using it,
# perl -MFile::RsyncP -e 'print'
perl: symbol lookup error: /usr/lib/perl5/5.10.0/i586-linux-thread-multi/auto/File/RsyncP/Digest/Digest.so: undefined symbol: Perl_Tstack_sp_ptr
Can any one help me to get rid of this??
Thanks in Advance!!!

Replies are listed 'Best First'.
Re: Error using module File::RsyncP
by salva (Canon) on Dec 06, 2009 at 13:43 UTC
    Being in a Linux box, do you have any reason to use this Perl reimplementation instead of the original rsync? Are you using the virtual file system hooks to rsync data from a database or something similar?

    The module seems unmaintained as the last release was in 2006 and in the meantime rsync has keep evolving, with a major release (3.0) in 2008.

    If your response to my previous question is "no", you should consider using the real thing: just call rsync via system or use the wrapper module File::Rsync. Net::OpenSSH also has integrated rsync support to transfer files over SSH.

Re: Error using module File::RsyncP
by zwon (Abbot) on Dec 06, 2009 at 10:50 UTC

    It looks like your module was built against another perl version. Try to rebuilt and reinstall module.

      Yeah.U r rite
      I installed File-RsyncP using rpm and it installed under /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi/
      but im using perl 5.10.0
      so i copied directory File/RsyncP to /usr/lib/perl5/5.10.0
      Did i do anything wrong??

      Anyhwo im not able to install using perl -MCPAN -e 'install File::RsyncP'
      Thats y i used rpm for the installation.

        You can't use XS modules compiled for 5.8.8 with 5.10.0, they aren't binary compatible. Maybe you should try another rpm, with module compiled for perl 5.10.0? Try to search on http://rpm.pbone.net

Re: Error using module File::RsyncP
by Anonymous Monk on Dec 06, 2009 at 07:16 UTC