while running 'emerge world -uD' pwlib is recompiled, bombs out with following message; g++ -DP_USE_PRAGMA -D_REENTRANT -Wall -DP_64BIT -fPIC -DUSE_ESD=1 -I/var/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/include -Os -O2 -march=k8 -fomit-frame-pointer -felide-constructors -x c++ -c ../../ptclib/pldap.cxx -o /var/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/lib/obj_linux_x86_64_r/pldap.o ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Open(const PString&, WORD)': ../../ptclib/pldap.cxx:130: error: `ldap_init' was not declared in this scope ../../ptclib/pldap.cxx:130: warning: unused variable 'ldap_init' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Close()': ../../ptclib/pldap.cxx:144: error: `ldap_unbind' was not declared in this scope ../../ptclib/pldap.cxx:144: warning: unused variable 'ldap_unbind' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Bind(const PString&, const PString&, PLDAPSession::AuthenticationMethod)': ../../ptclib/pldap.cxx:184: error: `ldap_bind_s' was not declared in this scope ../../ptclib/pldap.cxx:184: warning: unused variable 'ldap_bind_s' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Add(const PString&, const PList<PLDAPSession::ModAttrib>&)': ../../ptclib/pldap.cxx:413: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:413: warning: unused variable 'ldap_result2error' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Modify(const PString&, const PList<PLDAPSession::ModAttrib>&)': ../../ptclib/pldap.cxx:457: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:457: warning: unused variable 'ldap_result2error' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Delete(const PString&)': ../../ptclib/pldap.cxx:495: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:495: warning: unused variable 'ldap_result2error' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::Search(PLDAPSession::SearchContext&, const PString&, const PStringArray&, const PString&, PLDAPSession::SearchScope)': ../../ptclib/pldap.cxx:561: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:561: warning: unused variable 'ldap_result2error' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::GetSearchResult(PLDAPSession::SearchContext&, const PString&, PString&)': ../../ptclib/pldap.cxx:628: error: `ldap_get_values' was not declared in this scope ../../ptclib/pldap.cxx:632: error: `ldap_count_values' was not declared in this scope ../../ptclib/pldap.cxx:639: error: `ldap_value_free' was not declared in this scope ../../ptclib/pldap.cxx:628: warning: unused variable 'ldap_get_values' ../../ptclib/pldap.cxx:632: warning: unused variable 'ldap_count_values' ../../ptclib/pldap.cxx:639: warning: unused variable 'ldap_value_free' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::GetSearchResult(PLDAPSession::SearchContext&, const PString&, PStringArray&)': ../../ptclib/pldap.cxx:662: error: `ldap_get_values' was not declared in this scope ../../ptclib/pldap.cxx:666: error: `ldap_count_values' was not declared in this scope ../../ptclib/pldap.cxx:671: error: `ldap_value_free' was not declared in this scope ../../ptclib/pldap.cxx:662: warning: unused variable 'ldap_get_values' ../../ptclib/pldap.cxx:666: warning: unused variable 'ldap_count_values' ../../ptclib/pldap.cxx:671: warning: unused variable 'ldap_value_free' ../../ptclib/pldap.cxx: In member function `BOOL PLDAPSession::GetNextSearchResult(PLDAPSession::SearchContext&)': ../../ptclib/pldap.cxx:775: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:775: warning: unused variable 'ldap_result2error' ../../ptclib/pldap.cxx:788: error: `ldap_result2error' was not declared in this scope ../../ptclib/pldap.cxx:788: warning: unused variable 'ldap_result2error' make[1]: *** [/var/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/lib/obj_linux_x86_64_r/pldap.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/src/ptlib/unix' make: *** [opt] Error 2 !!! ERROR: dev-libs/pwlib-1.8.7 failed. Call stack: ebuild.sh, line 1527: Called dyn_compile ebuild.sh, line 931: Called src_compile pwlib-1.8.7.ebuild, line 115: Called die !!! make failed !!! If you need support, post the topmost build error, and the call stack if relevant. ******************************************************************************* emerge --info follows; Portage 2.1_rc1 (default-linux/amd64/2005.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r7 x86_64) ================================================================= System uname: 2.6.16-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre19 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/ebuildexchange /usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="amd64 7zip X Xaw3d a52 aac acpi aim alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzlib calendar cdparanoia cdr cli cpudetection crypt css cups curl dbus dga divx4linux dri dv dvb dvd dvdr dvdread eds emboss encode esd ethereal exif expat fam fbcon ffmpeg flac flash font-server foomaticdb fortran ftp gif gimpprint gnome gpm gps gstreamer gtk gtk2 hal icq iee1394 ieee1394 imlib ipv6 isdnlog jabber java javascript joystick jpeg kde lm_sensors logitech-mouse lzw lzw-tiff mcve mgetty mikmod mime mng mozilla mozsvg mp3 mpeg mplayer msn musepack musicbrainz mysql nas ncurses network nls nptl nptlonly nvidia offensive ogg oggvorbis openal opengl osc oscar oss pam pcre pdflib perl png ppds pppd python qt quicktime rar rdesktop readline recode reflection sasl scanner sdl sensord session sndfile sox spell spl ssl subtitles svg symlink tcltk tcpd theora tidy tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd videos vorbis wmf wxwindows xcomposite xine xinerama xmms xorg xosd xpm xprint xscreensaver xv xvid yahoo yv12 zeroconf zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_joystick kernel_linux userland_GNU video_cards_nvidia video_cards_v4l video_cards_nv" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
I get the same issue. (with openldap 2.3.24-r2) Gentoo Base System version 1.12.0 Portage 2.1_rc4-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.15-ck2 i686) ================================================================= System uname: 2.6.15-ck2 i686 Unknown CPU Typ distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r1 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex S3TC X Xaw3d aac acl acpi alsa apache2 apm arts async avi berkdb bidi bitmap-fonts bzip2 cairo canna cdparanoia cjk cli crypt cscope cups curl dedicated dga directfb doc dri dvd dvdr eds emacs emboss encode erandom escreen esd f77 faad fbcon ffmpeg firefox flac font-server foomaticdb fortran freewnn gcj gdbm gif glut gnome gpgme gpm gstreamer gtk gtk2 gtkhtml guile idea ieee1394 imagemagick imap imlib ipv6 isdnlog java javascript jpeg kde kerberos ldap libcaca libg++ libwww lirc mad matroska mbox mikmod mmx mmx2 mono motif mozcalendar mozsvg mp3 mpeg mpi mule multitarget music musicbrainz ncurses network nls nptl nptlonly ntlm nvidia objc ocaml odbc offensive ogg opengl oss pam pcre pdflib perl plotutils png povray pppd python qt quicktime rdesktop readline real reflection rtc ruby samba sasl sdl session smime spell spl sse ssl svg svga tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 uudeview v4l v4l2 vorbis win32codecs wmf x264 xchatdccserver xgetdefault xine xinerama xml xmms xorg xrandr xv xvid xvmc zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
I have too Portage 2.1 (default-linux/x86/2005.1, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.12.0_pre18 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mmmx -msse -msse2" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/terminfo" CXXFLAGS="-O2 -march=i686 -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 apm arts avi berkdb bitmap-fonts cli crypt dri eds emboss encode foomaticdb fortran gdbm gif gpm gstreamer h323 imlib isdnlog jpeg libclamav libg++ libwww mad mikmod mmx motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime quotas readline reflection session spell spl sse ssl syslog tcpd truetype truetype-fonts type1-fonts vorbis winbind xml2 xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 89329 [details, diff] Add the -DLDAP_DEPRECATED flag to all the pwlib ebuilds The following functions (used by pwlib and gnomemeeting/ekiga) has been deprecated in openldap-2.3.*: ldap_init ldap_unbind ldap_bind_s ldap_result2error ldap_get_values ldap_count_values ldap_value_free You could still compile with these functions if you add '-DLDAP_DEPRECATED' to CFLAGS. This patch (against all the ebuilds present in the dev-libs/pwlib directory) uses the append-flags function from the flag-o-matic eclass to add that flag.
Hi there The patch is already obsolete. I have no old versions of the ldap libs installed and OpenLDAP 2.3 (net-nds/openldap-2.3.24-r1 in my case) + pwlib 1.10.1 can be compiled (but they are not usable with gnomemeeting-1.00). I don't know which version is the first working one - <pwlib-1.8.7 is broken. Maybe the older versions of pwlib should be blocked by OpenLDAP-2.3 if possible and plausible?
This issue still exists on stable (x86) systems, currently preventing me from rebuilding pwlib+openh323 after an update to gcc 3.4.
*** Bug 142022 has been marked as a duplicate of this bug. ***
fixed in 1.18.0, thanks