Overview
Features
Download
Documentation
Community
Add-Ons & Services

poco 1.3.3 - unable to build SSL

Please post support and help requests here.

poco 1.3.3 - unable to build SSL

Postby balonik » 08 Oct 2008, 14:09

I am running Ubuntu 8.04. Downloaded poco-1.3.3-all.tar.gz, extracted, configure as ./configure --omit=Data .. then try to make results in errors in SSL section

errors are:

^In file included from include/Poco/Net/X509Certificate.h:44,
from include/Poco/Net/VerificationErrorArgs.h:44,
from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/Context.h:45:25: error: openssl/ssl.h: No such file or directory
In file included from include/Poco/Net/X509Certificate.h:44,
from include/Poco/Net/VerificationErrorArgs.h:44,
from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/Context.h:59: error: ‘SSL_VERIFY_NONE’ was not declared in this scope
include/Poco/Net/Context.h:60: error: ‘SSL_VERIFY_PEER’ was not declared in this scope
include/Poco/Net/Context.h:61: error: ‘SSL_VERIFY_FAIL_IF_NO_PEER_CERT’ was not declared in this scope
include/Poco/Net/Context.h:62: error: ‘SSL_VERIFY_CLIENT_ONCE’ was not declared in this scope
include/Poco/Net/Context.h:84: error: ISO C++ forbids declaration of ‘SSL_CTX’ with no type
include/Poco/Net/Context.h:84: error: expected ‘;’ before ‘*’ token
include/Poco/Net/Context.h:94: error: ISO C++ forbids declaration of ‘SSL_CTX’ with no type
include/Poco/Net/Context.h:94: error: expected ‘;’ before ‘*’ token
include/Poco/Net/Context.h:103: error: expected initializer before ‘*’ token
In file included from include/Poco/Net/VerificationErrorArgs.h:44,
from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/X509Certificate.h:63: error: expected `)' before ‘*’ token
include/Poco/Net/X509Certificate.h:81: error: ISO C++ forbids declaration of ‘X509’ with no type
include/Poco/Net/X509Certificate.h:81: error: expected ‘;’ before ‘*’ token
include/Poco/Net/X509Certificate.h:96: error: ISO C++ forbids declaration of ‘X509’ with no type
include/Poco/Net/X509Certificate.h:96: error: expected ‘;’ before ‘*’ token
include/Poco/Net/X509Certificate.h:116: error: expected initializer before ‘*’ token
make[1]: *** [/home/me/diplomovka/poco/NetSSL_OpenSSL/obj/Linux/i686/debug_shared/AcceptCertificateHandler.o] Error 1
make[1]: Leaving directory `/home/me/diplomovka/poco/NetSSL_OpenSSL'
make: *** [NetSSL_OpenSSL-libexec] Error 2^
balonik
 
Posts: 1
Joined: 08 Oct 2008, 13:13

Re: poco 1.3.3 - unable to build SSL

Postby guenter » 08 Oct 2008, 14:40

NetSSL_OpenSSL requires (as its name implies) OpenSSL, which can be installed with
Code: Select all

apt-get install openssl libssl-dev


guenter
 
Posts: 1135
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: poco 1.3.3 - unable to build SSL

Postby ian.harrold » 13 Oct 2008, 20:49

Or ... incase you need to cross compile for another processor or just feel like compiling the OpenSSL library your self you can do that aswell.
wget http://www.openssl.org/source/openssl-0.9.8i.tar.gz

extract the file to a temp directory... like"~/Libraries" directory.

Now config the library and make it [note, if you are cross compiling you'll need to tweek the config and generated make file]:

./Config

Make it now

make

Now install it

^sudo chown -R /usr/local
make install
sudo chown -R root /usr/local^

ian.harrold
 
Posts: 3
Joined: 30 Sep 2008, 18:42
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron