Gentoo Archives: gentoo-alt

From: Nicolas Pinto <nicolas.pinto@×××××.com>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Re: Gentoo Prefix: getting around the "Your OpenSSL headers do not match your library" configure error.
Date: Thu, 08 Dec 2011 06:05:11
Message-Id: CADo_NTySN0h7dnz4r+m8jOBUN8WeRRNjyBX4WMBxruPMvOJ=JA@mail.gmail.com
In Reply to: [gentoo-alt] Gentoo Prefix: getting around the "Your OpenSSL headers do not match your library" configure error. by Nicolas Pinto
1 I could not reproduce this issue for a while and I finally traced it
2 back... gcc compiled with USE=vanilla caused this problem.
3
4
5 On Thu, Oct 20, 2011 at 10:01 PM, Nicolas Pinto <nicolas.pinto@×××××.com> wrote:
6 > Hello,
7 >
8 > I experienced some issues when trying to emerge openssh on a Fedora 12 today:
9 >
10 > $ emerge openssh
11 >
12 > ...
13 >>>> Emerging (1 of 1) net-misc/openssh-5.9_p1-r3
14 > ...
15 > checking OpenSSL header version... 1000005f (OpenSSL 1.0.0e 6 Sep 2011)
16 > checking OpenSSL library version... 10000003 (OpenSSL 1.0.0b-fips 16 Nov 2010)
17 > checking whether OpenSSL's headers match the library... no
18 > configure: error: Your OpenSSL headers do not match your
19 > library. Check config.log for details.
20 > ...
21 >
22 > Investigating the config.log and the linker's search directories
23 > helped identify the problem: the linker preferred the librairies in
24 > /usr/lib64 instead of $EPREFIX/usr/lib, even when forcing
25 > LDFLAGS="-Wl,-L$EPREFIX/usr/lib".
26 >
27 > I could not figure out the exact details but found another work around:
28 > $ LDFLAGS="-l:$EPREFIX/usr/lib/libssl.so
29 > -l:$EPREFIX/usr/lib/libcrypto.so" emerge openssh
30 > (basically forcing the linker to use specific files)
31 >
32 > Just reporting, in case this helps someone.
33 >
34 > Regards,
35 >
36 > Nicolas
37 >
38 >
39 >
40 >
41 >
42 >
43 > $ emerge --info =net-misc/openssh-5.9_p1-r3
44 > Portage 2.2.01.19478-prefix (prefix/linux/amd64, gcc-4.2.4,
45 > unavailable, 2.6.32.26-175.fc12.x86_64 x86_64)
46 > =================================================================
47 >                        System Settings
48 > =================================================================
49 > System uname: Linux-2.6.32.26-175.fc12.x86_64-x86_64-Intel-R-_Xeon-R-_CPU_W5590_@_3.33GHz-with-fedora-12-Constantine
50 > Timestamp of tree: Fri, 21 Oct 2011 01:09:42 +0000
51 > ccache version 2.4 [disabled]
52 > app-shells/bash:      4.2_p10
53 > dev-lang/python:      2.7.2
54 > dev-util/pkgconfig:   0.25-r2
55 > sys-devel/autoconf:   2.68
56 > sys-devel/automake:   1.11.1
57 > sys-devel/binutils:   2.21.53.0.2
58 > sys-devel/gcc:        4.2.4-r01.4, 4.5.3-r1
59 > sys-devel/gcc-config: 1.4.1-r00.2
60 > sys-devel/libtool:    2.4-r01.1
61 > sys-devel/make:       3.82
62 > Repositories: gentoo_prefix
63 > Installed sets:
64 > ACCEPT_KEYWORDS="~amd64-linux"
65 > ACCEPT_LICENSE="* -@EULA"
66 > CBUILD="x86_64-pc-linux-gnu"
67 > CFLAGS="-march=native -mtune=generic -O2 -pipe"
68 > CHOST="x86_64-pc-linux-gnu"
69 > CONFIG_PROTECT="/etc"
70 > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf
71 > /etc/portage /etc/revdep-rebuild /etc/terminfo"
72 > CXXFLAGS="-march=native -mtune=generic -O2 -pipe"
73 > DISTDIR="/home/ac/npinto/gentoo/usr/portage/distfiles"
74 > FEATURES="assume-digests binpkg-logs collision-protect distlocks
75 > ebuild-locks fixlafiles news parallel-fetch preserve-libs
76 > protect-owned sfperms strict unknown-features-warn unmerge-logs
77 > unmerge-orphans userfetch"
78 > FFLAGS=""
79 > GENTOO_MIRRORS="http://distfiles.gentoo.org"
80 > LANG="en_US.UTF-8"
81 > LDFLAGS="-Wl,-O1"
82 > MAKEOPTS="-j 17"
83 > PKGDIR="/home/ac/npinto/gentoo/usr/portage/packages"
84 > PORTAGE_CONFIGROOT="/home/ac/npinto/gentoo/"
85 > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
86 > --compress --force --whole-file --delete --stats --timeout=180
87 > --exclude=/distfiles --exclude=/local --exclude=/packages"
88 > PORTAGE_TMPDIR="/home/ac/npinto/gentoo/var/tmp"
89 > PORTDIR="/home/ac/npinto/gentoo/usr/portage"
90 > PORTDIR_OVERLAY=""
91 > SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
92 > USE="amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv
93 > ipv6 mmx modules mudflap ncurses nls nptl nptlonly openmp pcre pppd
94 > prefix readline session sse sse2 sse4 ssl sysfs tcpd unicode xorg
95 > zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106
96 > cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0
97 > intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
98 > ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty
99 > extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul
100 > mulaw multi null plug rate route share shm softvol"
101 > APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
102 > authn_dbm authn_default authn_file authz_dbm authz_default
103 > authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
104 > cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
105 > file_cache filter headers include info log_config logio mem_cache mime
106 > mime_magic negotiation rewrite setenvif speling status unique_id
107 > userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan
108 > stage tables krita karbon braindump" CAMERAS="ptp2"
109 > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
110 > ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18
111 > garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
112 > oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
113 > tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"
114 > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
115 > ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18"
116 > USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic
117 > nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy
118 > v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset
119 > ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat
120 > logmark ipmark dhcpmac delude chaos account"
121 > Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
122 > LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
123 > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
124
125
126
127 --
128 Nicolas Pinto
129 http://web.mit.edu/pinto

Replies