p5-berkeleydb dyld problem

Cyril Bellot cbellot at sky.fr
Sun Jun 10 08:54:21 PDT 2007


Cyril Bellot a écrit :
> Is there anyone here successfully using p5-berkeleydb ?
> 
> I have a linking problem and wanted to check it out before posting a 
> ticket : 
> 
>     $ /opt/local/bin/perl -wc -T postgrey
>     dyld: lazy symbol binding failed: Symbol not found: _db_version
>       Referenced from: 
>     /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/BerkeleyDB/BerkeleyDB.bundle
>       Expected in: dynamic lookup
> 
>     dyld: Symbol not found: _db_version
>       Referenced from: 
>     /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/BerkeleyDB/BerkeleyDB.bundle
>       Expected in: dynamic lookup
> 
>     Trace/BPT trap
> 
> 
> Maybe a linking problem at build, but I am not sure as the fail is about
> a dynamic lookup.
> 
>     $otool -L /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/BerkeleyDB/BerkeleyDB.bundle
>     /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/BerkeleyDB/BerkeleyDB.bundle: 
> 	    /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 92.0.0)
> 	    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.4.1)
> 
> I've allready tried to reinstall this port...

This port only works with db3 variant. It fails to load appropriate
libraries with db4 : the make test in the work port directories does not
even pass :

$ make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harne
ss(0, 'blib/lib', 'blib/arch')" t/*.t
t/btree........Can't load
'/Users/cbellot/devel/ports/test/BerkeleyDB-0.26/blib/
arch/auto/BerkeleyDB/BerkeleyDB.bundle' for module BerkeleyDB:
dlopen(/Users/cbe
llot/devel/ports/test/BerkeleyDB-0.26/blib/arch/auto/BerkeleyDB/BerkeleyDB.bundl
e, 2): Symbol not found: _db_create
  Referenced from:
/Users/cbellot/devel/ports/test/BerkeleyDB-0.26/blib/arch/aut
o/BerkeleyDB/BerkeleyDB.bundle
  Expected in: dynamic lookup
 at t/btree.t line 14
Compilation failed in require at t/btree.t line 14.
BEGIN failed--compilation aborted at t/btree.t line 14.
Undefined subroutine &BerkeleyDB::Term::close_everything called at
/Users/cbello
t/devel/ports/test/BerkeleyDB-0.26/blib/lib/BerkeleyDB.pm line 1649.





More information about the macports-dev mailing list