Re: Cannot link against libdb on Entware

Matthias Andree <[email protected]> Fri, 19 Nov 2021 00:59:49 +0100
Newsgroups gmane.mail.bogofilter.devel
Message-ID <[email protected]>
Am 17.11.21 um 18:13 schrieb dpa:
> I can&#39;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 &#34;Cannot link against libdb&#34;.  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