Attempts to upgrade evolution data server to evolution-data-server-1.4.1.1 fails while compiling the sub-component e2k-global-catalog.c Reproducible: Always Steps to Reproduce: 1.Set use flags to: X gtk2 alsa ssl pam vim -grub lilo -gif ipv6 maildir slp sasl ldap tiff lcms wmf jbig -kde mozilla java pie gcj live network 2.emerge -u evolution-data-server 3. Actual Results: Got errors on compile Expected Results: evolution data server merged. e2k-global-catalog.c: In function `finalize': e2k-global-catalog.c:141: warning: implicit declaration of function `ldap_unbind' e2k-global-catalog.c: In function `gc_ldap_result': e2k-global-catalog.c:198: warning: implicit declaration of function `ldap_abandon' e2k-global-catalog.c: In function `ntlm_bind': e2k-global-catalog.c:250: warning: implicit declaration of function `ldap_ntlm_bind' e2k-global-catalog.c:250: error: `LDAP_AUTH_NTLM_REQUEST' undeclared (first use in this function) e2k-global-catalog.c:250: error: (Each undeclared identifier is reported only once e2k-global-catalog.c:250: error: for each function it appears in.) e2k-global-catalog.c:264: warning: implicit declaration of function `ldap_parse_ntlm_bind_result' e2k-global-catalog.c:286: error: `LDAP_AUTH_NTLM_RESPONSE' undeclared (first use in this function) e2k-global-catalog.c: In function `get_ldap_connection': e2k-global-catalog.c:348: warning: implicit declaration of function `ldap_init' e2k-global-catalog.c:348: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `lookup_mta': e2k-global-catalog.c:472: warning: implicit declaration of function `ldap_get_values' e2k-global-catalog.c:472: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:488: warning: implicit declaration of function `ldap_value_free' e2k-global-catalog.c: In function `get_sid_values': e2k-global-catalog.c:509: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:525: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `get_mail_values': e2k-global-catalog.c:548: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:558: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:559: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:571: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `get_delegation_values': e2k-global-catalog.c:590: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:602: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `get_quota_values': e2k-global-catalog.c:623: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:638: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:645: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:652: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `get_account_control_values': e2k-global-catalog.c:666: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `lookup_controlling_ad_server': e2k-global-catalog.c:957: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c:984: warning: assignment makes pointer from integer without a cast e2k-global-catalog.c: In function `lookup_passwd_max_age': e2k-global-catalog.c:1058: warning: assignment makes pointer from integer without a cast make[5]: *** [e2k-global-catalog.lo] Error 1 make[5]: Leaving directory `/var/tmp/portage/evolution-data-server-1.4.1.1/work/evolution-data-server-1.4.1.1/servers/exchange/lib' make[4]: *** [all] Error 2 make[4]: Leaving directory `/var/tmp/portage/evolution-data-server-1.4.1.1/work/evolution-data-server-1.4.1.1/servers/exchange/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/evolution-data-server-1.4.1.1/work/evolution-data-server-1.4.1.1/servers/exchange' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/evolution-data-server-1.4.1.1/work/evolution-data-server-1.4.1.1/servers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/evolution-data-server-1.4.1.1/work/evolution-data-server-1.4.1.1' make: *** [all] Error 2
evolution-data-server 1.4.2.1 fails with the same error as below. Here are the results from emerge info: mrcoffee:~$ sudo emerge info evolution-data-server Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14 i686) ================================================================= System uname: 2.6.14 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz Gentoo Base System version 1.12.0_pre11 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.16 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20-r1 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig cvs distlocks noauto notitles sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://files.gentoo.gr ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.ankara.edu.tr/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ ftp://ftp.du.se/pub/os/gentoo ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl eds emboss encode esd exif expat fam foomaticdb fortran gcj gd gdbm glut gnome gpm gstreamer gtk gtk2 guile idn imagemagick imlib ipv6 java jbig jpeg lcms ldap libg++ libwww lilo live lua mad maildir mhash mikmod mng motif mozilla mp3 mpeg ncurses network nls ogg oggvorbis opengl oss pam pcre pdflib perl pie png python qt quicktime readline recode sasl sdl slang slp spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev usb vim vorbis wmf xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
seems related to ldap, what openldap version do you have installed ?
I have two versions of openldap installed openldap-2.2.28-r1 installed via portage and openldap-2.3.7 installed by hand in /usr/local
That seems likely to be the problem. Could you paste the output of ldconfig -p | grep -i ldap
could you try to remove the copy in /usr/local, so it isn't used by GCC at all (for the headers or the libs).
mrcoffee:~$ /sbin/ldconfig -p | grep -i ldap libprldap50.so (libc6) => /usr/lib/mozilla/libprldap50.so libldap50.so (libc6) => /usr/lib/mozilla/libldap50.so libldapjclnt9.so (libc6) => /home/oracle/ora920sv/lib/libldapjclnt9.so libldapdb.so.2 (libc6) => /usr/local/lib/sasl2/libldapdb.so.2 libldapdb.so (libc6) => /usr/local/lib/sasl2/libldapdb.so libldap_r.so.2 (libc6) => /usr/lib/libldap_r.so.2 libldap_r-2.3.so.0 (libc6) => /usr/local/lib/libldap_r-2.3.so.0 libldap_r-2.2.so.7 (libc6) => /usr/local/lib/libldap_r-2.2.so.7 libldap_r-2.2.so.7 (libc6) => /usr/lib/libldap_r-2.2.so.7 libldap.so.2 (libc6) => /usr/lib/libldap.so.2 libldap-2.3.so.0 (libc6) => /usr/local/lib/libldap-2.3.so.0 libldap-2.2.so.7 (libc6) => /usr/local/lib/libldap-2.2.so.7 libldap-2.2.so.7 (libc6) => /usr/lib/libldap-2.2.so.7 mrcoffee:~$
That's the problem. Your ldap libs in /usr/local/ are coming before the correct ones in /usr/lib. You'll need to remove them.
Removing the ldap libs in /usr/local/lib and the ldap includes in /usr/local/include did the trick. I was able to update the evolution data server, then evolution and openoffice. Thanks.