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

Re: openldap on Linux/alpha (ITS#295)



On Sat, 18 Sep 1999, Ben Collins wrote:

> > > >         Okay I verified that RH6.0 uses the libdb that comes with glibc.
> > > > The version happens to be 2.4.14.  I didn't see anywhere in the FAQ on how
> > > > to get OpenLDAP to compile against a different version of DB on a glibc
> > > > system.  Any tricks?  Some sort of --with-db=/usr/local/BerkleyDB??
> > > > 
> > > >                                 ...Jeff
> > > Use CPPFLAGS/LDFLAGS.  See INSTALL and http://www.openldap.org/faq/index.cgi?file=43
> > > 
> > 
> > 	I tried:
> > 
> > CPPFLAGS=-I/usr/local/BerkeleyDB/include \
> > LDFLAGS=-L/usr/local/BerkeleyDB/lib \
> > 
> > Same error:
> > slapd[22000]: ldbm_db_errcall(): ==> illegal flag specified to db_appinit
> > slapd[22000]: ldbm_initialize(): FATAL error in db_appinit() : Invalid
> > argument  
> > 
> > 	The LDFLAGS should take priority, correct?
> 
> Did you do this for the configure? Make sure you start with a clean source tree and
> run this:
> 
> CPPFLAGS=-I/usr/local/BerkeleyDB/include LDFLAGS=-L/usr/local/BerkeleyDB/lib ./configure
> 
> Just as specified above.

	Yup.  I added it to the RPM .spec file.  I saw the gcc was using
them during build time.

			...Jeff