LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   OpenSSL Crypto headers not found. (https://www.linuxquestions.org/questions/linux-software-2/openssl-crypto-headers-not-found-204489/)

jmoulinier 07-13-2004 09:48 AM

OpenSSL Crypto headers not found.
 
I'm trying to configure OperVpn but an error appears : OpenSSL Crypto headers not found.. I installed ssl again but i can't fix the problem.



Thanks!!!

ONikosEimai 09-30-2004 06:32 AM

Re: OpenSSL Crypto headers not found.
 
Quote:

Originally posted by jmoulinier
I'm trying to configure OperVpn but an error appears : OpenSSL Crypto headers not found.. I installed ssl again but i can't fix the problem.
I got the same problem with you, when I run ./configure I get this output
Code:

configure: checking for OpenSSL Crypto Library and Header files...
checking openssl/evp.h usability... no
checking openssl/evp.h presence... no
checking for openssl/evp.h... no
configure: error: OpenSSL Crypto headers not found

evp.h exists at /usr/local/ssl/include/openssl

I also tried
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/openssl/
but nothing better.

I've google it and found that:
Code:

export LDFLAGS="-lkrb5"
./configure

and nothing happened again :(

I got OpenSSL 0.9.6c but OpenVpn 2.0 betta 11 requires version 0.9.5 or higher.
I hope someone who knows something more, make a hint...

ONikosEimai 10-01-2004 09:49 AM

Finaly, I tried
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/
and the problem passed but stopped with another error of
Code:

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.

so I tried
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/ --disable-crypto
and finished normally. With this action, I suppose that I bypassed the packet encryption (--disable-crypto Do not compile OpenSSL crypto support) and I hope it's gonna work :confused:
I did
Code:

make
make install

with success.

stickybit 10-21-2004 02:53 PM

Hi, i am not sure if the answer has been answered yet.. and i came across the same question in multiple bbs's/ forums (as i had the same problem).
Then i remembered that i can just install the libssl-dev package which carries the header files which break the .configure..
So. installed the dev package ran the config script again (make; make install and openVPN installed without further problems..

ONikosEimai 10-22-2004 12:59 AM

Quote:

Originally posted by stickybit
Hi, i am not sure if the answer has been answered yet.. and i came across the same question in multiple bbs's/ forums (as i had the same problem).
Then i remembered that i can just install the libssl-dev package which carries the header files which break the .configure..
So. installed the dev package ran the config script again (make; make install and openVPN installed without further problems..

Maybe you are right but
when I had those kind of problems, I've had already OpenSSL 0.9.6c [engine] 21 dec 2001. I didn't try to install a newer version.

MarvTowel 01-27-2006 10:49 PM

SuSE 10 Fix
 
I used YaST and searched for ssl. I installed the only ssl developement package found and tada, problem solved.

kd2323 02-04-2008 05:51 PM

I ran into this same problem on ubuntu and to fix it I downloaded libssl0.9.8 and libssl-dev and the openvpn installed without a problem.

Tosh2o 03-24-2008 01:00 PM

Successful compilation
 
And another way to compile with no errors not for ubuntu users:
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/ \
--with-ssl-lib=/usr/local/ssl/lib/

Для русских:
Еще один метод компиляции openVPN без ошибок это прописать путь не только к инклудам ssl но и к откомпиленной библиотеке:
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/ \
--with-ssl-lib=/usr/local/ssl/lib/

Если вы ставили ssl в другую папку - исправьте пути!
If you have installed ssl in another directory then you should to replace paths!

issen007 08-27-2008 06:10 AM

I just installed OpenVPN on my OpenSuSE 11 x86_64 installation.
I needed to install libopenssl-devel packed and also zlib-devel packed.
After that then did the ./configure go though without any extra exclude switches.

Cheers
Issen

kd2323 08-30-2008 07:32 AM

I never got it to work
 
Some how I managed to solve the Crypto Headers problem, it's been a while so I can't really remember what I did. When I started this thread OpenVPN was going to be used as a class project and I believe it would have been against the rules to help me with it. I already graduated so it's cool.

In the end when I tried to connect to the server I would never receive the confirmation that it was successful, I also tried OpenSwan but I didn't have much luck with it.

I remember now, I was using Ubuntu at the time and I went into Synaptic and did a search for SSL and downloaded everything that seemed relevant. It was like killing flies with a rocket launcher. Give me time to dive back in to my notes and I will then be of more assistance.

ndedobbeleer 12-11-2008 05:23 AM

I Had the same error and installed the DEV packages and it worked.....



# apt-get install libcurl4-openssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
comerr-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssl-dev zlib1g-dev
Suggested packages:
libcurl3-dbg krb5-doc
The following NEW packages will be installed:
comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev
libssl-dev zlib1g-dev

BaRYaN 04-03-2009 02:30 AM

just update
 
I have CentOS 5.
I'm just update openssl and openssl-devel.

yum install openssl
yum install openssl-devel

After this all its work.

esmith@verizon.net 12-08-2009 12:10 PM

OpenSSL
 
Quote:

Originally Posted by ONikosEimai (Post 1208850)
Finaly, I tried
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/
and the problem passed but stopped with another error of
Code:

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.

so I tried
Code:

./configure --with-ssl-headers=/usr/local/ssl/include/ --disable-crypto
and finished normally. With this action, I suppose that I bypassed the packet encryption (--disable-crypto Do not compile OpenSSL crypto support) and I hope it's gonna work :confused:
I did
Code:

make
make install

with success.

I got past all the configure stuff, but when I tried the make I got
root@sse12 # make
make all-recursive
make[1]: Entering directory `/export/tmp/VPN/openvpn-2.1_rc22'
Making all in images
make[2]: Entering directory `/export/tmp/VPN/openvpn-2.1_rc22/images'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/tmp/VPN/openvpn-2.1_rc22/images'
Making all in service-win32
make[2]: Entering directory `/export/tmp/VPN/openvpn-2.1_rc22/service-win32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/tmp/VPN/openvpn-2.1_rc22/service-win32'
Making all in install-win32
make[2]: Entering directory `/export/tmp/VPN/openvpn-2.1_rc22/install-win32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export/tmp/VPN/openvpn-2.1_rc22/install-win32'
make[2]: Entering directory `/export/tmp/VPN/openvpn-2.1_rc22'
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT base64.o -MD
-MP -MF .deps/base64.Tpo -c -o base64.o base64.c
mv -f .deps/base64.Tpo .deps/base64.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT buffer.o -MD
-MP -MF .deps/buffer.Tpo -c -o buffer.o buffer.c
mv -f .deps/buffer.Tpo .deps/buffer.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT crypto.o -MD
-MP -MF .deps/crypto.Tpo -c -o crypto.o crypto.c
mv -f .deps/crypto.Tpo .deps/crypto.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT dhcp.o -MD -
MP -MF .deps/dhcp.Tpo -c -o dhcp.o dhcp.c
mv -f .deps/dhcp.Tpo .deps/dhcp.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT error.o -MD
-MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT event.o -MD
-MP -MF .deps/event.Tpo -c -o event.o event.c
mv -f .deps/event.Tpo .deps/event.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT fdmisc.o -MD
-MP -MF .deps/fdmisc.Tpo -c -o fdmisc.o fdmisc.c
mv -f .deps/fdmisc.Tpo .deps/fdmisc.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT forward.o -M
D -MP -MF .deps/forward.Tpo -c -o forward.o forward.c
mv -f .deps/forward.Tpo .deps/forward.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT fragment.o -
MD -MP -MF .deps/fragment.Tpo -c -o fragment.o fragment.c
mv -f .deps/fragment.Tpo .deps/fragment.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT gremlin.o -M
D -MP -MF .deps/gremlin.Tpo -c -o gremlin.o gremlin.c
mv -f .deps/gremlin.Tpo .deps/gremlin.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT helper.o -MD
-MP -MF .deps/helper.Tpo -c -o helper.o helper.c
mv -f .deps/helper.Tpo .deps/helper.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT lladdr.o -MD
-MP -MF .deps/lladdr.Tpo -c -o lladdr.o lladdr.c
mv -f .deps/lladdr.Tpo .deps/lladdr.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT init.o -MD -
MP -MF .deps/init.Tpo -c -o init.o init.c
mv -f .deps/init.Tpo .deps/init.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT interval.o -
MD -MP -MF .deps/interval.Tpo -c -o interval.o interval.c
mv -f .deps/interval.Tpo .deps/interval.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT list.o -MD -
MP -MF .deps/list.Tpo -c -o list.o list.c
mv -f .deps/list.Tpo .deps/list.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT lzo.o -MD -M
P -MF .deps/lzo.Tpo -c -o lzo.o lzo.c
mv -f .deps/lzo.Tpo .deps/lzo.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT manage.o -MD
-MP -MF .deps/manage.Tpo -c -o manage.o manage.c
mv -f .deps/manage.Tpo .deps/manage.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mbuf.o -MD -
MP -MF .deps/mbuf.Tpo -c -o mbuf.o mbuf.c
mv -f .deps/mbuf.Tpo .deps/mbuf.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT misc.o -MD -
MP -MF .deps/misc.Tpo -c -o misc.o misc.c
mv -f .deps/misc.Tpo .deps/misc.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mroute.o -MD
-MP -MF .deps/mroute.Tpo -c -o mroute.o mroute.c
mv -f .deps/mroute.Tpo .deps/mroute.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mss.o -MD -M
P -MF .deps/mss.Tpo -c -o mss.o mss.c
mv -f .deps/mss.Tpo .deps/mss.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mtcp.o -MD -
MP -MF .deps/mtcp.Tpo -c -o mtcp.o mtcp.c
mv -f .deps/mtcp.Tpo .deps/mtcp.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mtu.o -MD -M
P -MF .deps/mtu.Tpo -c -o mtu.o mtu.c
mv -f .deps/mtu.Tpo .deps/mtu.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT mudp.o -MD -
MP -MF .deps/mudp.Tpo -c -o mudp.o mudp.c
mv -f .deps/mudp.Tpo .deps/mudp.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT multi.o -MD
-MP -MF .deps/multi.Tpo -c -o multi.o multi.c
mv -f .deps/multi.Tpo .deps/multi.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT ntlm.o -MD -
MP -MF .deps/ntlm.Tpo -c -o ntlm.o ntlm.c
mv -f .deps/ntlm.Tpo .deps/ntlm.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT occ.o -MD -M
P -MF .deps/occ.Tpo -c -o occ.o occ.c
mv -f .deps/occ.Tpo .deps/occ.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT pkcs11.o -MD
-MP -MF .deps/pkcs11.Tpo -c -o pkcs11.o pkcs11.c
mv -f .deps/pkcs11.Tpo .deps/pkcs11.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT openvpn.o -M
D -MP -MF .deps/openvpn.Tpo -c -o openvpn.o openvpn.c
mv -f .deps/openvpn.Tpo .deps/openvpn.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT options.o -M
D -MP -MF .deps/options.Tpo -c -o options.o options.c
mv -f .deps/options.Tpo .deps/options.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT otime.o -MD
-MP -MF .deps/otime.Tpo -c -o otime.o otime.c
mv -f .deps/otime.Tpo .deps/otime.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT packet_id.o
-MD -MP -MF .deps/packet_id.Tpo -c -o packet_id.o packet_id.c
mv -f .deps/packet_id.Tpo .deps/packet_id.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT perf.o -MD -
MP -MF .deps/perf.Tpo -c -o perf.o perf.c
mv -f .deps/perf.Tpo .deps/perf.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT pf.o -MD -MP
-MF .deps/pf.Tpo -c -o pf.o pf.c
mv -f .deps/pf.Tpo .deps/pf.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT ping.o -MD -
MP -MF .deps/ping.Tpo -c -o ping.o ping.c
mv -f .deps/ping.Tpo .deps/ping.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT plugin.o -MD
-MP -MF .deps/plugin.Tpo -c -o plugin.o plugin.c
mv -f .deps/plugin.Tpo .deps/plugin.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT pool.o -MD -
MP -MF .deps/pool.Tpo -c -o pool.o pool.c
mv -f .deps/pool.Tpo .deps/pool.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT proto.o -MD
-MP -MF .deps/proto.Tpo -c -o proto.o proto.c
mv -f .deps/proto.Tpo .deps/proto.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT proxy.o -MD
-MP -MF .deps/proxy.Tpo -c -o proxy.o proxy.c
mv -f .deps/proxy.Tpo .deps/proxy.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT ieproxy.o -M
D -MP -MF .deps/ieproxy.Tpo -c -o ieproxy.o ieproxy.c
mv -f .deps/ieproxy.Tpo .deps/ieproxy.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT ps.o -MD -MP
-MF .deps/ps.Tpo -c -o ps.o ps.c
mv -f .deps/ps.Tpo .deps/ps.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT push.o -MD -
MP -MF .deps/push.Tpo -c -o push.o push.c
mv -f .deps/push.Tpo .deps/push.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT reliable.o -
MD -MP -MF .deps/reliable.Tpo -c -o reliable.o reliable.c
mv -f .deps/reliable.Tpo .deps/reliable.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT route.o -MD
-MP -MF .deps/route.Tpo -c -o route.o route.c
mv -f .deps/route.Tpo .deps/route.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT schedule.o -
MD -MP -MF .deps/schedule.Tpo -c -o schedule.o schedule.c
mv -f .deps/schedule.Tpo .deps/schedule.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT session_id.o
-MD -MP -MF .deps/session_id.Tpo -c -o session_id.o session_id.c
mv -f .deps/session_id.Tpo .deps/session_id.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT shaper.o -MD
-MP -MF .deps/shaper.Tpo -c -o shaper.o shaper.c
mv -f .deps/shaper.Tpo .deps/shaper.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT sig.o -MD -M
P -MF .deps/sig.Tpo -c -o sig.o sig.c
mv -f .deps/sig.Tpo .deps/sig.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT socket.o -MD
-MP -MF .deps/socket.Tpo -c -o socket.o socket.c
mv -f .deps/socket.Tpo .deps/socket.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT socks.o -MD
-MP -MF .deps/socks.Tpo -c -o socks.o socks.c
mv -f .deps/socks.Tpo .deps/socks.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT ssl.o -MD -M
P -MF .deps/ssl.Tpo -c -o ssl.o ssl.c
mv -f .deps/ssl.Tpo .deps/ssl.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT status.o -MD
-MP -MF .deps/status.Tpo -c -o status.o status.c
mv -f .deps/status.Tpo .deps/status.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT thread.o -MD
-MP -MF .deps/thread.Tpo -c -o thread.o thread.c
mv -f .deps/thread.Tpo .deps/thread.Po
gcc -DHAVE_CONFIG_H -I. -I/usr/local/ssl/include/ -I. -g -O2 -MT tun.o -MD -M
P -MF .deps/tun.Tpo -c -o tun.o tun.c
tun.c:1380:2: #error I need the symbol TUNNEWPPA from net/if_tun.h
tun.c: In function `open_tun':
tun.c:1442: error: `TUNNEWPPA' undeclared (first use in this function)
tun.c:1442: error: (Each undeclared identifier is reported only once
tun.c:1442: error: for each function it appears in.)
make[2]: *** [tun.o] Error 1
make[2]: Leaving directory `/export/tmp/VPN/openvpn-2.1_rc22'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/tmp/VPN/openvpn-2.1_rc22'
make: *** [all] Error 2

Where is TUNNEWPPA defined?

mrkylekervin 07-29-2010 09:40 AM

recently run into this issue in ubuntu 10.04
 
ok so just get the latest OpenSSL from openssl.net, install it.

Then after that's done, go and configure your openvpn package:

./configure --with-ssl-headers=/usr/local/ssl/include/ --with-ssl-lib=/usr/local/ssl/lib/


you shouldn't receive any openssl errors.

Chaaaaaaaz 12-09-2010 06:24 AM

OpenSSL Crypto Headers/Libs (debian/ubuntu)
 
I had the same problem recently and found that installing the openssl-dev package resolved the issue.

sudo apt-get install openssl-dev

-chaz


All times are GMT -5. The time now is 06:25 PM.