[Date Prev][Date Next] [Chronological] [Thread] [Top]

[no subject]

I'm not able to build openldap 1.2 with the BerkelyDB backend
on an sgi box.  I tried this cmd:

env CFLAGS=-I/scratch/db-2.7.5/dist/sgi/BerkeleyDB/include
LDFLAGS=-L/scratch/db-2.7.5/dist/sgi/BerkeleyDB/lib ./configure
--prefix=/scratch/openLdap/installed/sgi --with-ldbm-api=db2

I got this error:

checking for DB2 library... checking for db_open in -ldb... yes
checking for db.h... no
checking for Berkeley DB2... no
configure: warning: could not find suitable LDBM backend
configure: error: select appropriate LDBM options or disable

looking at the config.log file:

configure:5721: checking for DB2 library
configure:5727: checking for db_open in -ldb
configure:5746: cc -o conftest
-L/scratch/db-2.7.5/dist/sgi/BerkeleyDB/lib conftest.c -ldb
configure:5777: checking for db.h
configure:5787: cc -E  conftest.c >/dev/null 2>conftest.out
"configure", line 5783: error(1005): could not open source file "db.h"
 #include <db.h>

1 catastrophic error detected in the compilation of "conftest.c".
Compilation terminated.
configure: failed program was:
#line 5782 "configure"
#include "confdefs.h"
#include <db.h>
configure:5853: checking for Berkeley DB2

seems like this part of configure didn't take the CFLAGS that
i wanted to use (to include my 'include' and my 'lib' dirs)
Any idea how to resolve this?

_______________________________________________________________ Get Free Email and Do More On The Web. Visit http://www.msn.com