develooper Front page | perl.perl5.porters | Postings from September 2006

db-4.5.20: failures with 64-bit PPC Darwin (Mac OS X) [Was Re: ?? perl5.8.8/OSX10.4.7 crashing *only* on spamassassin launch. is this perl? spamassassin? osx? ]

Thread Next
Dominic Dunlop
September 28, 2006 09:23
db-4.5.20: failures with 64-bit PPC Darwin (Mac OS X) [Was Re: ?? perl5.8.8/OSX10.4.7 crashing *only* on spamassassin launch. is this perl? spamassassin? osx? ]
Message ID:
db-4.5.20 was released very recently -- follow the links from http:// In my (interrupted) quest to get anywhere on the  
spamassassin issue, I've just installed the new db and done a fat  
build for 32- and 64-bit PPC architectures to use in place of my  
existing and somewhat old installation of db-4.3. The new library  
passes all tests with threaded 32-bit perl, but 64-bit threaded perl  
can't tie a btree or hash db.

Just in case anybody can say "that's because you didn't x" or  
similar, and so save me adding this issue to my to-do list, here's  
the dope:

./Test -v ../ext/DB_File/t/*.tt/../ext/DB_File/t/db-btree....Could  
not tie: Inappropriate ioctl for device at ../ext/DB_File/t/db- 
btree.t line 180.
ok 1
ok 16
not ok 17
FAILED at test 17
t/../ext/DB_File/t/db-hash.....Could not tie: Inappropriate ioctl for  
device at ../ext/DB_File/t/db-hash.t line 142.
ok 1
ok 14
not ok 15
FAILED at test 15
ok 1
ok 177
# db_ver 4.005020
ok 178
ok 204

The relevant test in db-hash.t looks like

# Now check the interface to HASH
my ($X, %h);
ok(15, $X = tie(%h, 'DB_File',$Dfile, O_RDWR|O_CREAT, 0640,  
$DB_HASH ) );
die "Could not tie: $!" unless $X;

The failing line in db-btree.t is pretty much identical.

I have yet to try unthreaded builds.

I built libdb.dylib like this:

CFLAGS='-arch ppc -arch ppc64' LDFLAGS='-arch ppc -arch ppc64' ../ 
dist/configure --enable-pthread_api --enable-test --enable-tcl --with- 

and the 64-bit perl like this:

Summary of my perl5 (revision 5 version 9 subversion 4 patch 28895)  
     osname=darwin, osvers=8.7.0, archname=darwin-thread-multi-2level
     uname='darwin tullamore.local 8.7.0 darwin kernel version 8.7.0:  
fri may 26 15:20:53 pdt 2006; root:xnu-792.6.76.obj~1release_ppc  
power macintosh powerpc '
     config_args='-de -Dlocincpth=/usr/local/BerkeleyDB.4.5/include - 
Dloclibpth=/usr/local/BerkeleyDB.4.5/lib -Doptimize=-g -Dusethreads - 
Duse64bitall -Dusedevel'
     hint=recommended, useposix=true, d_sigaction=define
     useithreads=define, usemultiplicity=define
     useperlio=define, d_sfio=undef, uselargefiles=define,  
     use64bitint=define, use64bitall=define, uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
     cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp - 
arch ppc64 -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/ 
     cppflags='-no-cpp-precomp -arch ppc64 -fno-common -DPERL_DARWIN - 
no-cpp-precomp -arch ppc64 -DDEBUGGING -fno-strict-aliasing -pipe -I/ 
     ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build  
5363)', gccosandvers=''
     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=ffff
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
     ivtype='long', ivsize=8, nvtype='double', nvsize=8,  
Off_t='off_t', lseeksize=8
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc -arch ppc64', ldflags  
=' -arch ppc64 -L/usr/local/BerkeleyDB.4.5/lib'
     libpth=/usr/local/BerkeleyDB.4.5/lib /usr/lib /usr/local/lib
     libs=-lgdbm -ldbm -ldb -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false,  
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/ 

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About