Opened 7 years ago

Last modified 5 years ago

#55243 assigned defect

Amavisd failed to start due to BerkeleyDB, libdb, and db.h incompatibility

Reported by: hbsimon (Horst Simon) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: ryandesign@…
Port: amavisd-new

Description (last modified by mf2k (Frank Schima))

Latest amavisd-new fails to start with following error:

Problem in Amavis::DB or Amavis::DB::SNMP code: 
BerkeleyDB needs compatible versions of libdb & db.h
	you have db.h version 5.3.21 and libdb version 5.3.28
Compilation failed in require at (eval 79) line 20.
BEGIN failed--compilation aborted at (eval 79) line 20.

Tried following suggestion by Ryan Schmidt:

sudo port activate db53 @5.3.28_0+sql
sudo port -ns upgrade --force amavisd-new

but the error is still the same.

Change History (7)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to pixilla
Status: newassigned

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers amavisd-new).

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 6 years ago by c5kolb

I ran into the same thing. I did the following and got it working:

sudo port -ns upgrade --force db53 @5.3.28_0+sql p5.24-berkeleydb @0.550.0_0+db53

comment:4 in reply to:  3 ; Changed 6 years ago by pixilla (Bradley Giesbrecht)

Replying to c5kolb:

I ran into the same thing. I did the following and got it working:

sudo port -ns upgrade --force db53 @5.3.28_0+sql p5.24-berkeleydb @0.550.0_0+db53

Port upgrade is going to ignore the version and the variants are the defaults. Did you possibly have non default variants installed? The amavisd-new port depends on p5.24-berkeleydb and db53 so unless you specified non default variants normal use of the port command should have had db53 and p5.24-berkeleydb already installed at the most recent version.

$ port rdeps amavisd-new | grep -E "db53|berkeleydb"
  p5.24-berkeleydb
    db53

comment:5 in reply to:  4 Changed 6 years ago by pixilla (Bradley Giesbrecht)

Replying to pixilla:

Replying to c5kolb:

I ran into the same thing. I did the following and got it working:

sudo port -ns upgrade --force db53 @5.3.28_0+sql p5.24-berkeleydb @0.550.0_0+db53

Port upgrade is going to ignore the version and the variants are the defaults. Did you possibly have non default variants installed? The amavisd-new port depends on p5.24-berkeleydb and db53 so unless you specified non default variants normal use of the port command should have had db53 and p5.24-berkeleydb already installed at the most recent version.

$ port rdeps amavisd-new | grep -E "db53|berkeleydb"
  p5.24-berkeleydb
    db53

Sorry, I didn't notice the compatibility issue in the ticket description. Am I correct that port upgrade would ignore the version string?

comment:6 Changed 6 years ago by pixilla (Bradley Giesbrecht)

This is weird, where is "db.h version 5.3.21" coming from? Do you have the build logs?

comment:7 Changed 5 years ago by mf2k (Frank Schima)

Owner: pixilla deleted

See #57827

Note: See TracTickets for help on using tickets.