FreeBSD Port: cfengine-2.2.1

Scot Hetzel swhetzel at
Thu Jul 5 16:33:33 UTC 2007

On 7/5/07, Atmasamarpan <atmasamarpan at> wrote:
> Hi,
> Everything is fine after I removed db4-4.0.14_1,1. The port requires 
> db44, but during configure it finds db4 and compilation fails. See bellow.
I had a look at the ports Makefile, and found a couple of problems:.

USE_BDB?= 44

It should just be "=" instead of "?=" as the user overrides the default when using WITH_BDB_VER.  Since the port can only use BDB 4.4+, it should be specified as 44+.

Another problem, is that setting BERKELEY_DB_{CFLAGS, LDFLAGS, LIB} in the CONFIGURE_ENV has no effect, as the cfengine configure script is overriding these settings when it tries to detect the version of Berkeley DB that is installed.

checking for BerkeleyDB location in default... Found header in /usr/local/include/db4
checking for library containing db_create... -ldb4
checking Berkeley DB Version... 4.0.14 OK
checking Berkeley DB API... 4.0.14 checking for db_create in -ldb... no

Note: I added a couple of echo statements before the version check.

I have submitted a PR 114333 with a fix for these problems.

No electrons were mamed while sending this message. Only slightly bruised.

More information about the freebsd-ports mailing list