Gentoo Archives: gentoo-alt

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

Replies