Subject: | Can't build MongoDB on MacOSX10.6.4 using Perl-5.8.9 |
$ perl Makefile.PL
include /Users/tcaine/git/mongo-perl-driver/inc/Module/Install.pm
include inc/Module/Install/Metadata.pm
include inc/Module/Install/Base.pm
include inc/Module/Install/PRIVATE/Mongo.pm
include inc/Module/Install/Makefile.pm
include inc/Module/Install/WriteAll.pm
include inc/Module/Install/Win32.pm
include inc/Module/Install/Can.pm
include inc/Module/Install/Fetch.pm
Writing Makefile for MongoDB
Writing META.yml
Todd-Caines-MacBook-Pro:mongo-perl-driver tcaine$ make
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o xs/Connection.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE"
xs/Connection.c
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o xs/Cursor.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE" xs/Cursor.c
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o xs/Mongo.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE" xs/Mongo.c
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o xs/OID.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE" xs/OID.c
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o mongo_link.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE"
mongo_link.c
gcc-4.2 -c -I. -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include
-Os -DVERSION=\"0.35\" -DXS_VERSION=\"0.35\" -o perl_mongo.o
-DUSE_64_BIT_INT
"-I/System/Library/Perl/5.8.9/darwin-thread-multi-2level/CORE"
perl_mongo.c
Running Mkbootstrap for MongoDB ()
chmod 644 MongoDB.bs
rm -f blib/arch/auto/MongoDB/MongoDB.bundle
gcc-4.2 -mmacosx-version-min=10.6 -bundle -undefined dynamic_lookup
-L/usr/local/lib xs/Connection.o xs/Cursor.o xs/Mongo.o xs/OID.o
mongo_link.o perl_mongo.o -o blib/arch/auto/MongoDB/MongoDB.bundle \
\
chmod 755 blib/arch/auto/MongoDB/MongoDB.bundle
cp MongoDB.bs blib/arch/auto/MongoDB/MongoDB.bs
chmod 644 blib/arch/auto/MongoDB/MongoDB.bs
Manifying blib/man3/MongoDB::Connection.3pm
Manifying blib/man3/MongoDB::Code.3pm
Manifying blib/man3/MongoDB::Database.3pm
Manifying blib/man3/MongoDB.3pm
Manifying blib/man3/MongoDB::BSON.3pm
Manifying blib/man3/MongoDB::DataTypes.3pm
Manifying blib/man3/MongoDB::Cursor.3pm
Manifying blib/man3/MongoDB::Examples.3pm
Manifying blib/man3/MongoDB::GridFS::File.3pm
Manifying blib/man3/MongoDB::Collection.3pm
Manifying blib/man3/MongoDB::Timestamp.3pm
Manifying blib/man3/MongoDB::OID.3pm
Manifying blib/man3/MongoDB::GridFS.3pm
Manifying blib/man3/MongoDB::Indexing.3pm
Manifying blib/man3/MongoDB::Tutorial.3pm
Todd-Caines-MacBook-Pro:mongo-perl-driver tcaine$ make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/bson.t ........ Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/bson.t line 6
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 .. Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/collection.t line 10
Compilation failed in require at t/collection.t line 10.
BEGIN failed--compilation aborted at t/collection.t line 10.
t/collection.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/connection.t .. Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/connection.t line 6
Compilation failed in require at t/connection.t line 6.
BEGIN failed--compilation aborted at t/connection.t line 6.
t/connection.t .. Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/cursor.t ...... Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/cursor.t line 7
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 .... Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/database.t line 6
Compilation failed in require at t/database.t line 6.
BEGIN failed--compilation aborted at t/database.t line 6.
t/database.t .... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/db.t .......... Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/db.t line 6
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 ...... Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/gridfs.t line 9
Compilation failed in require at t/gridfs.t line 9.
BEGIN failed--compilation aborted at t/gridfs.t line 9.
t/gridfs.t ...... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/types.t ....... Can't load
'/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle'
for module MongoDB:
dlopen(/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle,
2): no suitable image found. Did find:
/Users/tcaine/git/mongo-perl-driver/blib/arch/auto/MongoDB/MongoDB.bundle: mach-o, but wrong architecture at /System/Library/Perl/5.8.9/darwin-thread-multi-2level/DynaLoader.pm line 230.
at t/types.t line 6
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/types.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=8, Tests=0, 1 wallclock secs ( 0.04 usr 0.02 sys + 0.67 cusr
0.11 csys = 0.84 CPU)
Result: FAIL
Failed 8/8 test programs. 0/0 subtests failed.
make: *** [test_dynamic] Error 2
Subject: | perl_version.txt |
$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Platform:
osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level
uname='darwin neige.apple.com 10.0 darwin kernel version 10.0.0d8: tue may 5 19:29:59 pdt 2009; root:xnu-1437.2~2release_i386 i386 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=gcc-4.2'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=define uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc-4.2', ccflags ='-arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc-4.2 -mmacosx-version-min=10.6', ldflags ='-arch i386 -arch ppc -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_FAST_STDIO USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
6576362: fixed 5.8.9 binary compatibility issue: perlio mutex not initialized
Built under darwin
Compiled at Jun 24 2009 00:35:17