Subject: | BerkeleyDB-0.31 fails on x86-64 bit |
Date: | Mon, 25 Jun 2007 11:18:06 -0700 |
To: | bug-BerkeleyDB [...] rt.cpan.org |
From: | Gloria Lee <gplee [...] yahoo-inc.com> |
Trying to make BerkeleyDB-0.31 module on a Redhat 4 x86-64 bit
machine and complained CPU does not support x86-64.
[root@ ~]# uname -a
Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:56:28 EST 2006 x86_64
x86_64 x86_64 GNU/Linux
[root@]# perl -v
This is perl, v5.8.6 built for i686-linux-thread-multi
[root@BerkeleyDB-0.30]# perl Makefile.PL
Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -ldb
Writing Makefile for BerkeleyDB
[root@]# make
cp BerkeleyDB.pm blib/lib/BerkeleyDB.pm
AutoSplitting blib/lib/BerkeleyDB.pm (blib/lib/auto/BerkeleyDB)
cp BerkeleyDB/Hash.pm blib/lib/BerkeleyDB/Hash.pm
cp BerkeleyDB.pod blib/lib/BerkeleyDB.pod
cp BerkeleyDB/Btree.pm blib/lib/BerkeleyDB/Btree.pm
/usr/local/bin/perl /usr/local/lib/perl5/5.8.6/ExtUtils/xsubpp -
noprototypes -typemap /usr/local/lib/perl5/5.8.6/ExtUtils/typemap -
typemap typemap BerkeleyDB.xs > BerkeleyDB.xsc && mv BerkeleyDB.xsc
BerkeleyDB.c
gcc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -
DTHREADS_HAVE_PIDS -fno-strict-aliasing -pipe -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=pentium3 -
fprefetch-loop-arrays -funroll-loops -pipe -DVERSION=\"0.30\" -
DXS_VERSION=\"0.30\" -fpic "-I/usr/local/lib/perl5/5.8.6/i686-linux-
thread-multi/CORE" BerkeleyDB.c
BerkeleyDB.c:1: error: CPU you selected does not support x86-64
instruction set
BerkeleyDB.c:1: error: CPU you selected does not support x86-64
instruction set
make: *** [BerkeleyDB.o] Error 1