Subject: | DB_File requires exact versions of libdb, and gives confusing error message |
This issue was originally reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=144672
There are two issues:
1) At runtime, DB_File checks to make sure the libdb installed on the
system is the same version that DB_File was built against. This is
could, but DB_File requires the exact same major version, minor version,
and patch level...this is probably too strict a requirement. I'm not
familiar enough with db4 to know if compatibility is kept between patch
levels, but one would usually expect it to be.
This causes DB_File to fail to work if db4 is updated in a distribution,
but perl isn't - this has happened a couple of times in Fedora.
2) Even if the version check is kept intact, the error message is
misleading:
"DB_File needs compatible versions of libdb & db.h
you have db.h version 4.3.21 and libdb version 4.3.27"
But the code appears to be checking the version of the library itself,
not the version found in db.h (which might not even be installed on the
system.)