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

Re: (ITS#4671) unable to add objectIdentifier "olmBDBAttributes=olmDatabaseAttributes:1"



Michael Ströder wrote:
> Howard Chu wrote:
>> If you have back-monitor enabled, you need to regenerate backends.c;
>> probably need to rerun configure or config.status. If you don't have
>> back-monitor enabled, then you need to enable it. (Or we need to #ifdef
>> all of this stuff.)
> 
> See my primitive build script below which I *always* use to make test
> builds of HEAD. Note the 'make veryclean' followed by ./configure'.

OK, you're using dynamic backends, and test000 loads back-monitor after 
it loads back-bdb. I guess we need to exchange those in the test 
slapd.conf files, or as Ando suggests, just make back-monitor always 
statically compiled.

My preference would still be to have a set of function pointers in slapd 
that back-monitor can initialize or not. Then other backends can be 
written to always check for back-monitor's presence, and adjust 
accordingly at runtime, rather than depending on hard-coded behaviors.

Hm, your script still sets ldbm-api, even though we deleted back-ldbm 
from HEAD/2.4.

You set --enable-overlays=mod, and yet you explicitly enable various 
overlays as static (--enable-foo=yes) which seems counterproductive.

> Ciao, Michael.
> 
> -------------------------------- snip --------------------------------
> . /home/michael/src/build-env-openldap
> 
> export CFLAGS="-g -O2"
> export CPPFLAGS="-I/usr/include/heimdal -I/opt/openldap-snacc/include
> -I/usr/include/sasl -I${BDB
> }/include -I${SASL}/include -I${HEIMDAL}/include"
> export LDFLAGS="-L${BDB}/lib -L${SASL}/lib -L${HEIMDAL}/lib -R${BDB}/lib
> -R${SASL}/lib -R${HEIMDA
> L}/lib"
> export LD_LIBRARY_PATH="${BDB}/lib:${SASL}/lib:${HEIMDAL}/lib"
> 
> # Disable test036-meta-concurrency since it always hangs
> export TEST_META=no
> 
> PWD=`pwd`
> DIRNAME=`dirname ${PWD}`
> PREFIX=/opt/`basename ${DIRNAME}`
> 
> echo "PREFIX="${PREFIX}
> 
> make veryclean
> ./configure \
>   --enable-accesslog=yes \
>   --enable-aci=yes \
>   --enable-backends=mod \
>   --enable-cleartext \
>   --enable-crypt=yes \
>   --enable-debug=yes \
>   --enable-denyop=yes \
>   --enable-dynamic=yes \
>   --enable-dyngroup=yes \
>   --enable-kpasswd=yes \
>   --enable-ldbm-api=berkeley \
>   --enable-lmpasswd=yes \
>   --enable-modules=yes \
>   --enable-overlays=mod \
>   --enable-ppolicy=yes \
>   --enable-proxycache=yes \
>   --enable-rewrite=yes \
>   --enable-rlookups=yes \
>   --enable-rwm=yes \
>   --enable-slapi=yes \
>   --enable-slp=yes \
>   --enable-sql=no \
>   --enable-spasswd=yes \
>   --enable-wrappers=no \
>   --prefix=${PREFIX} \
>   --with-cyrus-sasl=yes \
>   --with-kerberos=yes \
>   --with-readline=yes \
>   --with-threads=yes \
>   --with-tls=yes
> 
> make && make test
> 
> 


-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc
   OpenLDAP Core Team            http://www.openldap.org/project/