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

Re: Can't build bdb as module



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthijs wrote:
| Hi,
|
| Is it possible to build bdb as a module instead of static ? I'm using
| now this configure rule but it doesn't seem to work. After the make
| install there is no back-bdb.{la,a,so} file. Every other module is build
| as module and i can find those files back in
| /opt/ldap/libexec/openldap/)
|
| ./configure --prefix=/opt/ldap --enable-debug --enable-dynamic
| --enable-syslog --enable-proctitle --enable-ipv6 --enable-local
| --with-cyrus-sasl --with-threads --with-tls --enable-slapd
| --enable-cleartext --enable-crypt --enable-spasswd --enable-modules
| --enable-rewrite --enable-rlookups --enable-slp --enable-wrappers
|
| --enable-bdb=mod
| --enable-dnssrv=mod
| --enable-hdb=mod
| --enable-ldap=mod
| --enable-ldbm=mod
| --with-ldbm-api=berkeley
| --enable-meta=mod
| --enable-monitor=mod
| --enable-null=mod
| --enable-passwd=mod
| --enable-perl=mod
| --enable-shell=mod
| --enable-sql=mod
|
| --enable-dyngroup=mod --enable-proxycache=mod --enable-slurpd
| --enable-shared
|
| Matthijs Mohlmann

It seems that it changes here:
configure.in:

if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
~        AC_MSG_ERROR(BDB: BerkeleyDB not available)
elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
~        OL_BDB_COMPAT

~        if test $ol_cv_bdb_compat = yes ; then
~                ol_enable_bdb=yes # <- here it's set to yes
~        elif test $ol_enable_bdb = yes ; then
~                AC_MSG_ERROR(BDB: BerkeleyDB version incompatible)
~        else
~                ol_enable_bdb=no
~        fi
fi

Then ol_enable_bdb is set to yes and i think that's why it's build static.

Matthijs Mohlmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB95X22n1ROIkXqbARAr6AAJwLBT9z1TdKV3KzPWXrlo7c5SHK9gCgrVgX
8IKAA3ofvC5D/MiUNg4G6LE=
=3+vo
-----END PGP SIGNATURE-----