apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roy T. Fielding" <field...@gbiv.com>
Subject Re: [PATCH] APR-Util configure fails to use Berkeley DB 4.4 from MacPorts
Date Sat, 01 Sep 2007 22:55:35 GMT
On Aug 24, 2007, at 3:32 PM, Daniel Rall wrote:

> On Mac OS X (10.4), I'm seeing APR-Util's configure fail to use  
> Berkeley DB 4.4 from MacPorts.  The reason for this is two-fold:
>
> 1) exit() is undefined in the C test code used to validate db.h.   
> This can be fixed by #including stdlib.h in C code generated from  
> the autoconf macro which performs the test (in build/dbm.m4).  I've  
> attached a patch against apr-util trunk which fixes this problem.
>
> [[[
> * build/dbm.m4
>   (APU_TRY_BERKELEY_DB): #include stdlib.h to allow header file  
> test code
>    to compile under Mac OS X.
> ]]]

I don't see any difference with that change, but I committed it based
on the man page.

> 2) libdb can't be found, because MacPorts installs its Berkeley DB  
> libraries under PREFIX/lib/db44/ (where PREFIX is /opt/local), a  
> location which is not looked in by apr-util's autoconf macros.  The  
> MacPorts folks tell me that this is their strategy for allowing  
> multiple versions of Berkeley DB to happily co-exist.  This looked  
> a bit messier to fix.

Did you try using --with-berkeley-db=/opt/local/lib ?

....Roy


Mime
View raw message