Reproducible: Always Steps to Reproduce: 1. emerge net-nds/openldap 2. USE="-ldap" emerge --oneshot kde-base/kdelibs Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) kde-base/kdelibs-3.1.2-r1 to / >>> md5 src_uri ;-) kdelibs-3.1.2.tar.bz2 >>> Unpacking source... >>> Unpacking kdelibs-3.1.2.tar.bz2 to /var/tmp/portage/kdelibs-3.1.2-r1/work Running sed on Makefile.am Running sed on Makefile.in * Applying kdelibs-3.1.2-http.patch... [ ok ] * Applying kdelibs-3.1.2-khtml.patch... [ ok ] >>> Source unpacked. ipv6 ssl x86 configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu [...] fast creating kabc/Makefile fast creating kabc/formats/Makefile fast creating kabc/plugins/Makefile fast creating kabc/plugins/dir/Makefile fast creating kabc/plugins/imap/Makefile fast creating kabc/plugins/ldap/Makefile fast creating kabc/plugins/net/Makefile fast creating kabc/plugins/sql/Makefile [...] /usr/qt/3/bin/moc ./ldapclient.h -o ldapclient.moc [...] /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./vcard/include -I./vcard/include/generated -I../kabc -I../kab -I../dcop -I../libltdl -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I/usr/X11R6/include - I/usr/kde/3.1/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmi ssing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pi pe -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c -o ldapclient.lo `test -f ' ldapclient.cpp' || echo './'`ldapclient.cpp /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing -prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -f no-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o libkabc.la.closure libkabc_la_ closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -no-undefined -version-info 2:0:1 -module address.lo addressbook.lo addressee .lo addresseedialog.lo agent.lo distributionlist.lo distributionlistdialog.lo distributionlisteditor.lo errorhandler.lo field.lo formatfactor y.lo geo.lo key.lo phonenumber.lo picture.lo plugin.lo resource.lo resourceconfigwidget.lo resourcefactory.lo resourcefile.lo resourcefilecon fig.lo resourceselectdialog.lo secrecy.lo sound.lo stdaddressbook.lo timezone.lo vcard21parser.lo vcardconverter.lo vcardformat.lo vcardforma timpl.lo vcardformatplugin.lo addresslineedit.lo ldapclient.lo addresseelist.lo vcard/libvcard.la ../kdeui/libkdeui.la ../kio/libkio.la libtool: link: warning: `-version-info' is ignored for programs /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing -prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -f no-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o libkabc.la -rpath /usr/kde/3.1 /lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -no-undefined -version-info 2:0:1 -module address.lo addressbook.lo addressee.lo ad dresseedialog.lo agent.lo distributionlist.lo distributionlistdialog.lo distributionlisteditor.lo errorhandler.lo field.lo formatfactory.lo g eo.lo key.lo phonenumber.lo picture.lo plugin.lo resource.lo resourceconfigwidget.lo resourcefactory.lo resourcefile.lo resourcefileconfig.lo resourceselectdialog.lo secrecy.lo sound.lo stdaddressbook.lo timezone.lo vcard21parser.lo vcardconverter.lo vcardformat.lo vcardformatimpl. lo vcardformatplugin.lo addresslineedit.lo ldapclient.lo addresseelist.lo vcard/libvcard.la ../kdeui/libkdeui.la ../kio/libkio.la [...] make[4]: Leaving directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/kabc/plugins/dir' Making all in ldap make[4]: Entering directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/kabc/plugins/ldap' /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../kabc -I../../../dcop -I../../../libltdl -I../../../kdecore -I../../../kdeui -I../../../kio -I../../../kio/kio -I../../../kio/kfile -I../../.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.1/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c -o resourceldap.lo `test -f 'resourceldap.cpp' || echo './'`resourceldap.cpp /usr/qt/3/bin/moc ./resourceldapconfig.h -o resourceldapconfig.moc /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../kabc -I../../../dcop -I../../../libltdl -I../../../kdecore -I../../../kdeui -I../../../kio -I../../../kio/kio -I../../../kio/kfile -I../../.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.1/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -c -o resourceldapconfig.lo `test -f 'resourceldapconfig.cpp' || echo './'`resourceldapconfig.cpp /bin/sh ../../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno-check-new -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -o kabc_ldap.la.closure kabc_ldap_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -module -no-undefined -R /usr/kde/3.1/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -lldap -llber -lresolv resourceldap.lo resourceldapconfig.lo ../../libkabc.la ../../../kdeui/libkdeui.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lkrb5 collect2: ld returned 1 exit status make[4]: *** [kabc_ldap.la.closure] Error 1 make[4]: Leaving directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/kabc/plugins/ldap' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/kabc/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2/kabc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/kdelibs-3.1.2-r1/work/kdelibs-3.1.2' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.1.2-r1 failed. !!! Function kde_src_compile, Line 137, Exitcode 2 !!! died running emake, kde_src_compile:make Expected Results: Compile kdelibs without LDAP support. Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.21-cube-2 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/vice/etc /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/afs/modload /etc/make.globals /etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 foomaticdb libg++ mad gtkhtml gdbm berkdb libwww gtk cdr -3dfx 3dnow -aalib acl afs -alsa apm -arts avi -bonobo crypt -cups dga -directfb doc dvd encode -esd -evo -fbcon -ggi gif -gnome -gnome-libs -gphoto2 -gpm guile hbci -icc -icc-pgo imap imlib ipv6 -java jpeg kde kerberos lcms ldap -matrox maildir mbox mikmod mmx monitor -motif mozilla mpeg -mule mysql nas ncurses nls -odbc oggvorbis opengl oss pam -pcmcia -pda pdflib -perl png -pnp postgres python qt qtmt quicktime readline -ruby samba -sasl sdl slang -slp -snmp socks5 spell ssl -static -svga -tcltk -tcpd tetex tiff truetype -voodoo3 X xml xml2 -xmms xv -zeo zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" FEATURES="sandbox ccache"
Created attachment 15549 [details, diff] kdelibs.patch Please test this patch. I don't currently have access to a high-powered Gentoo box with KDE installed.
could you test the attached patch please
btw. Your bug seems caused by a miscompiled openldap. Removing openldap should solve your direct problems. That does not mean that the patch is still a good solution.
Unfortunately the patch has no effect. The compile error is caused by removing Kerberos 5, BTW. The USE flag kerberos seems to always get interpreted as Kerberos 5, not Kerberos 4 (I need the latter one on my system).
Have had no problems with this - sounds like a local issue.