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

Re: Q: problem compiling dynamic SQL of OpenLDAP 2.0.7



Hmm ... I just changed the "backbacksql_initialize" to "sql_back_initialize" and was able
to compile it further.
I looked at the back-shell/init.c file first and then decided to change it this way.
But I am not absolutely sure about this since I have no idea of the internals of OpenLDAP.

Here is how I built up my configure string (in a shell script which is run after mirroring)
now:

# i get an error compiling shell as a dynamic module
#BACKEND_SHELL="--enable-shell --with-shell-module=dynamic"
BACKEND_SHELL="--enable-shell --with-shell-module=static"
BACKEND_LDAP="--enable-ldap --with-ldap-module=dynamic"
BACKEND_SQL="--enable-sql --with-sql-module=dynamic"
BACKEND_PASSWD="--enable-passwd --with-passwd-module=dynamic"
BACKEND_LDBM="--enable-ldbm --with-ldbm-module=dynamic"
BACKEND_DNSSRV="--enable-dnssrv --with-dnssrv-module=dynamic"
# i have unixODBC installed with --prefix=/opt/unixODBC-1.8.13
OPENLDAP_CONFIGURE_CMD="env MKDEP_FLAGS=\"-M -I/opt/unixODBC-1.8.13/include\"
CFLAGS=-I/opt/unixODBC-1.8.13/include LDFLAGS=-L/opt/unixODBC-1.8.13/lib ./configure"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-static --enable-shared"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-debug --enable-syslog
--enable-proctitle --enable-caching"
# i have no kerberos stuff
#OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-referrals --enable-kbind
--enable-ipv6 --enable-local"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-referrals --enable-ipv6
--enable-local"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --with-tls --with-threads --with-readline"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-slapd"
# i have no kerberos and no cyrus sasl stuff
#OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-cleartext --enable-crypt
--enable-kpasswd --enable-spasswd"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-cleartext --enable-crypt"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-modules --enable-multimaster
--enable-phonetic --enable-rlookups"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD --enable-aci --enable-wrappers
--enable-dynamic --enable-slurpd"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_SHELL"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_LDAP"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_SQL"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_PASSWD"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_LDBM"
OPENLDAP_CONFIGURE_CMD="$OPENLDAP_CONFIGURE_CMD $BACKEND_DNSSRV"
export OPENLDAP_CONFIGURE_CMD


Any idea why I cannot create the dynamic shell module?

Dmitry Kovalev wrote:

> Hello Heiko!
>
> Heiko Nardmann wrote:
>
> > I tried to compile OpenLDAP 2.0.7 with SQL as a dynamic module.
> > But I get the following error message:
> >
> > init.c: In function `backsql_LTX_init_module':
> > init.c:29: `backbacksql_initialize' undeclared (first use in this
> > function)
> >
> > There is only a function sql_back_initialize() inside init.c. Maybe this
> > one has to be entered here?
>
> Never tried to build back-sql dynamic... It is unlikely that I will have time to try
> it...
> It would be very nice of you if you look into this and submit a patch or some
> instructions ( about what to patch ;) - it should be not very much, since it deals with
> API conformance only...
>
> WBW, Dmitry

--
Heiko Nardmann (Dipl.-Ing.), h.nardmann@secunet.de, Software Development
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax  : +49 271 48950-50