Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2007 12:50:22 -0600
From:      Len Conrad <LConrad@Go2France.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: can't complete BerkeleyDB and Berkele.pm
Message-ID:  <200702121934312.SM00716@TX2.Go2France.com>
In-Reply-To: <200702091737140.SM00716@TX2.Go2France.com>
References:  <200702091737140.SM00716@TX2.Go2France.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:53 AM 2/9/2007, you wrote:

>Done this many times, but this time something is screwed:
>
>FreeBSD 4.10-RELEASE
>
>db41-4.1.25_2       The Berkeley DB package, revision 4.1
>
>perl -MCPAN -e 'install BerkeleyDB'
>
>fails with :
>
>Manifying blib/man3/BerkeleyDB.3
>   /usr/bin/make  -- OK
>Running make test
>
>PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" 
>"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>
>t/btree........Can't load 
>'/root/.cpan/build/BerkeleyDB-0.31/blib/arch/auto/BerkeleyDB/BerkeleyDB.so' 
>for module BerkeleyDB: 
>/root/.cpan/build/BerkeleyDB-0.31/blib/arch/auto/BerkeleyDB/BerkeleyDB.so: 
>Undefined symbol "db_create" at 
>/usr/local/lib/perl5/5.8.8/i386-freebsd/DynaLoader.pm line 230.
>  at t/btree.t line 6
>
>Compilation failed in require at t/btree.t line 6.
>
>BEGIN failed--compilation aborted at t/btree.t line 6.
>
>Undefined subroutine &BerkeleyDB::Term::close_everything called at 
>/root/.cpan/build/BerkeleyDB-0.31/blib/lib/BerkeleyDB.pm line 1675.
>
>END failed--call queue aborted at t/btree.t line 6.
>
>t/btree........dubious
>         Test returned status 2 (wstat 512, 0x200)
>
>t/cds..........Can't load 
>'/root/.cpan/build/BerkeleyDB-0.31/blib/arch/auto/BerkeleyDB/BerkeleyDB.so' 
>for module BerkeleyDB: 
>/root/.cpan/build/BerkeleyDB-0.31/blib/arch/auto/BerkeleyDB/BerkeleyDB.so: 
>Undefined symbol "db_create" at 
>/usr/local/lib/perl5/5.8.8/i386-freebsd/DynaLoader.pm line 230.
>  at t/cds.t line 8
>
>... etc, etc.
>
>Suggestions?
==============

I loaded the 4.10 release /usr/ports tree and did


cd /usr/ports/databases/p5-BerkeleyDB
make && make install

which hummed along fine until:

creating libdb3_cxx.la
(cd .libs && rm -f libdb3_cxx.la && ln -s ../libdb3_cxx.la libdb3_cxx.la)
/bin/sh ./libtool --mode=compile cc -c -O 
-pipe  -I./../dist/../include -D_THREAD_SAFE 
./../dist/../db_dump185/db_dump185.c
rm -f .libs/db_dump185.lo
cc -c -O -pipe -I./../dist/../include -D_THREAD_SAFE 
./../dist/../db_dump185/db_dump185.c  -fPIC -DPIC -o db_dump185.o
./../dist/../db_dump185/db_dump185.c: In function `main':
./../dist/../db_dump185/db_dump185.c:210: warning: assignment makes 
pointer from integer without a cast
./../dist/../db_dump185/db_dump185.c:212: warning: assignment makes 
pointer from integer without a cast
./../dist/../db_dump185/db_dump185.c:227: structure has no member named `seq'
./../dist/../db_dump185/db_dump185.c:227: `R_NEXT' undeclared (first 
use in this function)
./../dist/../db_dump185/db_dump185.c:227: (Each undeclared identifier 
is reported only once
./../dist/../db_dump185/db_dump185.c:227: for each function it appears in.)
./../dist/../db_dump185/db_dump185.c:232: structure has no member named `seq'
./../dist/../db_dump185/db_dump185.c: In function `db_hash':
./../dist/../db_dump185/db_dump185.c:260: structure has no member 
named `internal'
./../dist/../db_dump185/db_dump185.c:262: structure has no member 
named `internal'
./../dist/../db_dump185/db_dump185.c: In function `db_btree':
./../dist/../db_dump185/db_dump185.c:287: structure has no member 
named `internal'
*** Error code 1

Stop in /usr/ports/databases/db3/work/db-3.3.11/build_unix.
*** Error code 1

Stop in /usr/ports/databases/db3.
*** Error code 1

Stop in /usr/ports/databases/p5-BerkeleyDB.

Suggestions?

thanks
Len





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702121934312.SM00716>