Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MongoDB CPAN distribution.

Maintainer(s)' notes

Please don't report bugs here. Please use the MongoDB Perl driver issue tracker instead.

Report information
The Basics
Id: 68652
Status: resolved
Priority: 0/
Queue: MongoDB

People
Owner: Nobody in particular
Requestors: shishini [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.43
Fixed in: (no value)



Subject: Test/Build Fail on Perl 5.14.0
I can't build/test MongoDB 0.43 on Perl 5.14.0, it does work thought on Perl 5.12.2 Here is what I get when using Perl 5.14.0 laptop:~$ cpan MongoDB CPAN: Storable loaded ok (v2.27) Going to read '/home/laptop/.cpan/Metadata' Database was generated on Sat, 04 Jun 2011 02:34:55 GMT Running install for module 'MongoDB' Running make for K/KR/KRISTINA/MongoDB-0.43.tar.gz CPAN: Digest::SHA loaded ok (v5.61) CPAN: Compress::Zlib loaded ok (v2.033) Checksum for /home/laptop/.cpan/sources/authors/id/K/KR/KRISTINA/MongoDB-0.43.tar.gz ok CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.110440) CPAN: Module::CoreList loaded ok (v2.49) CPAN.pm: Going to build K/KR/KRISTINA/MongoDB-0.43.tar.gz Checking if your kit is complete... Looks good Writing Makefile for MongoDB Writing MYMETA.yml cp lib/MongoDB/Code.pm blib/lib/MongoDB/Code.pm cp lib/MongoDB/Connection.pm blib/lib/MongoDB/Connection.pm cp lib/MongoDB.pm blib/lib/MongoDB.pm cp lib/MongoDB/Database.pm blib/lib/MongoDB/Database.pm cp lib/MongoDB/BSON.pm blib/lib/MongoDB/BSON.pm cp lib/MongoDB/Cursor.pm blib/lib/MongoDB/Cursor.pm cp lib/MongoDB/DataTypes.pod blib/lib/MongoDB/DataTypes.pod cp lib/MongoDB/Examples.pod blib/lib/MongoDB/Examples.pod cp lib/MongoDB/GridFS/File.pm blib/lib/MongoDB/GridFS/File.pm cp lib/MongoDB/Collection.pm blib/lib/MongoDB/Collection.pm cp lib/MongoDB/Timestamp.pm blib/lib/MongoDB/Timestamp.pm cp lib/MongoDB/OID.pm blib/lib/MongoDB/OID.pm cp lib/MongoDB/GridFS.pm blib/lib/MongoDB/GridFS.pm cp lib/MongoDB/Indexing.pod blib/lib/MongoDB/Indexing.pod cp lib/MongoDB/Tutorial.pod blib/lib/MongoDB/Tutorial.pod /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-Iinc" /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/ExtUtils/xsubpp -typemap /home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/ExtUtils/typemap xs/BSON.xs > xs/BSON.xsc && mv xs/BSON.xsc xs/BSON.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o xs/BSON.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686- linux-thread-multi/CORE" xs/BSON.c /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-Iinc" /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/ExtUtils/xsubpp -typemap /home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/ExtUtils/typemap xs/Connection.xs > xs/Connection.xsc && mv xs/Connection.xsc xs/Connection.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o xs/Connection.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/i686-linux-thread-multi/CORE" xs/Connection.c /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-Iinc" /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/ExtUtils/xsubpp -typemap /home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/ExtUtils/typemap xs/Cursor.xs > xs/Cursor.xsc && mv xs/Cursor.xsc xs/Cursor.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o xs/Cursor.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/i686-linux-thread-multi/CORE" xs/Cursor.c /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-Iinc" /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/ExtUtils/xsubpp -typemap /home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/ExtUtils/typemap xs/Mongo.xs > xs/Mongo.xsc && mv xs/Mongo.xsc xs/Mongo.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o xs/Mongo.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/i686-linux-thread-multi/CORE" xs/Mongo.c /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-Iinc" /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/ExtUtils/xsubpp -typemap /home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/ExtUtils/typemap xs/OID.xs > xs/OID.xsc && mv xs/OID.xsc xs/OID.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o xs/OID.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686- linux-thread-multi/CORE" xs/OID.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o mongo_link.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/i686-linux-thread-multi/CORE" mongo_link.c cc -c -I. -O2 -DVERSION=\"0.43\" -DXS_VERSION=\"0.43\" -o perl_mongo.o -fPIC "-I/home/laptop/perl5/perlbrew/perls/perl- 5.14.0/lib/5.14.0/i686-linux-thread-multi/CORE" perl_mongo.c Running Mkbootstrap for MongoDB () chmod 644 MongoDB.bs rm -f blib/arch/auto/MongoDB/MongoDB.so cc -shared -O2 -L/usr/local/lib -fstack-protector xs/BSON.o xs/Connection.o xs/Cursor.o xs/Mongo.o xs/OID.o mongo_link.o perl_mongo.o -o blib/arch/auto/MongoDB/MongoDB.so \ \ chmod 755 blib/arch/auto/MongoDB/MongoDB.so cp MongoDB.bs blib/arch/auto/MongoDB/MongoDB.bs chmod 644 blib/arch/auto/MongoDB/MongoDB.bs Manifying blib/man3/MongoDB::Connection.3 Manifying blib/man3/MongoDB::Code.3 Manifying blib/man3/MongoDB::Database.3 Manifying blib/man3/MongoDB.3 Manifying blib/man3/MongoDB::BSON.3 Manifying blib/man3/MongoDB::DataTypes.3 Manifying blib/man3/MongoDB::Cursor.3 Manifying blib/man3/MongoDB::Examples.3 Manifying blib/man3/MongoDB::GridFS::File.3 Manifying blib/man3/MongoDB::Collection.3 Manifying blib/man3/MongoDB::Timestamp.3 Manifying blib/man3/MongoDB::GridFS.3 Manifying blib/man3/MongoDB::OID.3 Manifying blib/man3/MongoDB::Indexing.3 Manifying blib/man3/MongoDB::Tutorial.3 KRISTINA/MongoDB-0.43.tar.gz /usr/bin/make -- OK CPAN: YAML loaded ok (v0.73) Running make test PERL_DL_NONLAZY=1 /home/laptop/perl5/perlbrew/perls/perl-5.14.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/threads/*.t t/bson.t ............ Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/bson.t line 6. BEGIN failed--compilation aborted at t/bson.t line 6. t/bson.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/collection.t ...... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/collection.t line 11. BEGIN failed--compilation aborted at t/collection.t line 11. t/collection.t ...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/connection.t ...... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/connection.t line 8. BEGIN failed--compilation aborted at t/connection.t line 8. t/connection.t ...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/cursor.t .......... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/cursor.t line 7. BEGIN failed--compilation aborted at t/cursor.t line 7. t/cursor.t .......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/database.t ........ Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/database.t line 8. BEGIN failed--compilation aborted at t/database.t line 8. t/database.t ........ Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/db.t .............. Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/db.t line 6. BEGIN failed--compilation aborted at t/db.t line 6. t/db.t .............. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/gridfs.t .......... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/gridfs.t line 10. BEGIN failed--compilation aborted at t/gridfs.t line 10. t/gridfs.t .......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/threads/basic.t ... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/threads/basic.t line 5. BEGIN failed--compilation aborted at t/threads/basic.t line 5. t/threads/basic.t ... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/threads/cursor.t .. Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/threads/cursor.t line 5. BEGIN failed--compilation aborted at t/threads/cursor.t line 5. t/threads/cursor.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/types.t ........... Not a CODE reference at /home/laptop/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686-linux- thread-multi/DynaLoader.pm line 213. END failed--call queue aborted at /home/laptop/.cpan/build/MongoDB-0.43- zLHr5A/blib/lib/MongoDB.pm line 213. Compilation failed in require at t/types.t line 6. BEGIN failed--compilation aborted at t/types.t line 6. t/types.t ........... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/bson.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/collection.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/connection.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/cursor.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/database.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/db.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/gridfs.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/threads/basic.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/threads/cursor.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/types.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=10, Tests=0, 1 wallclock secs ( 0.07 usr 0.02 sys + 0.65 cusr 0.08 csys = 0.82 CPU) Result: FAIL Failed 10/10 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 KRISTINA/MongoDB-0.43.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports KRISTINA/MongoDB-0.43.tar.gz Running make install make test had returned bad status, won't install without force
Can you send the output of perl -V?
From: shishini [...] yahoo.com
On Fri Jul 08 13:53:56 2011, KRISTINA wrote: Show quoted text
> Can you send the output of perl -V?
here you go :) Summary of my perl5 (revision 5 version 14 subversion 0) configuration: Platform: osname=linux, osvers=2.6.38-8-generic-pae, archname=i686-linux- thread-multi uname='linux systems-laptop 2.6.38-8-generic-pae #42-ubuntu smp mon apr 11 05:17:09 utc 2011 i686 i686 i386 gnulinux ' config_args='-de -Dprefix=/home/systems/perl5/perlbrew/perls/perl- 5.14.0 -Dusethreads' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict- systemsasing -pipe -fstack-protector -I/usr/local/include - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-systemsasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.5.2', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 systemsgnbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/lib/i386-linux-gnu /usr/lib64 libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.13' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack- protector' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API Built under linux Compiled at May 18 2011 01:51:39 %ENV: PERLBREW_PATH="/home/systems/perl5/perlbrew/bin:/home/systems/perl5/perl brew/perls/perl-5.14.0/bin" PERLBREW_PERL="perl-5.14.0" PERLBREW_ROOT="/home/systems/perl5/perlbrew" PERLBREW_VERSION="0.21" @INC: /home/systems/perl5/perlbrew/perls/perl- 5.14.0/lib/site_perl/5.14.0/i686-linux-thread-multi /home/systems/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0 /home/systems/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0/i686- linux-thread-multi /home/systems/perl5/perlbrew/perls/perl-5.14.0/lib/5.14.0 .
From: mmaslano [...] redhat.com
In my case is build failing with: perl_mongo.c: In function 'elem_to_sv': perl_mongo.c:427:26: warning: variable 'heval' set but not used [-Wunused-but-set-variable] perl_mongo.c:462:18: error: 'PMf_LOCALE' undeclared (first use in this function) perl_mongo.c:462:18: note: each undeclared identifier is reported only once for each function it appears in mongo_link.c: In function 'mongo_link_hear': mongo_link.c:213:15: warning: variable 'link' set but not used [-Wunused-but-set-variable] make: *** [perl_mongo.o] Error 1 make: *** Waiting for unfinished jobs.... It is because changes in perl5.13.9: Certain shared flags in the C<pmop.op_pmflags> and C<regexp.extflags> structures have been removed. These are: C<Rxf_Pmf_LOCALE>, C<Rxf_Pmf_UNICODE>, and C<PMf_LOCALE>. Instead there are encodes and three static in-line functions for accessing the information: C<get_regex_charset()>, C<set_regex_charset()>, and C<get_regex_charset_name()>, which are defined in the places where the original flags were.
From: mmaslano [...] redhat.com
I found similar problem in AnyMongo: https://rt.cpan.org/Public/Bug/Display.html?id=67035
From: mmaslano [...] redhat.com
On Tue Jul 26 04:48:43 2011, mmaslano@redhat.com wrote: Show quoted text
> I found similar problem in AnyMongo: > https://rt.cpan.org/Public/Bug/Display.html?id=67035
Could you look at this patch? I'm not sure how to test it. Current tests passed, but that doesn't mean anything. Tested with perl-5.14.1 and mongodb 1.6.4.
Subject: perl-MongoDB-perl5.14-PMf_LOCALE.patch
diff -up MongoDB-0.41/perl_mongo.c.struct MongoDB-0.41/perl_mongo.c --- MongoDB-0.41/perl_mongo.c.struct 2011-07-26 12:31:14.650995886 +0200 +++ MongoDB-0.41/perl_mongo.c 2011-07-26 14:01:25.195508125 +0200 @@ -459,7 +459,11 @@ elem_to_sv (int type, buffer *buf) while(*(buf->pos) != 0) { switch(*(buf->pos)) { case 'l': +#if PERL_REVISION==5 && PERL_VERSION>12 + set_regex_charset(flags, REGEX_LOCALE_CHARSET); +#else flags |= PMf_LOCALE; +#endif break; case 'm': flags |= PMf_MULTILINE;
@mmaslano: thank you for the patch, but this was already fixed for 0.43 (https://github.com/mongodb/mongo-perl-driver/commit/defd2c168a8439ba2c279770f595d7bd56081e6e). The problem people are having with 5.14 is different, I think it has something to do with one of the install packages clearing flags.

Message body is not shown because it is too large.

Current version of the distribution builds and tests correctly on 5.14.0, so I'll resolve this.