Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181606 - net-misc/openssh-4.5_p1-r1 build fails during config with openssl headers do not match library
Summary: net-misc/openssh-4.5_p1-r1 build fails during config with openssl headers do ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-06-10 20:23 UTC by Will Holland
Modified: 2007-07-09 23:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Log file from the build (build.log,15.16 KB, text/plain)
2007-06-10 21:09 UTC, Will Holland
config log (config.log,979.06 KB, text/plain)
2007-06-10 22:38 UTC, Will Holland
config log (config.log,979.06 KB, text/plain)
2007-06-10 22:39 UTC, Will Holland

Note You need to log in before you can comment on or make changes to this bug.
Description Will Holland 2007-06-10 20:23:46 UTC
I have done an emerge -uDa system, and it is failing on openssh with the following error:
checking OpenSSL header version... 90804f (OpenSSL 0.9.8d 28 Sep 2006)
checking OpenSSL library version... 90800f (OpenSSL 0.9.8 05 Jul 2005)
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/ for help identifying header/library mismatches.

!!! Please attach the following file when filing a report to
!!! /var/tmp/portage/net-misc/openssh-4.5_p1-r1/work/openssh-4.5p1/config.log

!!! ERROR: net-misc/openssh-4.5_p1-r1 failed.
Call stack:, line 1615:   Called dyn_compile, line 972:   Called qa_call 'src_compile', line 44:   Called src_compile
  openssh-4.5_p1-r1.ebuild, line 114:   Called econf '--with-ldflags=' '--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' '--with-ldap' '--without-libedit' '--without-kerberos5' '--with-tcp-wrappers' '--without-selinux' '--without-skey' '--without-opensc' '--with-pam', line 578:   Called die

!!! econf failed

I have unmerged openssl, and then re-emerged it, but had the same issue.  I have even re-booted the machine, but still I have this issue.  I suspect this is a problem with the build (install) of openssl, but I'm not sure.

Reproducible: Always

Steps to Reproduce:
1. emerge openssh

Expected Results:  
Emerged OK

Emerge --info provides:
Portage (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.17-gentoo-r8attempt2 i686)
System uname: 2.6.17-gentoo-r8attempt2 i686 AMD Athlon(tm) Processor
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 03 Jun 2007 13:00:07 +0000
ccache version 2.3 [disabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
CFLAGS="-march=athlon -O2 -pipe"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon -O2 -pipe"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
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 --filter=H_**/files/digest-*"
USE="X aac alsa arts avi berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader doc dri dvd eds emboss encode esd fam firefox fortran gdbm gif gimp gpm gs gtk gvim hal iconv ifp imagemagick imlib ipod ipv6 jpeg jpeg2k kde kipi ldap libg++ mad midi mikmod mp3 mpeg mplayer mudflap ncurses njb nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf pdflib perl png ppds pppd python qt3 qt4 quicktime readline real reflection sdl session spell spl ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xine xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 20:33:39 UTC
> !!! Please attach the following file when filing a report to
> !!! /var/tmp/portage/net-misc/openssh-4.5_p1-r1/work/openssh-4.5p1/config.log

Please, attach the log.
Comment 2 Will Holland 2007-06-10 21:09:40 UTC
Created attachment 121698 [details]
Log file from the build
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 22:06:39 UTC
Nope; attach the config.log, not build log
Comment 4 Will Holland 2007-06-10 22:38:26 UTC
Created attachment 121707 [details]
config log
Comment 5 Will Holland 2007-06-10 22:39:07 UTC
Created attachment 121709 [details]
config log
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-06-10 22:46:36 UTC
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../ undefined reference to `X509_STORE_CTX_get_error'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../ undefined reference to `X509_STORE_set_flags'
/usr/lib/ undefined reference to `EVP_idea_cbc'

Your openldap install is messed up, you should run revdep-rebuild and/or re-emerge openldap for starters.
Comment 7 Will Holland 2007-06-13 23:44:04 UTC
I've run revdep-rebuild, which gives the following:


revdep-rebuild -p
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.

Collecting complete LD_LIBRARY_PATH... done.

Checking dynamic linking consistency...

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.

Dynamic linking on your system is consistent... All done.

So I don't think there's any DLL errors there.

emerge --unmerge openldap
emerge openssh

gives the same error (emerge openssh requires openldap, so it builds that too)
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-06-14 06:22:57 UTC
> Also see contrib/ for help identifying header/library mismatches.

Copy the file from the openssh tarball somewhere, run it like `sh ./` and post the output here. 
Comment 9 Will Holland 2007-07-09 23:10:25 UTC
The results from

I'm archiving off /home/home, and I'll check if things get better tomorrow.

contrib # sh ./
Searching for OpenSSL header files.
which: no locate in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-
0x0090601fL /home/home/src/redhat/BUILD/openssl-0.9.6a/crypto/opensslv.h
0x0090804f /usr/include/openssl/opensslv.h

Searching for OpenSSL shared library files.
which: no locate in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-
0x0090801fL /home/will/.google-earth/
0x0090804fL /usr/lib/
0x0090804fL /usr/lib/
0x0090800fL /usr/NX/lib/
0x0090800fL /usr/NX/lib/

Searching for OpenSSL static library files.
which: no locate in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-
0x0090601fL /home/home/src/redhat/BUILD/openssl-0.9.6a/libcrypto.a
0x0090804fL /usr/lib/libcrypto.a
Comment 10 Will Holland 2007-07-09 23:20:13 UTC
When I look at this there are also some files picked up from within /usr/NX/lib

Removing these fixes the problem.

Thanks for the help.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-07-09 23:27:07 UTC
Thanks for reporting back.