Opened 7 years ago
Last modified 6 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: | new → assigned |
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:3 follow-up: 4 Changed 7 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 follow-up: 5 Changed 7 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 Changed 7 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+db53Port 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 7 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?
In the future, please use WikiFormatting and Cc the port maintainers (
port info --maintainers amavisd-new
).