MARTIMM / raku-mongodb-driver

MongoDB driver for Raku
Artistic License 2.0
18 stars 8 forks source link

Tests failed -Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm') #4

Closed szabgab closed 8 years ago

szabgab commented 9 years ago

On OSX. See also https://github.com/MARTIMM/BSON/issues/8

$ panda install MongoDB
==> Fetching MongoDB
==> Building MongoDB
Compiling lib/MongoDB/Wire.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Protocol.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Cursor.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Collection.pm to mbc
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Database.pm to mbc
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Connection.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/DBRef.pm to mbc
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Builder.pm:125
==> Testing MongoDB
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/301-Collection.t ....... 
No subtests run 
t/100-connection.t ....... 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
No subtests run 
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/300-Collection.t ....... 
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/200-database.t ......... 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/502-find.t ............. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/500-find.t ............. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/503-find.t ............. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/700-DBRef.t ............ 
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/700-DBRef.t ............ 

===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/505-find-and-modify.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/505-find-and-modify.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/remove.t ............... 
No subtests run 
===SORRY!===
Missing or wrong version of dependency '&encode_int32' (from 'lib/BSON/Binary.pm')
t/update.t ............... 
No subtests run 

Test Summary Report
-------------------
t/301-Collection.t     (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
t/100-connection.t     (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
t/300-Collection.t     (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
t/200-database.t       (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
Use of Nil in numeric contextt/501-find-one.t       (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/502-find.t           (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/500-find.t           (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/503-find.t           (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
  in block  at /Users/gabor/rakudo-star-2015.06/install/share/perl6/lib/Panda/Tester.pm:36
t/700-DBRef.t          (Wstat: 0 Tests: 0 Failed: 0)
==> Installing MongoDB
  Parse errors: No plan found in TAP output
t/insert.t             (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
t/505-find-and-modify.t (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/504-find.t           (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
t/remove.t             (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
t/update.t             (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
Files=14, Tests=0,  7 wallclock secs ( 0.07 usr  0.03 sys + 20.01 cusr  1.24 csys = 21.35 CPU)
Result: FAIL
Copying blib/lib/MongoDB.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB.pm
Copying blib/lib/MongoDB.pod to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB.pod
Copying blib/lib/MongoDB/Collection.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Collection.pm
Copying blib/lib/MongoDB/Collection.pod to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Collection.pod
Copying blib/lib/MongoDB/Connection.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Connection.pm
Copying blib/lib/MongoDB/Connection.pod to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Connection.pod
Copying blib/lib/MongoDB/Cursor.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Cursor.pm
Copying blib/lib/MongoDB/Cursor.pod to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Cursor.pod
Copying blib/lib/MongoDB/Database.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Database.pm
Copying blib/lib/MongoDB/Database.pod to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Database.pod
Copying blib/lib/MongoDB/DBRef.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/DBRef.pm
Copying blib/lib/MongoDB/Protocol.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Protocol.pm
Copying blib/lib/MongoDB/Wire.pm to /Users/gabor/rakudo-star-2015.06/install/share/perl6/site/lib/MongoDB/Wire.pm
==> Successfully installed MongoDB
MARTIMM commented 9 years ago

Hi Gabor, I also have seen this before with other packages. In those cases it had something to do with the same packages being at other locations of your local library of installed modules. Find the locations of where MongoDB is installed and remove it. Then try it again... Which wil fail also due to some order or of compiling the depending modules in BSON.....

I have to wait for that answer on this problem...

szabgab commented 9 years ago

I just tried again, this time on Rakudo Star 2015.07 and got different issues:

$ panda install MongoDB
==> Fetching MongoDB
==> Building MongoDB
Compiling lib/MongoDB/Wire.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/rakudo-star-2015.07/install/share/perl6/site/lib/BSON.pm
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Protocol.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/work/articles/.panda-work/1438855508_1/blib/lib/MongoDB/Wire.pm
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Cursor.pm to mbc
===SORRY!===
When pre-compiling a module, its dependencies must be pre-compiled first.
Please pre-compile /Users/gabor/work/articles/.panda-work/1438855508_1/blib/lib/MongoDB/Protocol.pm
Use of Nil in numeric context  in block  at /Users/gabor/rakudo-star-2015.07/install/share/perl6/lib/Panda/Builder.pm:125
Compiling lib/MongoDB/Collection.pm to mbc
===SORRY!===
...
MARTIMM commented 9 years ago

Because of some repairs I've uploaded a new version of MongoDB just a minute ago. Here it installs fine as well as BSON. That it needs BSON module in the messages above was because I needed a direct way to get to the BSON lib for testing. Done that in a BEGIN block changing the INC search path. This will give the above message

MARTIMM commented 8 years ago

I close this issue for now.