You are not logged in.

#1 2008-07-14 11:00:48

Tinuva
Member
From: South Africa/Cape Town
Registered: 2008-05-29
Posts: 37
Website

[SOLVED] amavisd-new startup problem since libdb update

I updated my system this morning which included a new version of libdb. I also have amavisd-new installed from AUR using the yaourt package manager.

This is the error I get when I try to restart amavisd-new:

Problem in Amavis::DB or Amavis::DB::SNMP code: Can't load '/usr/lib/perl5/vendor_perl/auto/BerkeleyDB/BerkeleyDB.so' for module BerkeleyDB: libdb-4.6.so: cannot open shared object file: No such file or directory at /usr/lib/perl5/core_perl/XSLoader.pm line 64.
at (eval 78) line 19
Compilation failed in require at (eval 78) line 19.
BEGIN failed--compilation aborted at (eval 78) line 19.
Undefined subroutine &BerkeleyDB::Term::close_everything called at /usr/lib/perl5/vendor_perl/BerkeleyDB.pm line 1733.
END failed--call queue aborted at /usr/sbin/amavisd line 12630.

I have tried to re-install amavisd-new from the AUR which made no difference. Looking around it seems all the files it complain about does exist thus I am not entirely sure what the problem is?

It looks like perl is looking for db.h and found one for db 4.6 even tho the db.h in /usr/include has version 4.7.25 as its version nr.

Last edited by Tinuva (2008-07-18 11:13:47)

Offline

#2 2008-07-14 21:40:05

Tido
Member
Registered: 2007-06-21
Posts: 65

Re: [SOLVED] amavisd-new startup problem since libdb update

Temporary fix:

# ln -s /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so

Offline

#3 2008-07-14 21:52:53

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [SOLVED] amavisd-new startup problem since libdb update

Tido wrote:

Temporary fix:

# ln -s /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so

This is a very bad solution that will cause you more problems down the line.

Did you get the updated perl package when you did the update?  Perhaps you need to wait for your mirror to sync.

Offline

#4 2008-07-15 08:41:38

kotyz
Member
Registered: 2007-06-24
Posts: 28

Re: [SOLVED] amavisd-new startup problem since libdb update

Same problem with different program (poedit).

[kotyz@amargit ~]$ poedit
poedit: error while loading shared libraries: libdb-4.6.so: cannot open shared object file: No such file or directory

Offline

#5 2008-07-15 08:46:52

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: [SOLVED] amavisd-new startup problem since libdb update

File a bug report to get poedit rebuilt to fix this

Offline

#6 2008-07-15 11:06:36

JeffG
Member
From: Groningen, NL
Registered: 2008-07-15
Posts: 4
Website

Re: [SOLVED] amavisd-new startup problem since libdb update

Recompile the Perl-Berkeley module.

cd /var/abs/community/lib/perl-berkeleydb
makepkg
sudo pacman -U perl-berkeleydb-0.34-1-x86_64.pkg.tar.gz

Offline

#7 2008-07-15 18:49:11

Tido
Member
Registered: 2007-06-21
Posts: 65

Re: [SOLVED] amavisd-new startup problem since libdb update

JeffG wrote:

Recompile the Perl-Berkeley module.

cd /var/abs/community/lib/perl-berkeleydb
makepkg
sudo pacman -U perl-berkeleydb-0.34-1-x86_64.pkg.tar.gz

That worked.

Offline

#8 2008-07-16 08:45:24

Tinuva
Member
From: South Africa/Cape Town
Registered: 2008-05-29
Posts: 37
Website

Re: [SOLVED] amavisd-new startup problem since libdb update

Interesting, I actually did that, for some reason it didnt work. As for linking /usr/lib/libdb-4.7.so /usr/lib/libdb-4.6.so, it does cause more problems than I needed so I didn;t follow that.

What I did do in the end was to disable berkeleydb in amavisd-new's config and make only use of the memory cache. Works better that way anyways since these servers have a huge amount of hdd io already. The bayes db for spamd is also running on mysql now instead.

Thank you for all the replies. I think about a day after I got the berkeleydb update, I got the new update for perl-berkeleydb to fix the problem I had.

Offline

Board footer

Powered by FluxBB