net-misc/openssh-4.1_p1 build fails at the configure stage. Reproducible: Always Steps to Reproduce: 1.emerge -u openssh 2. 3. Actual Results: Calculating world dependencies ...done! >>> emerge (1 of 4) net-misc/openssh-4.1_p1 to / >>> md5 files ;-) openssh-4.1_p1.ebuild >>> md5 files ;-) openssh-3.9_p1-r2.ebuild >>> md5 files ;-) openssh-4.0_p1-r1.ebuild >>> md5 files ;-) openssh-3.8.1_p1-r1.ebuild >>> md5 files ;-) files/openssh-3.9_p1-fix_suid.patch.bz2 >>> md5 files ;-) files/digest-openssh-4.1_p1 >>> md5 files ;-) files/openssh-3.9_p1-pamfix.patch.bz2 >>> md5 files ;-) files/sshd.pam >>> md5 files ;-) files/sshd.rc6 >>> md5 files ;-) files/openssh-3.9_p1-chroot.patch >>> md5 files ;-) files/digest-openssh-4.0_p1-r1 >>> md5 files ;-) files/openssh-3.9_p1-configure-openct.patch >>> md5 files ;-) files/openssh-3.9_p1-infoleak.patch >>> md5 files ;-) files/openssh-3.9_p1-terminal_restore.patch.bz2 >>> md5 files ;-) files/openssh-4.0_p1-sftplogging-1.2-gentoo.patch.bz2 >>> md5 files ;-) files/openssh-3.9_p1-kerberos-detection.patch >>> md5 files ;-) files/digest-openssh-3.9_p1-r2 >>> md5 files ;-) files/sshd.pam_include >>> md5 files ;-) files/openssh-4.0_p1-smartcard-ldap-happy.patch >>> md5 files ;-) files/digest-openssh-3.8.1_p1-r1 >>> md5 files ;-) files/openssh-3.5_p1-gentoo-sshd-gcc3.patch.bz2 >>> md5 files ;-) files/openssh-3.7.1_p1-selinux.diff.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-chroot.patch.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-kerberos.patch.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-largekey.patch.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-opensc.patch.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-resolv_functions.patch.bz2 >>> md5 files ;-) files/openssh-3.8.1_p1-skey.patch.bz2 >>> md5 files ;-) files/openssh-3.8_p1-kerberos.patch.bz2 >>> md5 files ;-) files/openssh-3.8_p1-chroot.patch.bz2 >>> md5 files ;-) files/openssh-3.9_p1-sftplogging-1.2-gentoo.patch.bz2 >>> md5 files ;-) files/openssh-3.8_p1-resolv_functions.patch.bz2 >>> md5 files ;-) files/openssh-3.8_p1-skey.patch.bz2 >>> md5 files ;-) files/openssh-3.9_p1-largekey.patch.bz2 >>> md5 files ;-) files/openssh-3.9_p1-opensc.patch.bz2 >>> md5 files ;-) files/openssh-3.9_p1-selinux.diff.bz2 >>> md5 files ;-) files/openssh-3.9_p1-skey.patch.bz2 >>> md5 src_uri ;-) openssh-4.1p1.tar.gz >>> md5 src_uri ;-) openssh-lpk-4.0p1-0.3.4.patch >>> Unpacking source... >>> Unpacking openssh-4.1p1.tar.gz to /var/tmp/portage/openssh-4.1_p1/work * Applying openssh-3.9_p1-kerberos-detection.patch ... [ ok ] * Applying openssh-lpk-4.0p1-0.3.4.patch ... [ ok ] >>> Source unpacked. * econf: updating openssh-4.1p1/config.guess with /usr/share/gnuconfig/config.guess * econf: updating openssh-4.1p1/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu --with-ldflags= -lldap --disable-strip --sysconfdir=/etc/ssh --libexecdir=/usr/lib/misc --datadir=/usr/share/openssh --disable-suid-ssh --with-privsep-path=/var/empty --with-privsep-user=sshd --with-md5-passwords --without-libedit --without-kerberos5 --without-tcp-wrappers --without-skey --without-opensc --with-pam --with-ipv4-default checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking whether byte ordering is bigendian... no checking for gawk... gawk checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for a BSD-compatible install... /bin/install -c checking for ar... /usr/bin/ar checking for cat... /bin/cat checking for kill... /bin/kill checking for perl5... no checking for perl... /usr/bin/perl checking for sed... /bin/sed checking for ent... no checking for bash... /bin/bash checking for ksh... (cached) /bin/bash checking for sh... (cached) /bin/bash checking for sh... /bin/sh checking for groupadd... /usr/sbin/groupadd checking for useradd... /usr/sbin/useradd checking for pkgmk... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for _LARGE_FILES value needed for large files... no checking for login... /bin/login checking for passwd... /bin/passwd checking for inline... inline checking compiler and flags for sanity... no configure: error: *** compiler cannot create working executables, check config.log *** !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/openssh-4.1_p1/work/openssh-4.1p1/config.log !!! ERROR: net-misc/openssh-4.1_p1 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: Normally update/install openssh Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r8 i686) ================================================================= System uname: 2.6.11-gentoo-r8 i686 AMD Sempron(TM) 2500+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 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.5 sys-devel/binutils: 2.16 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -mfpmath=sse -ftracer -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -mfpmath=sse -ftracer -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://distfiles.transfer.kg ftp://mtv.kg http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LANG="ru_RU.koi8r" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.kyrnet.kg/gentoo-portage" USE="3dnow 3dnowex aac acpi alsa arts avi berkdb bitmap-fonts bzlib crypt cups dga divx4linux fbcon ffmpeg flac gd gdbm gif gpm iconv icq imap java jpeg kde kdeenablefinal ldap lesstif mad maildir mmx mmx2 mmxext mozilla mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl pam png qt quicktime readline samba shared sharedmem snmp spell sse sse2 ssl svga theora tiff truetype truetype-fonts type1-fonts unicode userlocales vidix vorbis win32codecs x86 xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Created attachment 60158 [details] config.log Attached config.log.
Got a different one: checking for dlopen in -ldl... yes checking for pam_set_item in -lpam... yes checking for pam_getenvlist... yes checking for pam_putenv... yes checking whether pam_strerror takes only one argument... no checking OpenSSL header version... 90707f (OpenSSL 0.9.7g 11 Apr 2005) checking OpenSSL library version... 90705f (OpenSSL 0.9.7e 25 Oct 2004) checking whether OpenSSL's headers match the library... no configure: error: Your OpenSSL headers do not match your library. Check config.log for details. Also see contrib/findssl.sh for help identifying header/library mismatches. !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/openssh-4.1_p1/work/openssh-4.1p1/config.log !!! ERROR: net-misc/openssh-4.1_p1 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message.
ebuild unpack, compile, install, qmerge work very fine BUT this way openssh-lpk-4.0p1-0.3.4.patch is not applied :( ( use flag ldap not detected by calling ebuild directly ;) ) bug in portage? and is this patch really needed?
So far thats more than 1 issue, would it be smart to mask this build for a little?
comment #2 is unrelated to this bug ... your openssl headers/libs are screwed up, i'd suggest you fix them comment #1 fails because of ldap: configure:6510: i686-pc-linux-gnu-gcc -o conftest -march=athlon-xp -O3 -mfpmath=sse -ftracer -fforce-addr -fomit-frame-pointer -fprefetch-loop-arrays -maccumulate-outgoing-args -pipe -DWITH_LDAP_PUBKEY -Wall -Wpointer-arith -Wno-uninitialized -lldap conftest.c >&5 conftest.c: In function `main': conftest.c:21: warning: implicit declaration of function `exit' /usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../libldap.so: undefined reference to `ber_memalloc_x' the ebuild appends -llber, but it seems it's lost at that test imo, if libldap.so needs liblber but doesnt list it in its NEEDED, then ldap is broken, not openssh
i dont use ldap myself, but can someone post the output of this: readelf -d /usr/lib/libldap.so | grep NEEDED
LDAP would be useful for me. # readelf -d /usr/lib/libldap.so | grep NEEDED 0x00000001 (NEEDED) Shared library: [liblber.so.2] 0x00000001 (NEEDED) Shared library: [libresolv.so.2] 0x00000001 (NEEDED) Shared library: [libssl.so.0.9.7] 0x00000001 (NEEDED) Shared library: [libcrypto.so.0.9.7] 0x00000001 (NEEDED) Shared library: [libc.so.6]
hmm, well i say it's still a bug in ldap :) if doing `gcc test.c -ldap` fails with that error message, libldap.so is bjorked
This is bug #93074 striking again. for a workaround, emerge the new openldap-2.2* twice
thanks Robin *** This bug has been marked as a duplicate of 93074 ***
*** Bug 95026 has been marked as a duplicate of this bug. ***
*** Bug 95145 has been marked as a duplicate of this bug. ***
*** Bug 95175 has been marked as a duplicate of this bug. ***
*** Bug 95198 has been marked as a duplicate of this bug. ***
*** Bug 95332 has been marked as a duplicate of this bug. ***
*** Bug 95704 has been marked as a duplicate of this bug. ***
*** Bug 96788 has been marked as a duplicate of this bug. ***
*** Bug 96984 has been marked as a duplicate of this bug. ***
*** Bug 101284 has been marked as a duplicate of this bug. ***
*** Bug 101625 has been marked as a duplicate of this bug. ***
*** Bug 101818 has been marked as a duplicate of this bug. ***
*** Bug 101868 has been marked as a duplicate of this bug. ***
*** Bug 119427 has been marked as a duplicate of this bug. ***
*** Bug 121319 has been marked as a duplicate of this bug. ***
*** Bug 121419 has been marked as a duplicate of this bug. ***
*** Bug 121433 has been marked as a duplicate of this bug. ***
*** Bug 121452 has been marked as a duplicate of this bug. ***
*** Bug 121520 has been marked as a duplicate of this bug. ***
*** Bug 121698 has been marked as a duplicate of this bug. ***
*** Bug 121608 has been marked as a duplicate of this bug. ***
*** Bug 121780 has been marked as a duplicate of this bug. ***
*** Bug 121823 has been marked as a duplicate of this bug. ***
*** Bug 121864 has been marked as a duplicate of this bug. ***
*** Bug 121948 has been marked as a duplicate of this bug. ***
*** Bug 122116 has been marked as a duplicate of this bug. ***
*** Bug 122341 has been marked as a duplicate of this bug. ***
*** Bug 122750 has been marked as a duplicate of this bug. ***
I removed the ldap USE flag and I'm still getting the error.
*** Bug 123273 has been marked as a duplicate of this bug. ***
*** Bug 123672 has been marked as a duplicate of this bug. ***
*** Bug 123673 has been marked as a duplicate of this bug. ***
*** Bug 125683 has been marked as a duplicate of this bug. ***
*** Bug 127381 has been marked as a duplicate of this bug. ***
*** Bug 131245 has been marked as a duplicate of this bug. ***
*** Bug 132406 has been marked as a duplicate of this bug. ***