in reply to Errors with BerkeleyDB

Hey I have a feeling the prob is with your system's db libs. Was that a fresh 4.10 install or have you brought it to this level from earlier 4.x.x versions by "building world"? If older db perhaps need to upgrade libs.. I've had to fiddle with this on certain apps, squidGuard comes to mind.. needing specific BerkleyDB versions.. the postgrey docs make no mention of db version.. hm

Just a guess, but I think it's nothing to do with Perl .. IIRC the postfix build doesn't require specific db libs, can work with older ones, it won't complain.. so you'd never get a complaint..

update: if you do get a reply from the author I'd be interested in hearing any comment..

Replies are listed 'Best First'.
Re^2: Errors with BerkeleyDB
by wmoran (Initiate) on Jun 07, 2004 at 01:39 UTC

    I did hear back from the author. The problem was that I was using db3 and the docs clearly state that db4.1 or newer is required. I looked through the Makefile for the p5-BerkeleyDB port, and used the option to build it with db4.1 ... all works great now.

    I appreciate your input, but the real reason I asked was to gain a better understanding of perl. Usually I'm able to read through source code and figure things out like this, but in this case I was totally lost, and I susped it has something to do with my understanding of perl not being good enough. I simply don't understand how that constant is ever getting set.

      Ah I thought as much.. ;-) ( I mean that it was a DB version issue, not Perl or modules)

      The constants.h file in the BerkeleyDB source references the functions; when you build the module, you end up with a shared library, BerkeleyDB.so -- once postgrey invokes BerkeleyDB,
      use BerkeleyDB;
      you've got access to all the functions..