Subject: | Unresolved symbol (savesvpv) with Perl 5.8.5 |
Gearman::XS compiles on Perl 5.8.5, but fails at runtime, for example
running the tests, I get:
t/00-use.t .................. 1/5
# Failed test 'use Gearman::XS;'
# at t/00-use.t line 12.
# Tried to use 'Gearman::XS'.
# Error: Can't load
'/home/aford/.cpan/build/Gearman-XS-0.9-9A3FZJ/blib/arch/auto/Gearman/XS/XS.so'
for module Gearman::XS: /h\
ome/aford/.cpan/build/Gearman-XS-0.9-9A3FZJ/blib/arch/auto/Gearman/XS/XS.so:
undefined symbol: savesvpv at /usr/lib/perl5/5.8.5/i38\
6-linux-thread-multi/DynaLoader.pm line 230.
# at
/home/aford/.cpan/build/Gearman-XS-0.9-9A3FZJ/blib/lib/Gearman/XS.pm
line 175
The symbol "savesvpv" was introduced in Perl 5.9.2, but is not supported
by ppport.h. The attached patch defines the function, but wraps it in
an #if that evaluates to true for Perl versions less than 5.9.2.
The patched distro works for me on Perl 5.8.5 on 32-bit Intel Linux, but
should work on all platforms.
Subject: | Gearman-XS-savesvpv-patch |
Message body not shown because it is not plain text.