perl-LWP-Protocol-socks - an compilation error

General talk about packaging procedures and packages.
Post Reply
salix_user
Posts: 53
Joined: 23. Jan 2019, 13:15

perl-LWP-Protocol-socks - an compilation error

Post by salix_user »

I want to to compile perl-LWP-Protocol-socks. (salixos 14.2)
There is a problem here:

Code: Select all

...
.....
LWP-Protocol-socks-1.7/t/socks5.t
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for LWP::Protocol::socks
Writing MYMETA.yml and MYMETA.json
cp lib/URI/socks.pm blib/lib/URI/socks.pm
cp lib/URI/socks4.pm blib/lib/URI/socks4.pm
cp lib/LWP/Protocol/socks4.pm blib/lib/LWP/Protocol/socks4.pm
cp lib/LWP/Protocol/socks.pm blib/lib/LWP/Protocol/socks.pm
Manifying 3 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl5.22.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'use LWP::Protocol::socks;'
#   at t/LWP-Protocol-socks.t line 10.
#     Tried to use 'LWP::Protocol::socks'.
#     Error:  Can't locate Net/SSLeay.pm in @INC (you may need to install the Net::SSLeay module) (@INC contains: /usr/src/slapt-src/perl/perl-LWP-Protocol-socks/LWP-Protocol-socks-1.7/blib/lib /usr/src/slapt-src/perl/perl-LWP-Protocol-socks/LWP-Protocol-socks-1.7/blib/arch /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
# BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm line 19.
# Compilation failed in require at /usr/src/slapt-src/perl/perl-LWP-Protocol-socks/LWP-Protocol-socks-1.7/blib/lib/LWP/Protocol/socks.pm line 69.
# BEGIN failed--compilation aborted at /usr/src/slapt-src/perl/perl-LWP-Protocol-socks/LWP-Protocol-socks-1.7/blib/lib/LWP/Protocol/socks.pm line 69.
# Compilation failed in require at t/LWP-Protocol-socks.t line 10.
# BEGIN failed--compilation aborted at t/LWP-Protocol-socks.t line 10.
Can't locate object method "new" via package "URI" (perhaps you forgot to load "URI"?) at t/LWP-Protocol-socks.t line 17.
# Looks like your test exited with 255 just after 1.
t/LWP-Protocol-socks.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 6/6 subtests
t/socks4.t .............. skipped: no proxy defined; set SOCKS_PROXY
t/socks5.t .............. skipped: no proxy defined; set SOCKS_PROXY

Test Summary Report
-------------------
t/LWP-Protocol-socks.t (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 6 tests but ran 1.
Files=3, Tests=1,  1 wallclock secs ( 0.04 usr  0.01 sys +  0.29 cusr  0.03 csys =  0.37 CPU)
Result: FAIL
Failed 1/3 test programs. 1/1 subtests failed.
Makefile:858: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
fakeroot -- sh perl-LWP-Protocol-socks.SlackBuild Error
salix_user
Posts: 53
Joined: 23. Jan 2019, 13:15

Re: perl-LWP-Protocol-socks - an compilation error

Post by salix_user »

I was missing Net-SSLeay and perl-net-http
Please, add these ones to the list of its deps in Slackbuild (Sourcery)

The problem is solved.
User avatar
gapan
Salix Wizard
Posts: 6236
Joined: 6. Jun 2009, 17:40

Re: perl-LWP-Protocol-socks - an compilation error

Post by gapan »

Done, thanks!
Image
Image
Post Reply