LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2006, 08:42 AM   #1
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Rep: Reputation: 15
Slackware 10.2 with KDE 3.4.2 and LDAP


Hello,

I'm having serious problems compiling KDE with LDAP support. I'm running Slackware 10.2 with the 2.4.32 kernel and a default KDE 3.4.2 installation. I installed OpenLDAP using the openldap-2.3.20-i486-1kjz.tgz package from linuxpackages.net. After that I downloaded the KDE 3.4.2 sources for kdelibs and kdepim from kde.org. I compiled both packages using
Code:
./configure
make
checkinstall
checkinstall didn't install the packages but just created Slackware packages. I switched the runlevel to 3 and rebooted. After logging in again I removed the original kdelibs and kdepim packages and installed the self-compiled ones. Typing
Code:
startx
brought KDE up, but I am still missing LDAP support. I have no idea what the problem is.
Code:
./configure --help
on both kdelibs and kdepim didn't show any options regarding LDAP. I don't know what else I could try. Maybe you could help me with that. Thanks a lot.

Lars
 
Old 04-07-2006, 07:13 AM   #2
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Ok, it seems that unlike many posts across the web LDAP support must be compiled into kdebase and not into kdelibs and kdepim. 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 myself using

Code:
./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

Code:
./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

Code:
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
I don't know if there are any system variables I have to set. I thought setting the LDAP path should be enough. Maybe someone could point me to the right direction. Thanks again.

Lars
 
Old 04-07-2006, 09:38 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Maybe you could try using the official Slackware ldap.
 
Old 04-07-2006, 11:14 AM   #4
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks for your reply, but unfortunately that doesn't work also. In the meantime I have compiled different versions of OpenLDAP. The version 2.3.6 also failed with the error message I posted earlier. Version 2.2.27 compiled successfully but failed during make install. It couldn't find 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. I have no idea what to try next..

Lars
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help LDAP Slackware! FreakboY Slackware 4 02-17-2007 09:51 AM
In Flames!!!, please help (LDAP+Slackware) xowl Slackware 3 03-19-2005 10:27 PM
LDAP in Slackware xowl Slackware 4 03-15-2005 03:57 AM
LDAP in KDE 3.3.2/KAddressbook/Slackware current Danus ex Slackware 0 01-31-2005 07:35 PM
user authentication with ldap on slackware? micval Slackware 4 01-16-2004 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration