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

Error compiling OpenLDAP 1.1.2 with DB 2.3.16 (ITS#36)



Platform FreeBSD 3.0-RELEASE
Installed Berkeley DB via 
pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/packages-stable/All/db-2.3.16.tgz

env CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \
./configure --prefix=/usr/local/site/ldap >foo 2>&1

Relevant section from file foo

checking for DB2 library... checking for db_open in -ldb... no
no
checking for db.h... yes
checking if db.h is DB2... yes
checking for Berkeley DB2... no
checking for Berkeley DB library... checking for dbopen... yes
yes
checking for db_185.h... yes
checking for Berkeley DB... yes

make depend
make

 
  Entering subdirectory libldbm
gcc -g -O2 -I../../include -I../../include   -I/usr/local/include -DHAVE_CONFIG_H  -c ldbm.c
ldbm.c: In function `ldbm_open':
ldbm.c:61: `BTREEINFO' undeclared (first use this function)
ldbm.c:61: (Each undeclared identifier is reported only once
ldbm.c:61: for each function it appears in.)
ldbm.c:61: parse error before `binfo'
ldbm.c:62: `HASHINFO' undeclared (first use this function)
ldbm.c:65: `hinfo' undeclared (first use this function)
ldbm.c:69: `binfo' undeclared (first use this function)
ldbm.c:76: warning: assignment makes pointer from integer without a cast
ldbm.c: In function `ldbm_close':
ldbm.c:89: too few arguments to function
ldbm.c: In function `ldbm_fetch':
ldbm.c:136: warning: passing arg 2 from incompatible pointer type
ldbm.c:136: too few arguments to function
ldbm.c: In function `ldbm_store':
ldbm.c:156: warning: passing arg 2 from incompatible pointer type
ldbm.c:156: warning: passing arg 4 makes pointer from integer without a cast
ldbm.c:156: too few arguments to function
ldbm.c: In function `ldbm_delete':
ldbm.c:173: warning: passing arg 2 from incompatible pointer type
ldbm.c:173: too few arguments to function
ldbm.c: In function `ldbm_firstkey':
ldbm.c:216: structure has no member named `seq'
ldbm.c:216: `R_FIRST' undeclared (first use this function)
ldbm.c: In function `ldbm_nextkey':
ldbm.c:251: structure has no member named `seq'
ldbm.c:251: `R_NEXT' undeclared (first use this function)
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.