Make test fails on Fedora Core 64bit machines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman::XS |
Fix Released
|
Low
|
Dennis Schön |
Bug Description
I have had trouble getting the Gearman::XS modules to install via cpan because the Makefile isn't built to find a non-standard libgearman location. On some Linux machines the standard C gearman installation goes to /usr/lib64 or /usr/local/lib instead of /usr/lib....... the fix for this was to change the Makefile.PL file manually (see below the issue)
(ISSUE HERE)
via cpan:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils:
t/Gearman-XS.t .. 1/105
# Failed test 'use Gearman::XS;'
# at t/Gearman-XS.t line 13.
# Tried to use 'Gearman::XS'.
# Error: Can't load '/root/
# at (eval 4) line 2
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Failed test 'use Gearman:
# at t/Gearman-XS.t line 14.
# Tried to use 'Gearman:
# Error: Attempt to reload Gearman/XS.pm aborted.
# Compilation failed in require at /root/.
# BEGIN failed--compilation aborted at /root/.
# Compilation failed in require at (eval 5) line 2.
# BEGIN failed--compilation aborted at (eval 5) line 2.
# Failed test 'use Gearman:
# at t/Gearman-XS.t line 15.
# Tried to use 'Gearman:
# Error: Attempt to reload Gearman/XS.pm aborted.
# Compilation failed in require at /root/.
# BEGIN failed--compilation aborted at /root/.
# Compilation failed in require at (eval 6) line 2.
# BEGIN failed--compilation aborted at (eval 6) line 2.
Attempt to reload Gearman/XS.pm aborted.
Compilation failed in require at t/Gearman-XS.t line 20.
BEGIN failed--compilation aborted at t/Gearman-XS.t line 20.
# Looks like you planned 105 tests but ran 3.
# Looks like you failed 3 tests of 3 run.
# Looks like your test exited with 2 just after 3.
t/Gearman-XS.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 105/105 subtests
Test Summary Report
-------------------
t/Gearman-XS.t (Wstat: 512 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 2
Parse errors: Bad plan. You planned 105 tests but ran 3.
Files=1, Tests=3, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.04 cusr 0.00 csys = 0.08 CPU)
Result: FAIL
Failed 1/1 test programs. 3/3 subtests failed.
#######
(From Dennis this is the fix)
That's the problem, the build can't find the library. Don't ask me why that's reported as "probably harmless". :)
This is where the libraries are installled:
/usr/
/usr/
hm, that looks ok to me. Please try to change the following line in Makefile.pl:
LIBS => ['-lgearman'],
to
LIBS => ['-L/usr/local/lib/ -lgearman'],
and rebuild Gearman::XS.
#######
Related branches
Changed in gearmanxs: | |
status: | Fix Committed → Fix Released |
please try to rebuild without touching the Makefile.PL. You can set the include and lib path with:
export GEARMAN_ INCLUDE= /usr/local/ include/ LIB=/usr/ local/lib/
export GEARMAN_