When emerging net-nds/openldap-2.2.28-r3 it fails with /usr/share/aclocal/unshield.m4:4: warning: underquoted definition of AM_PATH_LIBUNSHIELD run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH /usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE /usr/share/aclocal/gtkextra.m4:8: warning: underquoted definition of AM_PATH_GTK_EXTRA /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL /usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of AM_PATH_GCONF /usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of AM_GCONF_SOURCE /usr/share/aclocal/bnv_have_qt.m4:325: warning: underquoted definition of BNV_PATH_QT_DIRECT /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO /usr/share/aclocal/ac_latex_packages.m4:28: warning: underquoted definition of AC_LATEX_PACKAGES /usr/share/aclocal/ac_check_typedef.m4:19: warning: underquoted definition of AC_CHECK_TYPEDEF_ /usr/share/aclocal/ac_check_typedef.m4:38: warning: underquoted definition of AC_CHECK_TYPEDEF /usr/share/aclocal/ac_check_symbol.m4:12: warning: underquoted definition of AC_CHECK_SYMBOL /usr/share/aclocal/ac_check_symbol.m4:39: warning: underquoted definition of AC_CHECK_SYMBOLS /usr/share/aclocal/ac_check_func_in.m4:11: warning: underquoted definition of AC_CHECK_FUNC_IN /usr/share/aclocal/ac_check_func_in.m4:51: warning: underquoted definition of AC_CHECK_FUNCS_IN /usr/share/aclocal/ac_arg_with_path_style.m4:33: warning: underquoted definition of AC_ARG_WITH_PATH_STYLE aclocal:configure.in:2311: warning: macro `AM_TYPE_PTRDIFF_T' not found in library build/openldap.m4:66: error: m4_defn: undefined macro: _m4_divert_diversion /usr/share/aclocal/ac_compile_check_sizeof.m4:78: AC_COMPILE_CHECK_SIZEOF is expanded from... build/openldap.m4:66: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 aclocal-1.9: autom4te failed with exit status: 1 Reproducible: Allways Result: Can't update openldap # emerge -pvDu openldap [ebuild U ] net-nds/openldap-2.2.28-r3 [2.2.28] +berkdb +crypt -debug +gdbm -ipv6* -kerberos -minimal +odbc +perl +readline -samba* -sasl (-selinux) -slp +ssl +tcpd 0 kB # emerge --info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r5 i686) ================================================================= System uname: 2.6.14-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=pentium4 -funit-at-a-time" CHOST="i686-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/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=pentium4 -funit-at-a-time" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict test" GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://mirror.pudas.net/gentoo http://mirror.uni-c.dk/pub/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/" LC_ALL="sv_SE.utf8" LDFLAGS="-Wl,-O1" LINGUAS="sv" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /var/gentoo-extra/overlays/bmg-main" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cdb cdr clamav crypt cups curl directfb dvd dvdread eds emacs emboss encode esd examples exif expat fam fbcon ffmpeg fftw flac flash foomaticdb fortran ftp gd gdbm gif glut gmp gpm gstreamer gtk gtk2 gtkhtml guile haskell idn ieee1394 imagemagick imlib inifile ipv6 jack java javascript jpeg junit kde kdeenablefinal lcms libg++ libwww lua mad mhash mikmod mime ming mmx mng mono motif mozdevelop mozilla moznoirc moznomail mozsvg mp3 mpeg mysql mysqli ncurses nls nptl nsplugin odbc ogg oggvorbis openal opengl oss pam pcre pdflib perl php physfs pic png python qt quicktime readline ruby samba scanner sdl slang spell sqlite sse sse2 ssl subversion svg svga tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis xine xml xml2 xmms xsl xv xvid zlib linguas_sv userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG
(In reply to comment #0) > # emerge -pvDu openldap > [ebuild U ] net-nds/openldap-2.2.28-r3 [2.2.28] +berkdb +crypt -debug +gdbm > -ipv6* -kerberos -minimal +odbc +perl +readline -samba* -sasl (-selinux) -slp > +ssl +tcpd 0 kB This error also happens when the use flags are: [ebuild U ] net-nds/openldap-2.2.28-r3 [2.2.28] +berkdb +crypt -debug +gdbm +ipv6 -kerberos -minimal +odbc +perl +readline +samba -sasl (-selinux) -slp +ssl +tcpd 0 kB
*** This bug has been marked as a duplicate of 114544 ***
This is not a duplicate. The bugs displayed here were fixed in -r3, so something is weird. Please set PORT_LOGDIR in your make.conf, run the emerge again, and attach the complete logfile for this emerge.
Also if you have sys-devel/autoconf-archive please unmerge it.
(In reply to comment #3) >Please set PORT_LOGDIR in your make.conf, run the emerge again, and attach the >complete logfile for this emerge. It is already set: # grep PORT_LOGDIR /etc/make.conf PORT_LOGDIR="/var/log/portage" (In reply to comment #4) > Also if you have sys-devel/autoconf-archive please unmerge it. I have sys-devel/autoconf-archive and I use it. Some programs I develop require it. I can't unmerge it.
Created attachment 74959 [details] Emerge log (In reply to comment #3) >Please set PORT_LOGDIR in your make.conf, run the emerge again, and attach the complete logfile for this emerge. Here it is.
Possibly "odd" things about my system This _may_ be of some help. * I use cdb cache (not standard flat one) for portage (/var/cache/edb/dep/) * I have my portage tree and things mounted like this: /dev/hda6 on / type reiserfs (rw,noatime) ... /dev/hda4 on /var/gentoo-extra type reiserfs (rw,noatime) /var/gentoo-extra/portage on /usr/portage type none (rw,bind) /var/gentoo-extra/gentoo/log/portage on /var/log/portage type none (rw,bind) /var/gentoo-extra/gentoo/db/pkg on /var/db/pkg type none (rw,bind) This is because hda4 has a smaller block size.
ok, I suspect that sys-devel/autoconf-archive has some bad definitions in it. Could you please temporarily unmerge it, and see if that lets openldap emerge?
(In reply to comment #8) > ok, I suspect that sys-devel/autoconf-archive has some bad definitions in it. > Could you please temporarily unmerge it, and see if that lets openldap emerge? I and other users require it. I would rather remove ldap from my USE flags and "emerge -DuN world". Also I'm upgrading KDE at the moment, and I don't want to mess it up. My version of sys-devel/autoconf-archive: # eix autoconf-archive * sys-devel/autoconf-archive Available versions: 2005.06.17 2005.08.12 Installed: 2005.08.12 Homepage: http://autoconf-archive.cryp.to/ Description: GNU Autoconf Macro Archive I can do the unmerge in a few days.
vapier: your autoconf-archive package breaks openldap.
(In reply to comment #10) > vapier: your autoconf-archive package breaks openldap. Why does it break openldap? Why can't you fix it? I _need_ autoconf-archive!
(In reply to comment #10) > vapier: your autoconf-archive package breaks openldap. I upgraded to sys-devel/autoconf-archive-2005.10.14 It didn't help. Output of emerge -u openldap: Calculating dependencies ...done! >>> emerge (1 of 1) net-nds/openldap-2.2.28-r3 to / >>> md5 files ;-) openldap-2.1.30-r3.ebuild >>> md5 files ;-) openldap-2.2.27.ebuild >>> md5 files ;-) openldap-2.1.30-r5.ebuild >>> md5 files ;-) openldap-2.2.24.ebuild >>> md5 files ;-) openldap-2.1.27.ebuild >>> md5 files ;-) openldap-2.2.28-r1.ebuild >>> md5 files ;-) openldap-2.1.30-r2.ebuild >>> md5 files ;-) openldap-2.2.26-r2.ebuild >>> md5 files ;-) openldap-2.2.26.ebuild >>> md5 files ;-) openldap-2.2.28-r3.ebuild >>> md5 files ;-) openldap-2.1.30-r4.ebuild >>> md5 files ;-) openldap-2.2.27-r1.ebuild >>> md5 files ;-) openldap-2.2.23-r1.ebuild >>> md5 files ;-) openldap-2.2.28.ebuild >>> md5 files ;-) openldap-2.2.23.ebuild >>> md5 files ;-) openldap-2.2.19.ebuild >>> md5 files ;-) openldap-2.2.14.ebuild >>> md5 files ;-) openldap-2.1.30.ebuild >>> md5 files ;-) openldap-2.1.26.ebuild >>> md5 files ;-) openldap-2.1.30-r6.ebuild >>> md5 files ;-) openldap-2.1.30-r1.ebuild >>> md5 files ;-) openldap-2.1.27-r1.ebuild >>> md5 files ;-) openldap-2.2.26-r1.ebuild >>> md5 files ;-) openldap-2.2.28-r2.ebuild >>> md5 files ;-) files/openldap-2.1.30-autoconf25.patch >>> md5 files ;-) files/openldap-2.2.26-tls-fix-connection-test.patch >>> md5 files ;-) files/gencert.sh-2.2.27 >>> md5 files ;-) files/gencert.sh >>> md5 files ;-) files/openldap-2.1.30-db40.patch >>> md5 files ;-) files/digest-openldap-2.1.27-r1 >>> md5 files ;-) files/digest-openldap-2.1.30-r1 >>> md5 files ;-) files/digest-openldap-2.1.30-r2 >>> md5 files ;-) files/digest-openldap-2.1.30-r3 >>> md5 files ;-) files/digest-openldap-2.1.30-r4 >>> md5 files ;-) files/digest-openldap-2.1.30-r5 >>> md5 files ;-) files/digest-openldap-2.1.30-r6 >>> md5 files ;-) files/openldap-2.1.30-tls-activedirectory-hang-fix.patch >>> md5 files ;-) files/openldap-2.2.28-r1-configure.in-rpath.patch >>> md5 files ;-) files/openldap-2.2.14-db40.patch >>> md5 files ;-) files/digest-openldap-2.2.23-r1 >>> md5 files ;-) files/digest-openldap-2.2.26-r1 >>> md5 files ;-) files/digest-openldap-2.2.26-r2 >>> md5 files ;-) files/digest-openldap-2.2.27-r1 >>> md5 files ;-) files/digest-openldap-2.2.28-r1 >>> md5 files ;-) files/digest-openldap-2.2.28-r2 >>> md5 files ;-) files/digest-openldap-2.2.28-r3 >>> md5 files ;-) files/openldap-2.2.6-ntlm.patch >>> md5 files ;-) files/openldap-2.1.30-rpath.patch >>> md5 files ;-) files/openldap-2.2.14-perlthreadsfix.patch >>> md5 files ;-) files/openldap-2.1.27-perlthreadsfix.patch >>> md5 files ;-) files/digest-openldap-2.1.26 >>> md5 files ;-) files/digest-openldap-2.1.27 >>> md5 files ;-) files/digest-openldap-2.1.30 >>> md5 files ;-) files/digest-openldap-2.2.14 >>> md5 files ;-) files/digest-openldap-2.2.19 >>> md5 files ;-) files/digest-openldap-2.2.23 >>> md5 files ;-) files/digest-openldap-2.2.24 >>> md5 files ;-) files/digest-openldap-2.2.26 >>> md5 files ;-) files/digest-openldap-2.2.27 >>> md5 files ;-) files/digest-openldap-2.2.28 >>> md5 files ;-) files/openldap-2.1.27-db40.patch >>> md5 files ;-) files/openldap-2.1.30-ximian_connector.patch >>> md5 files ;-) files/openldap-2.2.28-ximian_connector.patch >>> md5 files ;-) files/2.0/slapd >>> md5 files ;-) files/2.0/slapd.conf >>> md5 files ;-) files/2.0/slurpd >>> md5 src_uri ;-) openldap-2.2.28.tgz >>> md5 src_uri ;-) openldap-2.1.30.tgz * If you are upgrading from OpenLDAP-2.1, and run slapd on this * machine please see the ebuild for upgrade instructions, otherwise * you may corrupt your database! * Part of the configuration file syntax has changed: * 'access to attribute=' is now 'access to attrs=' * You must also run revdep-rebuild after upgrading from 2.1 to 2.2: * # revdep-rebuild --soname liblber.so.2 * # revdep-rebuild --soname libldap.so.2 * # revdep-rebuild --soname libldap_r.so.2 >>> Unpacking source... >>> Unpacking openldap-2.2.28.tgz to /var/tmp/portage/openldap-2.2.28-r3/work >>> Unpacking openldap-2.1.30.tgz to /var/tmp/portage/openldap-2.2.28-r3/work * Applying openldap-2.2.14-db40.patch ... [ ok ] * Applying openldap-2.2.14-perlthreadsfix.patch ... [ ok ] * Applying openldap-2.2.26-tls-fix-connection-test.patch ... [ ok ] * Applying openldap-2.2.6-ntlm.patch ... [ ok ] * Applying openldap-2.1.30-autoconf25.patch ... [ ok ] * Applying openldap-2.1.30-autoconf25.patch ... [ ok ] * Running libtoolize on openldap-2.1.30 You should update your `aclocal.m4' by running aclocal. Putting files in AC_CONFIG_AUX_DIR, `build'. * Running aclocal on openldap-2.1.30 /usr/share/aclocal/unshield.m4:4: warning: underquoted definition of AM_PATH_LIBUNSHIELD run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR /usr/share/aclocal/pth.m4:55: warning: underquoted definition of _AC_PTH_VERBOSE /usr/share/aclocal/pth.m4:61: warning: underquoted definition of AC_CHECK_PTH /usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF /usr/share/aclocal/libxosd.m4:9: warning: underquoted definition of AM_PATH_LIBXOSD /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE /usr/share/aclocal/gtkextra.m4:8: warning: underquoted definition of AM_PATH_GTK_EXTRA /usr/share/aclocal/gsl.m4:5: warning: underquoted definition of AM_PATH_GSL /usr/share/aclocal/gconf-1.m4:4: warning: underquoted definition of AM_PATH_GCONF /usr/share/aclocal/gconf-1.m4:71: warning: underquoted definition of AM_GCONF_SOURCE /usr/share/aclocal/bnv_have_qt.m4:325: warning: underquoted definition of BNV_PATH_QT_DIRECT /usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO /usr/share/aclocal/ac_latex_packages.m4:28: warning: underquoted definition of AC_LATEX_PACKAGES /usr/share/aclocal/ac_check_typedef.m4:19: warning: underquoted definition of AC_CHECK_TYPEDEF_ /usr/share/aclocal/ac_check_typedef.m4:38: warning: underquoted definition of AC_CHECK_TYPEDEF /usr/share/aclocal/ac_check_symbol.m4:12: warning: underquoted definition of AC_CHECK_SYMBOL /usr/share/aclocal/ac_check_symbol.m4:39: warning: underquoted definition of AC_CHECK_SYMBOLS /usr/share/aclocal/ac_check_func_in.m4:11: warning: underquoted definition of AC_CHECK_FUNC_IN /usr/share/aclocal/ac_check_func_in.m4:51: warning: underquoted definition of AC_CHECK_FUNCS_IN /usr/share/aclocal/ac_arg_with_path_style.m4:33: warning: underquoted definition of AC_ARG_WITH_PATH_STYLE aclocal:configure.in:2311: warning: macro `AM_TYPE_PTRDIFF_T' not found in library build/openldap.m4:66: error: m4_defn: undefined macro: _m4_divert_diversion /usr/share/aclocal/ac_compile_check_sizeof.m4:78: AC_COMPILE_CHECK_SIZEOF is expanded from... build/openldap.m4:66: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 aclocal-1.9: autom4te failed with exit status: 1
Please fetch the overlay from http://www.markus-ullmann.de/gentoo (The files or the tarball at your option) Please put these files into your overlay directory and give 2.1.30-r7 a try
Sorry, copy and paste is not always a good idea ;) 2.2.28-r4 is the correct version
I'm sorry. Someone else has to help with this bug as I don't have the time. :( At the moment I'm rebuilding my system without the "ldap" use flag: flagedit -ldap emerge -avDuN world
I'm confident this is fixed, so much so that I'd close this but as its assigned to you spanky ...
Created attachment 83056 [details, diff] patch for openldap-2.2.28-r3 without libtoolize, aclocal, autoconf, rpath.patch Work only with portage 2.1_pre6-r6 (auto fix rpath). (thanks solar) echo 'sys-apps/portage ~x86 dev-python/pycrypto ~x86' >> /etc/portage/package.keywords env-update source /etc/profile emerge -u portage emerge autoconf-archive cd /usr/portage/net-nds/openldap patch -p0 < openldap-2.2.28-r3-without-libtoolize.patch ebuild openldap-2.2.28-r3.ebuild digest emerge openldap work fine with and without autoconf-archive installed. I don't know why need libtoolize, aclocal, autoconf. No in INSTALL openldap file. ">openldap 2.0.4 builds normally on a system with or without the libtool >package being installed. However, if libtoolize is called previous to >running configure (which rpm and other programs do), the purported purpose >is to check the /build tree and generate libtool before configure (whereas >configure will attempt to do it itself if libtoolize has not been >run). No, purpose of running libtoolize is to muck with the build system. Running libtoolize will report: Putting files in AC_CONFIG_AUX_DIR, `build'. libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite libtoolize: `ltconfig' exists: use `--force' to overwrite libtoolize: `ltmain.sh' exists: use `--force' to overwrite Don't do that. >The problem stems from the fact that libtoolize creates a different >libtool than that packaged with openldap 2.0.4 (libtool 1.3.3) whereas >openldap 1.2.x creates a one at harmony with system definitions. In both cases, running libtoolize --force replaces the libtool version used by the package. Doing such can break things. Don't do that." # From: Kurt@OpenLDAP.org and: "I suggest you follow the INSTALL instructions instead. Note that the INSTALL instructions do not suggest you run libtoolize." Kurt
NAK on the patch in that form. You must apply your changes to both the 2.1 and 2.2 source that are unpacked.
Everything should be fine in -r4 already, please try that first
Created attachment 84839 [details, diff] new patch -r4 based
So am I right that -r4 works for you?
-r4 work fine here.
Okay, as it is fixed in -r4 and having 2.3 already on stable course, marking bug as resolved