[
https://issues.apache.org/jira/browse/THRIFT-3033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387522#comment-14387522
]
Jens Geyer commented on THRIFT-3033:
------------------------------------
Hi [~hs2323],
I modified the makefile and added a bunch of {{use strict}}. You may find the
result in my GitHub repo at
https://github.com/Jens-G/thrift/tree/THRIFT-3033-perl-multiplex. Please use
that as a base, I'll make the final patch out of that branch when all tests
succeed.
When running {{make check}} I get this:
{code}
make check
Making check in test
make[1]: Entering directory '/home/jens/Desktop/Thrift/lib/perl/test'
make check-local
make[2]: Entering directory '/home/jens/Desktop/Thrift/lib/perl/test'
../../../compiler/cpp/thrift --gen perl
../../../lib/rb/benchmark/Benchmark.thrift
../../../compiler/cpp/thrift --gen perl ../../../contrib/async-test/aggr.thrift
make[2]: Leaving directory '/home/jens/Desktop/Thrift/lib/perl/test'
make[1]: Leaving directory '/home/jens/Desktop/Thrift/lib/perl/test'
make[1]: Entering directory '/home/jens/Desktop/Thrift/lib/perl'
make -f Makefile-perl.mk
make[2]: Entering directory '/home/jens/Desktop/Thrift/lib/perl'
make[2]: Leaving directory '/home/jens/Desktop/Thrift/lib/perl'
find blib -name 'Makefile*' -exec rm -f {} \;
make check-local
make[2]: Entering directory '/home/jens/Desktop/Thrift/lib/perl'
/usr/bin/perl -Iblib/lib -I/home/jens/Desktop/Thrift/lib/perl -I./test/gen-perl
\
/home/jens/Desktop/Thrift/lib/perl/test.pl
/home/jens/Desktop/Thrift/lib/perl/test/*.t
/home/jens/Desktop/Thrift/lib/perl/test/memory_buffer.t .. ok
/home/jens/Desktop/Thrift/lib/perl/test/multiplex.t ...... Can't locate
Thrift/MultiplexedProcessor.pm in @INC (you may need to install the
Thrift::MultiplexedProcessor module) (@INC contains: blib/lib
/home/jens/Desktop/Thrift/lib/perl ./test/gen-perl
/home/jens/perl5/lib/perl5/i586-linux-thread-multi
/home/jens/perl5/lib/perl5/i586-linux-thread-multi /home/jens/perl5/lib/perl5
/home/jens/perl5/lib/perl5/i586-linux-thread-multi /home/jens/perl5/lib/perl5
/home/jens/perl5/lib/perl5/i586-linux-thread-multi /home/jens/perl5/lib/perl5
/usr/lib/perl5/site_perl/5.20.1/i586-linux-thread-multi
/usr/lib/perl5/site_perl/5.20.1
/usr/lib/perl5/vendor_perl/5.20.1/i586-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.20.1 /usr/lib/perl5/5.20.1/i586-linux-thread-multi
/usr/lib/perl5/5.20.1 /usr/lib/perl5/site_perl .) at
/home/jens/Desktop/Thrift/lib/perl/test/multiplex.t line 28.
BEGIN failed--compilation aborted at
/home/jens/Desktop/Thrift/lib/perl/test/multiplex.t line 28.
# Looks like your test exited with 2 before it could output anything.
/home/jens/Desktop/Thrift/lib/perl/test/multiplex.t ...... Dubious, test
returned 2 (wstat 512, 0x200)
Failed 6/6 subtests
/home/jens/Desktop/Thrift/lib/perl/test/processor.t ...... ok
Test Summary Report
-------------------
/home/jens/Desktop/Thrift/lib/perl/test/multiplex.t (Wstat: 512 Tests: 0
Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 6 tests but ran 0.
Files=3, Tests=8, 4 wallclock secs ( 0.08 usr 0.17 sys + 0.57 cusr 0.51
csys = 1.33 CPU)
Result: FAIL
Failed 1/3 test programs. 0/8 subtests failed.
Makefile:778: recipe for target 'check-local' failed
make[2]: *** [check-local] Error 255
make[2]: Leaving directory '/home/jens/Desktop/Thrift/lib/perl'
Makefile:647: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/jens/Desktop/Thrift/lib/perl'
Makefile:498: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
{code}
> Perl: Support for Multiplexing Services on any Transport, Protocol and Server
> -----------------------------------------------------------------------------
>
> Key: THRIFT-3033
> URL: https://issues.apache.org/jira/browse/THRIFT-3033
> Project: Thrift
> Issue Type: Sub-task
> Reporter: Shankar Narayan
> Assignee: Jens Geyer
> Attachments: MessageType.pm, MultiplexedProcessor.pm,
> MultiplexedProtocol.pm, ProtocolDecorator.pm
>
>
> Currently there is no support for mutliplexing services via perl.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)