Setting CPPFLAGS and LDFLAGS

jhall at vandaliamo.net jhall at vandaliamo.net
Wed Jan 2 08:52:06 PST 2008


I'm hoping I have missed something simple, but I am experiencing a problem
compiling OpenLDAP.

My BerkeleyDB files are in a non-standard location and I trying to set
CPPFLAGS and LDFLAGS to point to the correct location.

I am logged in as a normal user, and I am using the following commands to
set CPPFLAGS and LDFLAGS.

$ export CPPFLAGS="-I/usr/local/BerkelyDB/include"
$ export LDFLAGS="-L/usr/local/BerkelyDB/lib"

However, OpenLDAP still fails to compile with the following message.

Checking Berkeley DB version for BDB/HDB backends... no
configure: error: BDB/HDB: BerkeleyDB version incompatible

Am I correctly setting CPPFLAGS and LDFLAGS so they can be seen by
OpenLDAP's configuration script?

Thanks,



Jay



More information about the freebsd-questions mailing list