p5-berkeleydb dyld problem

markd at macports.org markd at macports.org
Sun Jun 10 16:57:24 PDT 2007


I went to FreeBSD to see how they do it. 

I think that method could be used to fix the portfile so it works with
both versions of berkely db.  If you are able to make a patch that would
do it and attach it to the ticket that's be great.  If not I'll try it


Cyril Bellot <cbellot at sky.fr> on Sunday, June 10, 2007 at 4:37 PM -0800
>> The new port builds correctly but the make test is still lost with
>> library location. I first thaught it was because of db44 installed too
>> on my system, but it's the same without it (tested on another system).
>I tried the opposite method, and making p5-berkeleydb depending on db44
>instead of db4 :
>  depends_lib-append port:db44
>  configure.env  BERKELEYDB_INCLUDE=${prefix}/include/db44 \
>                 BERKELEYDB_LIB=${prefix}/lib/db44
>It works like this.
>I think this is because db4 does not provide a libdb.dylib link (on the
>opposite of db44)
>Creating manually the link (/opt/local/lib/libdb.dylib ->
>/opt/local/lib/libdb-4.3.dylib) and compiling again p5-berkeleydb solved
>the problem.
>I known db3 creates such a link. db44 (and db45...) create too in their
>own subdirectories /opt/local/lib/db44 .  The case is different for db4
>which puts its libraries right into /opt/local/lib.
>Things may have to be reviewed on db4 port; some other dependent ports
>may be broken too without this hack...

More information about the macports-dev mailing list