Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26616 - [perl-berkeleydb] => 0.49-1 are incompatible (libdb & db.h)

Attached to Project: Community Packages
Opened by Andrew Scott (hokapoka) - Tuesday, 25 October 2011, 16:29 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 07 November 2011, 10:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Update to core/db 5.2.36-1 & community/perl-berkeleydb => 0.49-1 causes an error when starting community/postgrey.

Additional info:

* package version(s)
core/db => 5.2.36-1 [*1]
community/perl-berkeleydb => 0.49-1 [*2]
community/postgrey => 1.34-2 [*3]

Also effects:
aur/amavisd-new => 2.6.4-4 [*4]

Appears it will effect _any_ perl package that issues the following line of code :

use BerkeleyDB; // Line 16 from /usr/sbin/postgrey

* Error message
# /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]

Steps to reproduce:
(1) Update to system so respective packages are at these versions

core/db => 5.2.36-1
community/perl-berkeleydb => 0.49-1
community/postgrey => 1.34-2

(2) Try to start the postgrey daemon (/etc/rc.d/postfix start)

(3) Fails to start and display error message listed above.

Also effect amavisd-new [*4] the package contains a flag :

$enable_db = 1;

Setting this to 0 disables the perl from accessing the BerkeleyDB
and the daemon starts

== Workarround / Fix ==

Downgraded the following packages to these version fixes the problem :

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


[*1] - http://www.archlinux.org/packages/core/i686/db/
[*2] - http://www.archlinux.org/packages/community/i686/perl-berkeleydb/
[*3] - http://www.archlinux.org/packages/community/any/postgrey/
[*4] - http://aur.archlinux.org/packages.php?ID=573

This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 07 November 2011, 10:42 GMT
Reason for closing:  No response
Comment by Jelle van der Waa (jelly) - Wednesday, 26 October 2011, 08:44 GMT
Works perfect here. There must be something wrong wiht your system. What mirror do you use?
Also do you have some cpan stuff or stuff in /usr/local?
Comment by Sergej Pupykin (sergej) - Wednesday, 26 October 2011, 16:15 GMT
Works for me too:

# pacman -Q db
db 5.2.36-1

# pacman -Q perl-berkeleydb
perl-berkeleydb 0.49-1

# ps fax| grep postgrey
1337 ? Ss 1:14 /usr/sbin/postgrey --daemonize --inet=127.0.0.1:10030 --group=postgrey --user=postgrey -v --lookup-by-subnet --pidfile=/var/run/postgrey.pid
Comment by Sergej Pupykin (sergej) - Wednesday, 26 October 2011, 16:16 GMT
# pacman -Q postgrey
postgrey 1.34-2
Comment by Jelle van der Waa (jelly) - Saturday, 29 October 2011, 13:03 GMT
any update?

Loading...