Hi-I was trying to build cfengine from the FreeBSD port and ran into a couple of problems.
First, my system had a /usr/local/lib/libpub.a library installed already (which comes with the devel/publib port). The linker was finding this library instead of the libpub.a that gets built in cfengine's pub directory, and of course failing to link since it was the wrong library. I had the same problem building cfengine on Debian after I'd installed the publib-dev Debian package.
Second, versions of Berkeley DB higher than 4.1 installed via FreeBSD ports install libraries as $prefix/lib/libdb-version.so without a libdb.so symlink. It seems that cfengine's configure script doesn't set the linker arguments in all the right places to -ldb-version and instead uses -ldb in this case, which didn't work on my system.
I filed a bug report for the FreeBSD port with a patch that fixes this here http://www.freebsd.org/cgi/query-pr.cgi?pr=106790. I also made patches (attached) directly against configure.ac and src/ Makefile.am in cfengine 2.1.21 in case anyone is interested. The one for src/Makefile.am also changes $(BERKELEY_DB_LDFLAGSD) to $ (BERKELEY_DB_LDFLAGS), because it looked like a typo to me.
Please cc me on any replies, as I am not on the list. Thanks! Nick
patch-configure.ac
Description: Binary data
patch-src_Makefile.am
Description: Binary data
_______________________________________________ Bug-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/bug-cfengine
