Created attachment 315131 [details] build log Emerging openldap fails in the compilation phase: /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CO NNECTIONLESS -DLDAP_LIBRARY -c utf-8.c libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c utf-8.c -fPIC -DPIC -o .libs/utf-8.o libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c dnssrv.c -o dnssrv.o >/dev/null 2>&1 libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c utf-8.c -o utf-8.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CO NNECTIONLESS -DLDAP_LIBRARY -c utf-8-conv.c libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c utf-8-conv.c -fPIC -DPIC -o .libs/utf-8-conv.o libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c schema.c -o schema.o >/dev/null 2>&1 libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c utf-8-conv.c -o utf-8-conv.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CO NNECTIONLESS -DLDAP_LIBRARY -c tls2.c /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls_o.c libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls2.c -fPIC -DPIC -o .libs/tls2.o libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls_o.c -fPIC -DPIC -o .libs/tls_o.o libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls_o.c -o tls_o.o >/dev/null 2>&1 /bin/sh ../../libtool --mode=compile x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls_g.c libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls_g.c -fPIC -DPIC -o .libs/tls_g.o tls_g.c:46:20: fatal error: gcrypt.h: No such file or directory compilation terminated. make[2]: *** [tls_g.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: compile: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -D_GNU_SOURCE -I../../include -I../../include -I/usr/include/db4.8 -DLDAP_CONNECTIONLESS -DLDAP_LIBRARY -c tls2.c -o tls2.o >/dev/null 2>&1 make[2]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.30/work/openldap-2.4.30/libraries/libldap' make[1]: *** [all-common] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-nds/openldap-2.4.30/work/openldap-2.4.30/libraries' make: *** [all-common] Error 1 emake failed * ERROR: net-nds/openldap-2.4.30 failed (compile phase): * emake failed * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 3678: Called die * The specific snippet of code: * emake CC="${CC}" AR="${AR}" || die "emake failed"; * * If you need support, post the output of 'emerge --info =net-nds/openldap-2.4.30', * the complete build log and the output of 'emerge -pqv =net-nds/openldap-2.4.30'. /usr/lib64/portage/bin/isolated-functions.sh: line 214: wait: `emake failed': not a pid or valid job spec * The complete build log is located at '/var/tmp/portage/net-nds/openldap-2.4.30/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-nds/openldap-2.4.30/temp/environment'. * S: '/var/tmp/portage/net-nds/openldap-2.4.30/work/openldap-2.4.30'
Created attachment 315133 [details] emerge --info
Created attachment 315135 [details] emerge -pkv
Created attachment 315137 [details] environment
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.1 Timestamp of tree: Tue, 12 Jun 2012 15:15:01 +0000 app-shells/bash: 4.2_p20 dev-lang/python: 3.2.3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.6 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="-march=core2 -O2 -pipe" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="es_ES.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="es ja" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl acpi alsa amd64 bash-completion berkdb bzip2 cdda cdparanoia cdr cjk cli cracklib crypt css cxx dga directfb dri dvd dvdr encode exif ffmpeg flac fontconfig fortran ftp gdbm gif gnutls gpm gsm gzip hddtemp hscolour iconv idn ieee1394 imap ipv6 jabber javascript jingle jpeg jpeg2k latex lcms ldap lm_sensors lzma lzo maildir matroska memlimit migemo mime mmx modules mp3 mp4 mpeg mplayer mudflap multilib ncurses nls nptl odbc offensive ogg openmp pam pcmcia pcre pdf png pppd readline rss sasl scanner sdl session smp sockets speex sse sse2 ssl svg symlink syslog szip tcpd theora threads tiff truetype unicode usb vim-syntax vorbis xattr xmpp xorg xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es ja" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
This is most likely an effect of the (not quite) recent gnutls[nettle].
I removed the gnutls USE flag from make.conf and now openldap builds OK. I also upgraded my kernel to 3.3.8 before building openldap, so maybe this had an effect too (I modified some cryptography related kernel options, but I don't remember which of them, and I removed the old sources and .config, so I can't know, sorry).
got the same error looks like portage tries to install openldap-2.4.30 before dev-libs/libgcrypt --- openldap-2.4.30.ebuild.org 2012-09-13 19:33:22.000000000 +0000 +++ openldap-2.4.30.ebuild.new 2012-09-13 19:34:06.000000000 +0000 @@ -33,7 +33,7 @@ RDEPEND="sys-libs/ncurses icu? ( dev-libs/icu ) tcpd? ( sys-apps/tcp-wrappers ) ssl? ( !gnutls? ( dev-libs/openssl ) - gnutls? ( net-libs/gnutls ) ) + gnutls? ( net-libs/gnutls dev-libs/libgcrypt ) ) sasl? ( dev-libs/cyrus-sasl ) !minimal? ( odbc? ( !iodbc? ( dev-db/unixODBC )
@comment 7: due to specifics of gnutls[nettle], that most likely an incorrect solution.
(In reply to comment #8) > @comment 7: due to specifics of gnutls[nettle], that most likely an > incorrect solution. as the error said: "tls_g.c:46:20: fatal error: gcrypt.h: No such file or directory" and after googeling i find out that gcrypt.h was a part of dev-libs/libgcrypt. I tried reemerge openldap after dev-libs/libgcrypt was emerge, and it worked. that in combination that other (2.4.31) ebuilds had the row gnutls? ( net-libs/gnutls dev-libs/libgcrypt ) ) its looked like the builder fo the openldap-2.4.30.ebuild just missed dev-libs/libgcrypt
*** Bug 438838 has been marked as a duplicate of this bug. ***
Seeing as how the dep is in there for 2.4.31 I think it was just missed. What would it take to get this change added as 2.4.30-r1 (and hopefully stabilized quickly)?
Fixed in 2.4.30