You are not logged in.

#1 2011-10-25 14:54:22

hokapoka
Member
Registered: 2011-04-05
Posts: 5

BerkeleyDB & Incompatible versions of libdb & db.h

Hi all

I've been using the Postgrey[*1] package on a mailserver for about 12 months now without any trouble.  Did my semi-regular system upgrade over the w/e and since have been unable to get it to start.

Additionally, the amavisd-new [*2] AUR package has also stopped working with the same error, although I've managed to find a work around for the moment.

# /etc/rc.d/postgrey start
:: Starting Postgrey                                                   [BUSY] 
BerkeleyDB needs compatible versions of libdb & db.h
        you have db.h version 5.2.28 and libdb version 5.2.36
Compilation failed in require at /usr/sbin/postgrey line 16.
BEGIN failed--compilation aborted at /usr/sbin/postgrey line 16.
                                                                       [FAIL] 

I get an identical error message when starting amavisd-new, but there's a flag to disable the db, which I has set so at least that's able to run. 

I've tried updating both the per-berkeleydb packages and the postgrey packages but I still receive the same error.  I've also installed them via the ABS, but as I didn't make any changes it didn't yield any results.

Is anyone using postgrey with an up-to-date system?

Any help would be greatly appreciated. 

ETA : I'm currently building core/db via the ABS to see if that helps.  If not I thought I might roll back to 5.2.28-1 as core/db has defiantly been updated in my last update.

[*1] - http://www.archlinux.org/packages/commu … /postgrey/
[*2] - http://aur.archlinux.org/packages.php?ID=573
[*3] - http://projects.archlinux.org/svntogit/ … ackages/db

Last edited by hokapoka (2011-10-25 15:15:22)

Offline

#2 2011-10-25 15:39:26

stephane
Forum Fellow
Registered: 2009-10-18
Posts: 25

Re: BerkeleyDB & Incompatible versions of libdb & db.h

Did you tried to rebuild postgrey ?

Offline

#3 2011-10-25 16:01:54

hokapoka
Member
Registered: 2011-04-05
Posts: 5

Re: BerkeleyDB & Incompatible versions of libdb & db.h

stephane : I did try to rebuild postgrey too, albeit just a perl script. 

Got if fixed, by rolling back the following packages :

core/db  => 5.2.28-1
community/perl-berkeleydb  => 0.43-6
community/postgrey => 1.34-2

I used the packages that were in /var/cache/pacman/pkg Of course I had to remove all postgrey, amavid-new & perl-berkeleydb before I downgraded core/db to 5.2.28-1.  Once I had done that reinstalled all of the other packages both amavisd-new and postfix started without the BerkeleyDB & Incompatible versions of libdb & db.h error.

I guess I need to file a bug now.

Offline

#4 2011-10-25 16:19:41

stephane
Forum Fellow
Registered: 2009-10-18
Posts: 25

Re: BerkeleyDB & Incompatible versions of libdb & db.h

As a wild guess, we got a similar issue with the python db bindings in the past. You said that you updated perl-berkeleydb, but did you reduilded it with the latest db ? If not, I would try this before filing a bug report.

Offline

#5 2011-10-26 09:46:35

hokapoka
Member
Registered: 2011-04-05
Posts: 5

Re: BerkeleyDB & Incompatible versions of libdb & db.h

Yep, I rebuilt everything from the ABS tree.

All of them using the latest versions.

Last edited by hokapoka (2011-10-26 09:47:03)

Offline

Board footer

Powered by FluxBB