Compiling kdebase 3.4.2 with LDAP support

Lars Stolze lstolze at gmail.com
Mon Apr 10 16:33:50 BST 2006


Hello,

I'm having serious problems compiling KDE with LDAP support. I'm
running Slackware 10.2 with the default 2.4.31 kernel and a default
KDE 3.4.2 installation. I always use checkinstall 1.6.0 to install
self-compiled stuff.

At first I installed OpenLDAP using the openldap-2.3.20-i486-1kjz.tgz
package from linuxpackages.net and tried to compile kdelibs and kdepim
with LDAP support as suggested in a lot of posts across the web.
Because there were no configure flags concerning LDAP in kdelibs and
kdepim but in kdebase, I went on and tried to compile kdebase instead.
Unfortunately compiling kdebase results in an error message. I thought
that might be related to the OpenLDAP package from linuxpackages.net
and therefore I compiled OpenLDAP 2.3.20 myself using:

./configure --prefix=/usr/local/openldap --localstatedir=/var/lib
--sysconfdir=/etc --with-cyrus-sasl --with-tls --with-readline
--with-threads --enable-debug --enable-syslog --enable-dynamic
--enable-local --enable-proctitle --disable-ipv6 --disable-static
--enable-shared --disable-slapd --disable-slurpd
make depend
make
checkinstall

That works fine so far. After that I tried to compile kdebase using:

./configure --prefix=/opt/kde --with-shadow --with-xinerama
--with-ldap=/usr/local/openldap --program-prefix=""
--program-suffix=""

./configure works, but running make finally resuls in:

Making all in ldap
make[3]: Entering directory
`/home/lstolze/Downloads/kdebase-3.4.2/kioslave/ldap'
if /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I../.. -I/opt/kde/include
-I/usr/lib/qt/include -I/usr/X11R6/include 
-I/usr/local/openldap/include  -DQT_THREAD_SUPPORT  -D_REENTRANT
-D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2
-Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT
kio_ldap.lo -MD -MP -MF ".deps/kio_ldap.Tpo" -c -o kio_ldap.lo
kio_ldap.cpp; \
then mv -f ".deps/kio_ldap.Tpo" ".deps/kio_ldap.Plo"; else rm -f
".deps/kio_ldap.Tpo"; exit 1; fi
In file included from kio_ldap.h:11,
                 from kio_ldap.cpp:33:
/usr/local/openldap/include/ldap.h:951:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:979:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1054:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1142:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1177:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1208:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1242:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1281:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1329:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1631:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1712:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1759:5: warning: "LDAP_DEPRECATED"
is not defined
/usr/local/openldap/include/ldap.h:1813:5: warning: "LDAP_DEPRECATED"
is not defined
kio_ldap.cpp: In member function `virtual void LDAPProtocol::openConnection()':
kio_ldap.cpp:707: error: `ldap_simple_bind_s' undeclared (first use this
   function)
kio_ldap.cpp:707: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::closeConnection()
   ':
kio_ldap.cpp:732: error: `ldap_unbind' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::stat(const KURL&)
   ':
kio_ldap.cpp:849: error: `ldap_abandon' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::del(const KURL&,
   bool)':
kio_ldap.cpp:880: error: `ldap_delete_s' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::put(const KURL&,
   int, bool, bool)':
kio_ldap.cpp:984: error: `ldap_delete_s' undeclared (first use this function)
kio_ldap.cpp: In member function `virtual void LDAPProtocol::listDir(const
   KURL&)':
kio_ldap.cpp:1137: error: `ldap_abandon' undeclared (first use this function)
make[3]: *** [kio_ldap.lo] Error 1
make[3]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2/kioslave/ldap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2/kioslave'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/lstolze/Downloads/kdebase-3.4.2'
make: *** [all] Error 2

Because I supposed there may be a problem with the latest OpenLDAP
release I also tried the whole process with a self-compiled OpenLDAP
2.3.6 which was released last summer before the release of KDE 3.4.2.
Unfortunately the result was the same. After that I compiled OpenLDAP
version 2.2.27. Compiling kdebase worked fine then, but the
installation failed during make install, respectively checkinstall.
There was a problem finding and copying a file called kio_ldap.so.
There were only files called kio_ldap.lo and kio_ldap.la present.
Sorry, but I haven't copied the error message and don't remember the
exact wording.

It would be great if someone could help me with that. I need LDAP
support for the Groupware at work, but have no idea what to try next..
Thanks a lot.

Lars
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list