Cannot link against libdb on Entware

Matthias Andree matthias.andree at gmx.de
Fri Nov 19 00:59:49 CET 2021


Am 17.11.21 um 18:13 schrieb dpa:
> I can't build bogofilter-1.2.5 on my Entware enviroment.  I have already installed libdb47 - 4.7.25.4.NC-7 with header files, but configure complains "Cannot link against libdb".  My config.log appended.   Can you advice please?

Whatever Entware is, and whyever it ships a decrepit Berkeley DB version.

Easiest recourse is to use another data base library (for instance
SQLite3) than trying to coerce the build to accomodate the gazillion of
db installation layouts.

If you still need to use libdb, you may have to tweak CPPFLAGS, LIBS,
LDFLAGS to point your build directories and, for instance, include the
relevant subdirectories.

You can also look how FreeBSD configures the package,

https://cgit.freebsd.org/ports/tree/Mk/Uses/bdb.mk?id=HEAD
and
https://cgit.freebsd.org/ports/tree/mail/bogofilter/Makefile?id=HEAD


More information about the bogofilter-dev mailing list