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

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



Yusuf,

have you made a make veryclean and ./configure anew. When there remain old
config.cache files, the build will not perform correctly.

Another point I could mention is, that I always use the LIBS environment
variable instead of LDFLAGS. Switching from one DB version to the other is
no problem, then.

Please  make really sure that you start with the new DB from scratch.


Regards,
Kurt


On Fri, 8 Jan 1999 yusufg@huge.net wrote:

> Date: Fri, 8 Jan 1999 06:13:18 GMT
> From: yusufg@huge.net
> To: openldap-its@OpenLDAP.org
> Subject: 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.
> 
> 


----------==========#########>>>>>ZDV<<<<<#########==========----------

X.500:                                              Tel.:
   Kurt Spanier, Zentrum fuer Datenverarbeitung,      +49 7071 29-70334
   Universitaet Tuebingen, DE
SMTP-Mail:                                          FAX.:
   kurt.spanier@zdv.uni-tuebingen.de                   +49 7071 29-5912
Snail-Mail:
   Dr. Kurt Spanier, Zentrum fuer Datenverarbeitung,
   Universitaet Tuebingen, Waechterstrasse 76, D-72074 Tuebingen
PGP-Public-Key:
   finger "Kurt Spanier"@x500.uni-tuebingen.de

----------==========##########>>>>>@<<<<<##########==========----------