Posted on 2007-04-16 16:42:57-07 by steveproc
error during make test
i am getting some error during make test. i did get it work half year ago. after my system crashed and reinstall with fresh new RHEL4. i drag out my backup of the IB java api (it is api v9) and my modified version of tws0.08 (just some fix as the readme mentioned to make it compatiable with api v9's new function and etc) but it suddenly not working. the only different i can think of is the new jdk which is now 1.5.0-11 and those required perl module are newer version. here's my errors during make test. thanks in advance. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00.load............ok 1/1# Testing Finance::InteractiveBrokers::TWS 0.0.8 t/00.load............ok t/01.option_chain....OIO error: Trapped uncaught error Error: Can't call method "get_EClientSocket" without a package or object reference at /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm line 162. Package: Finance::InteractiveBrokers::TWS File: /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm Line: 162 Trace begun at /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm line 162 Finance::InteractiveBrokers::TWS::AUTOLOAD('-ConfigFile', '/home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/tws.conf') called at /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm line 96 Finance::InteractiveBrokers::TWS::get_conf_data('Finance::InteractiveBrokers::TWS=SCALAR(0x98e4ed0)') called at /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm line 68 Object::InsideOut::new('Finance::InteractiveBrokers::TWS', 'HASH(0x9ad5d80)') called at /home/vincent/Finance-InteractiveBrokers-TWS-v0.0.8/blib/lib/Finance/InteractiveBrokers/TWS.pm line 77 Finance::InteractiveBrokers::TWS::new('Finance::InteractiveBrokers::TWS', 'Local::Opt_Chain=HASH(0x9a1110c)') called at t/01.option_chain.t line 29 # No tests run! t/01.option_chain....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/pod-coverage.......NOK 1 # Failed test 'Pod coverage on Finance::InteractiveBrokers::TWS' # at /usr/lib/perl5/site_perl/5.8.5/Test/Pod/Coverage.pm line 126. # Coverage for Finance::InteractiveBrokers::TWS is 43.8%, with 9 naked subroutines: # ComboLeg # Contract # ContractDetails # EClientSocket # Execution # ExecutionFilter # Order # ScannerSubscription # get_conf_data One or more DATA sections were not processed by Inline. # Looks like you failed 1 test of 1. t/pod-coverage.......dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/pod................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01.option_chain.t 255 65280 1 2 200.00% 1 t/pod-coverage.t 1 256 1 1 100.00% 1 Failed 2/4 test scripts, 50.00% okay. 2/4 subtests failed, 50.00% okay. make: *** [test_dynamic] Error 255
Direct Responses: 4977 | Write a response
Posted on 2007-04-24 16:09:09-07 by madizzy in response to 4894
Re: error during make test
Hello, I just figured it out myself. In TWS.pm, modify sub get_conf_data to read:
#my %config = ParseConfig(-ConfigFile => $conf); my $c = Config::General->new($conf); my %config = $c->getall;
Sincerely, IK
Direct Responses: 4996 | Write a response
Posted on 2007-04-26 17:44:49-07 by steveproc in response to 4977
Re: error during make test
oh thanks a lot. what i did was the dumb way, switch back to Config-General-2.30 instead of 2.32. thx for your patch. that would be better!
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.