On 9/19/06, Aaron Smith <[EMAIL PROTECTED]> wrote:
So I'm trying to install openldap 2.3.37 on a Solaris 10 machine. It complained about not being able to find Berkeley DB so I installed version 4.4.20 which installed into /usr/local/BerkeleyDB.4.4/. I set CPPFLAGS to point to include in that directory and LDFLAGS to point to lib in that same directory. However, the configure still fails saying there's a version mismatch: checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for Berkeley DB major version... 4 checking for Berkeley DB minor version... 4 checking for Berkeley DB link (-ldb44)... no checking for Berkeley DB link (-ldb-44)... no checking for Berkeley DB link (-ldb-4.4)... yes checking for Berkeley DB version match... no configure: error: Berkeley DB version mismatch I'm not sure what I'm doing wrong here, but it sure seems like I'm overlooking something simpleā¦
On solaris 10 using gcc, I did the following (64bit bdb4.2.52 and openldap 2.3.23): Obviously, change your paths to various places. You may need an LD_LIBRARY_PATH during the compile, but I would try without it first. export LDFLAGS="-L/usr/lib/lwp/64 -L/lib/64 -L/usr/lib/64 -L/usr/sfw/lib/sparcv9 -Wl,-R/usr/lib/lwp/64 -Wl,-R/lib/64 -Wl,-R/usr/lib/64 -Wl,-R/usr/sfw/lib/sparcv9 -L/usr/local/openldap64-ol2.3.23-bdb4.2.52/lib -Wl,-R/usr/local/openldap64-ol2.3.23-bdb4.2.52/lib -m64" export CPPFLAGS="-I/usr/local/openldap64-ol2.3.23-bdb4.2.52/include" export CFLAGS="-m64 -O2"
