Discussion:
[Openvpn-users] configure: error: OpenSSL Crypto headers not found
fxper
2004-09-21 17:23:04 UTC
Permalink
I wasn't able to find a suitable answer in the
archives, but looks like I'm not alone in having this
problem.

My configure breaks with "configure: error: OpenSSL
Crypto headers not found"

This occured on Debian, both when I had the deb
openssl package, and also when I removed that package
and installed openssl from source.

I notice that there is a way to tell ./configure where
the headers are, with the ./configure
--with-ssl-headers= command, and I've tried:
./configure
--with-ssl-headers=/root/openssl-0.9.7d/crypto/
and
./configure
--with-ssl-headers=/usr/local/ssl/include/openssl/

but neither worked. How can I figure out where these
headers are, and if I have them, and where to get them
if not?

Thanks!



_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
Dick St.Peters
2004-09-21 17:43:16 UTC
Permalink
Post by fxper
My configure breaks with "configure: error: OpenSSL
Crypto headers not found"
This occured on Debian, both when I had the deb
openssl package, and also when I removed that package
and installed openssl from source.
I notice that there is a way to tell ./configure where
the headers are, with the ./configure
./configure
--with-ssl-headers=/root/openssl-0.9.7d/crypto/
and
./configure
--with-ssl-headers=/usr/local/ssl/include/openssl/
but neither worked. How can I figure out where these
headers are, and if I have them, and where to get them
if not?
If you're running into the same problem I did, configure is misleading
you about what the real problem is. Try

export LDFLAGS="-lkrb5"
./configure

If that still doesn't work, find the actual test that configure runs
(look in config.log), run the steps manually, and work backwards to
find what it's looking for.

--
Dick St.Peters, ***@NetHeaven.com
Gatekeeper, NetHeaven, Saratoga Springs, NY
fxper
2004-09-22 01:06:11 UTC
Permalink
Post by Dick St.Peters
If you're running into the same problem I did,
configure is misleading
you about what the real problem is. Try
export LDFLAGS="-lkrb5"
./configure
That actually made it worse. After I set it back to
"", I did get a bit farther after looking in the
config.log though.

If I do: ./configure
--with-ssl-headers=/usr/local/ssl/include/ it gets
past that test, but then breaks on the next one.

configure: checking for OpenSSL Crypto Library and
Header files...
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking for EVP_CIPHER_CTX_init in -lcrypto... no
configure: error: OpenSSL Crypto library not found.

in config.log i have:
configure:8232: checking for openssl/evp.h
configure:8239: result: yes
configure:8244: checking for EVP_CIPHER_CTX_init in
-lcrypto
configure:8275: gcc -o conftest -g -O2
-I/usr/local/ssl/include/ -I. conftest.c -lcrypto
-llzo >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:8278: $? = 1
configure: failed program was:
| #line 8251 "configure"
<snip>

But I don't know what I need to do to get -lcrypto
found.

ideas?

Thanks!



_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
fxper
2004-09-22 18:30:02 UTC
Permalink
Aha. using ./configure
--with-ssl-headers=/usr/local/ssl/include/
--with-ssl-lib=/usr/local/ssl/lib/

fixed it.

Thanks all.
Do you have OpenSSL installed properly? Are there
any files
named /usr/local/lib/libcrypto* ?
On Tue, Sep 21, 2004 at 10:27:14PM -0700, fxper
On Tue, Sep 21, 2004 at 08:05:34PM -0700, fxper
Post by fxper
configure:8232: checking for openssl/evp.h
configure:8239: result: yes
configure:8244: checking for
EVP_CIPHER_CTX_init
in
Post by fxper
-lcrypto
configure:8275: gcc -o conftest -g -O2
-I/usr/local/ssl/include/ -I. conftest.c
-lcrypto
Post by fxper
-llzo >&5
/usr/bin/ld: cannot find -lcrypto
Assuming that you have the OpenSSL libraries
installed in /usr/local,
something like this?
CFLAGS="-L/usr/local/lib" ./configure --xxx
--yyy
[...]
Or maybe that should be "LDFLAGS=..."
Tried that...
configure:8244: checking for EVP_CIPHER_CTX_init
in
-lcrypto
configure:8275: gcc -o conftest -g -O2
-I/usr/local/ssl/include/ -I. -L/usr/local/lib
conftest.c -lcrypto -llzo >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:8278: $? = 1
| #line 8251 "configure"
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other
providers!
http://promotions.yahoo.com/new_mail
--
Ed Ravin | "The law, in its majestic
equality, forbids the rich as
| well as the poor to sleep under
bridges, to beg in the
panix.com | --Anatole France,
Le Lys Rouge [1894]
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

Loading...