configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***

Darren Tucker dtucker at zip.com.au
Sun May 15 19:31:49 EST 2011


On Tue, May 10, 2011 at 9:26 AM, Darren Tucker <dtucker at zip.com.au> wrote:
> On Tue, May 10, 2011 at 6:18 AM, abdul jabbar <abduljabbar.vja at gmail.com> wrote:
> [...]
>>  *configure: error: *** Can't find recent OpenSSL libcrypto (see config.log
>> for details) ****
>
> What did  you find when you looking in config.log for details?

(log supplied offline)  The interesting bits are below, but it looks
like you're trying to build a 64 bit binary against a 32 bit library
(I don't know if centos does anything cute with 64 bit libraries like
stick them in a lib64).  The functions __umoddi3 and friends are
usually provided by libgcc.

My suggestions:
 - tell configure to build a 32 bit binary (./configure --with-cflags=-m32)
 - check that your compiler is installed properly (in particular, that
libgcc.a exists and matches the version of gcc you're trying to use).
 - if you have a lib64, try telling configure to use it (./configure
--with-ldflags=-L/path/to/lib64).

configure:17548: gcc -o conftest -g -O2 -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign
-fno-strict-aliasing -fno-builtin-memset -fstack-protector-all
-std=gnu99 -I/usr/local/ssl/include  -L/usr/local/ssl/lib
-fstack-protector-all conftest.c /usr/lib/libcrypto.a -ldl -ldl -lutil
-lz -lnsl  >&5
/usr/bin/ld: warning: i386 architecture of input file
`/usr/lib/libcrypto.a(rand_lib.o)' is incompatible with i386:x86-64
output
[repeated many times]
/usr/lib/libcrypto.a(bn_word.o): In function `BN_mod_word':
(.text+0x86): undefined reference to `__umoddi3'
/usr/lib/libcrypto.a(bn_asm.o): In function `bn_div_words':
(.text+0x4e2): undefined reference to `__udivdi3'
/usr/lib/libcrypto.a(bn_div.o): In function `BN_div':
(.text+0x329): undefined reference to `__udivdi3'
/usr/lib/libcrypto.a(bn_div.o): In function `BN_div':
(.text+0x7a6): undefined reference to `__udivdi3'

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list