Emerging openldap-2.2.28-r2 fails when it tries to run aclocal. It's apparently looking for AM_TYPE_PTRDIFF_T (see below). I grepped for it and found: grep -r AM_TYPE_PTRDIFF_T /usr/share/aclocal* /usr/share/aclocal-1.4/ptrdiff.m4:AC_DEFUN([AM_TYPE_PTRDIFF_T], /usr/share/aclocal-1.5/ptrdiff.m4:AC_DEFUN([AM_TYPE_PTRDIFF_T], * Running aclocal /usr/share/aclocal/wxwin.m4:36: warning: underquoted definition of AM_OPTIONS_WXCONFIG run info '(automake)Extending aclocal' or see http://sources.redhat.com/automake/automake.html#Extending-aclocal /usr/share/aclocal/wxwin.m4:59: warning: underquoted definition of AM_PATH_WXCONFIG /usr/share/aclocal/pstoedit.m4:7: warning: underquoted definition of AM_PATH_PSTOEDIT /usr/share/aclocal/oaf.m4:4: warning: underquoted definition of AM_PATH_OAF /usr/share/aclocal/libglade.m4:7: warning: underquoted definition of AM_PATH_LIBGLADE /usr/share/aclocal/gtkDPS.m4:3: warning: underquoted definition of AM_PATH_GTK_DPS /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/autotrace.m4:7: warning: underquoted definition of AM_PATH_AUTOTRACE /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:2177: warning: macro `AM_TYPE_PTRDIFF_T' not found in library build/openldap.m4:68: 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:68: the top level autom4te-2.59: /usr/bin/m4 failed with exit status: 1 aclocal-1.9: autom4te failed with exit status: 1 !!! ERROR: net-nds/openldap-2.2.28-r2 failed. !!! Function src_unpack, Line 177, Exitcode 1 !!! aclocal failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r4 i686) ================================================================= System uname: 2.6.14-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre11 ccache version 2.4 [enabled] dev-lang/python: 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-r1 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="-O2 -mtune=prescott -march=prescott -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -mtune=prescott -march=prescott -pipe" DISTDIR="/home/gentoo/portage/distfiles" FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" LC_ALL="en_US.utf8" LINGUAS="en-US" MAKEOPTS="-j2" PKGDIR="/home/gentoo/portage/packages" PORTAGE_TMPDIR="/home/gentoo/tmp" PORTDIR="/home/gentoo/portage" PORTDIR_OVERLAY="/home/gentoo/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 7zip X X509 Xaw3d a52 aac aalib acl acpi activefilter ada aim aio alsa amarok amd amr aotuv apache2 arts artswrappersuid artworkextra asf asm async atlas auctex audiofile authdaemond automount bash-completion bcmath bcp bdf berkdb bitmap-fonts bjam bl blas blender-game bonobo boo bzip2 c++ cairo calendar cap caps ccache cdda cddb cdf cdio cdparanoia cdr cdrom cgi chm clanJavaScript clanVoice cli clisp cmucl commercial corba cpdflib cpudetection cracklib crosscompile crypt cscope css ctype cups curl curlwrappers cvsgraph daap dba dbm dbus dbx dcc debugger dga dhcp dio directfb discard-path dnd dpms dri dts dv dvd dvdr dvdread dynagraph ecc editor edl eds effects emboss emoticon encode enscript epson erandom esd examples exif expat extraicons extramodules fam fame fat fbcon fbdev fbsplash ffmpeg fftw finger firefox fits flac flash flatfile fltk font-server fontconfig foomaticdb force-cgi-redirect fortran fpx freetts freetype ftp fuse gb gcc-libffi gcj gcl gd gdal gdbm geoip geos ggi gif gimp gimpprint ginac gkrellm glade glep glgd glitz glut glx gml gmp gmtfull gmthigh gmtsuppl gmttria gnome gnome-print gnomedb gnuplot gpgme gphoto2 gpm gps graphviz grass gs gsl gssapi gstreamer gtk gtk2 gtkhtml guile gzip hal haskell hddtemp hdf hdf5 hfs high-ints hlapi hou hpn html httpd i8x0 icc iconv icq id3 ide idea idn image imagemagick imap imlib imlib2 inifile inkjar insecure-drivers insecure-savers ipv6 itcl jack jai jasper java javacomm javascript jbig jce jimi jit jp2 jpeg jpeg2k junit jython kcal kde kdeenablefinal kdepim kdexdeltas kqemu ladcca lame lapack largeterminal latex lcms ldap libcaca libclamav libdsk libg++ libgda libsamplerate libwww live lm_sensors logitech-mouse logrotate logwatch lua lzo lzw mad mail maildir mailwrapper mapeditor maps math matroska md5sum mhash mikmod mime ming mixer mjpeg mmap mmx mmxext mng mod mopac7 motif mozilla moznocompose moznoirc moznomail mozsha1 mozsvg mp3 mp4live mpeg mpeg2 mpeg4 mplayer mpqc multiprocess multitarget musepack music musicbrainz mysql nas ncurses net netcdf network new-login nfs nls no-old-linux nocd nowin nptl nsplugin ntfs ntlm numarray numeric oav objc ocaml octave offensive ofx ogdi ogg oggvorbis openal openbabel openexr opengl osc oss pam parse-clocks pascal patented pcntl pcre pdf pdfkit pdflib pear perl php physfs pic player plotutils plugin png pnp portaudio posix postfix povray ppds print pyste python qemu-fast qhull qt quicktime quotas quotes rar rdesktop readline real recode remix rle rogue rpc rrdtool rss rtc ruby samba sasl sbcl scanner scp screen sdk sdl seti sftp shared sharedext sharedmem shorten slp smime smp sndfile sockets softmmu sou sounds speedo speex spell spl sql sqlite sse sse-filters sse2 ssl stencil-buffer stream subject-rewrite subp subtitles subversion suid svg svgz symlink sysfs syslog sysvipc szip t1lib tcltk tcpd test tetex tga theora thesaurus threads tidy tiff timidity tokenizer toolbar tools transcode truetype truetype-fonts type1 type1-fonts ucs2 ucs4 udev unicode urandom usb userlocales utf8 uudeview v4l v4l2 vcd vcdimager vfat videos vidix vim-with-x virus-scan visualization vlm voice vorbis webdav win32codecs wmf wordperfect wv wxwindows xanim xatrix xface xforms xine xinetd xml xml2 xmms xosd xpm xprint xscreensaver xsl xslt xv xvid xvmc yv12 zip zlib linguas_en-US userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS
Please take a look at bug #105380, it should hopefully fix this as the new autoconf is used then. Feedback on success or failure would be appreciated.
(In reply to comment #1) > Please take a look at bug #105380, it should hopefully fix this as the new > autoconf is used then. > Feedback on success or failure would be appreciated. I still get the same error after applying the patch. I tried changing WANT_AUTOMAKE back to 1.5 and it was able to get past autoconfig, but it failed in configure while trying to determine the size of wchar_t. Hope this helps, Erik
The problem is some sort of conflict with sys-devel/autoconf-archive. After unmerging it openldap installed just fine. Erik
AC_DEFUNs are unserquoted in openldap.m4. I'll attach my patches.
Created attachment 74175 [details, diff] Fixes underquoted AC_DEFUNs
Created attachment 74176 [details, diff] Patch on ebuild to apply AC_DEFUN patch.
could you please do patches for 2.1.30 as well?
Created attachment 74177 [details, diff] patch for 2.1.30-r6 ebuild
(In reply to comment #7) > could you please do patches for 2.1.30 as well? Do you need them for all the 2.1.30 versions, or is one for r6 enough?
r6 is fine thanks.
ah, I didn't realize the same autoconf snipped applied ;)
(In reply to comment #11) > ah, I didn't realize the same autoconf snipped applied > ;) Ya. I was a little confused for 2.2.28 too. It builds both 2.2.28 and 2.1.30.
*** Bug 115872 has been marked as a duplicate of this bug. ***
What is the solution for now? I need to have a working computer... I need to finish my "emerge -DuN world" as fast as possible. I don't have time to do strange things with overlays, should I mask the new version (in /etc/portage/package.mask) until this is fixed?
Bump. Can this be merged so we can close this bug?
fixed in cvs