You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Usman Masood <us...@mit.edu> on 2011/08/15 01:13:02 UTC

Make fails with some openssl dependencies

I download the thrift tar and get this error while running make:

 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -I./src -Wall -g -O2 -MT
TSSLSocket.lo -MD -MP -MF .deps/TSSLSocket.Tpo -c
src/transport/TSSLSocket.cpp  -fPIC -DPIC -o .libs/TSSLSocket.o
src/transport/TSSLSocket.cpp:27:25: error: openssl/err.h: No such file or
directory
src/transport/TSSLSocket.cpp:28:26: error: openssl/rand.h: No such file or
directory
src/transport/TSSLSocket.cpp:29:25: error: openssl/ssl.h: No such file or
directory
src/transport/TSSLSocket.cpp:30:28: error: openssl/x509v3.h: No such file or
directory
In file included from src/transport/TSSLSocket.cpp:32:
src/transport/TSSLSocket.h:98: error: ISO C++ forbids declaration of 'SSL'
with no type
src/transport/TSSLSocket.h:98: error: expected ';' before '*' token
src/transport/TSSLSocket.h:239: error: ISO C++ forbids declaration of 'SSL'
with no type
src/transport/TSSLSocket.h:239: error: expected ';' before '*' token
src/transport/TSSLSocket.h:240: error: ISO C++ forbids declaration of
'SSL_CTX' with no type
src/transport/TSSLSocket.h:240: error: expected ';' before '*' token
src/transport/TSSLSocket.h:241: error: expected ';' before 'private'
src/transport/TSSLSocket.h:242: error: ISO C++ forbids declaration of
'SSL_CTX' with no type
src/transport/TSSLSocket.h:242: error: expected ';' before '*' token
src/transport/TSSLSocket.cpp: In constructor
'apache::thrift::transport::SSLContext::SSLContext()':
src/transport/TSSLSocket.cpp:53: error: 'ctx_' was not declared in this
scope
src/transport/TSSLSocket.cpp:53: error: 'TLSv1_method' was not declared in
this scope

Any idea what the issue might be? I tried building from source as well, but
got the same error.

Usman

Re: Make fails with some openssl dependencies

Posted by Niraj Tolia <nt...@maginatics.com>.
Hi Usman,

You are missing the openssl dev package. Install that and you should
be good to go. It should be libssl-dev on an Ubuntu system and
something similar on RHEL/Fedora (maybe openssl-devel?).

Cheers,
Niraj

On Sun, Aug 14, 2011 at 4:13 PM, Usman Masood <us...@mit.edu> wrote:
> I download the thrift tar and get this error while running make:
>
>  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -I./src -Wall -g -O2 -MT
> TSSLSocket.lo -MD -MP -MF .deps/TSSLSocket.Tpo -c
> src/transport/TSSLSocket.cpp  -fPIC -DPIC -o .libs/TSSLSocket.o
> src/transport/TSSLSocket.cpp:27:25: error: openssl/err.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:28:26: error: openssl/rand.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:29:25: error: openssl/ssl.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:30:28: error: openssl/x509v3.h: No such file or
> directory
> In file included from src/transport/TSSLSocket.cpp:32:
> src/transport/TSSLSocket.h:98: error: ISO C++ forbids declaration of 'SSL'
> with no type
> src/transport/TSSLSocket.h:98: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:239: error: ISO C++ forbids declaration of 'SSL'
> with no type
> src/transport/TSSLSocket.h:239: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:240: error: ISO C++ forbids declaration of
> 'SSL_CTX' with no type
> src/transport/TSSLSocket.h:240: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:241: error: expected ';' before 'private'
> src/transport/TSSLSocket.h:242: error: ISO C++ forbids declaration of
> 'SSL_CTX' with no type
> src/transport/TSSLSocket.h:242: error: expected ';' before '*' token
> src/transport/TSSLSocket.cpp: In constructor
> 'apache::thrift::transport::SSLContext::SSLContext()':
> src/transport/TSSLSocket.cpp:53: error: 'ctx_' was not declared in this
> scope
> src/transport/TSSLSocket.cpp:53: error: 'TLSv1_method' was not declared in
> this scope
>
> Any idea what the issue might be? I tried building from source as well, but
> got the same error.
>
> Usman
>

Re: Make fails with some openssl dependencies

Posted by woojoo666 <ma...@gmail.com>.
> note: Im cross-compiling. Now it works just fine.

I am also trying to cross-compile a thrift program, to no avail. I tried 
using ./configure flags, but it seems like I also need to cross-compile 
libevent, flex, and who knows what else. How were you able to do it?



Re: Make fails with some openssl dependencies

Posted by Felipe T G Oliveira <fe...@gmail.com>.
Jake Farrell <jfarrell <at> apache.org> writes:

> 
> Usman
> you are missing the openssl devel package.
> 
> http://wiki.apache.org/thrift/ThriftRequirements
> 
> On Aug 15, 2011, at 3:41 AM, Usman Masood wrote:
> 
> 
> 

Actualy, thrift is searching at /usr/local/include, however Ubuntu (my dist is 
10.04) installs libssl-dev at /usr/include. 

Adding a symlink to the openssl path solves this issue (for now).

note: Im cross-compiling. Now it works just fine.

Regards,
Felipe.


Re: Make fails with some openssl dependencies

Posted by Jake Farrell <jf...@apache.org>.
Usman
you are missing the openssl devel package.

http://wiki.apache.org/thrift/ThriftRequirements



On Aug 15, 2011, at 3:41 AM, Usman Masood wrote:

> I download the thrift tar and get this error while running make:
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -I./src -Wall -g -O2 -MT
> TSSLSocket.lo -MD -MP -MF .deps/TSSLSocket.Tpo -c
> src/transport/TSSLSocket.cpp  -fPIC -DPIC -o .libs/TSSLSocket.o
> src/transport/TSSLSocket.cpp:27:25: error: openssl/err.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:28:26: error: openssl/rand.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:29:25: error: openssl/ssl.h: No such file or
> directory
> src/transport/TSSLSocket.cpp:30:28: error: openssl/x509v3.h: No such file or
> directory
> In file included from src/transport/TSSLSocket.cpp:32:
> src/transport/TSSLSocket.h:98: error: ISO C++ forbids declaration of 'SSL'
> with no type
> src/transport/TSSLSocket.h:98: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:239: error: ISO C++ forbids declaration of 'SSL'
> with no type
> src/transport/TSSLSocket.h:239: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:240: error: ISO C++ forbids declaration of
> 'SSL_CTX' with no type
> src/transport/TSSLSocket.h:240: error: expected ';' before '*' token
> src/transport/TSSLSocket.h:241: error: expected ';' before 'private'
> src/transport/TSSLSocket.h:242: error: ISO C++ forbids declaration of
> 'SSL_CTX' with no type
> src/transport/TSSLSocket.h:242: error: expected ';' before '*' token
> src/transport/TSSLSocket.cpp: In constructor
> 'apache::thrift::transport::SSLContext::SSLContext()':
> src/transport/TSSLSocket.cpp:53: error: 'ctx_' was not declared in this
> scope
> src/transport/TSSLSocket.cpp:53: error: 'TLSv1_method' was not declared in
> this scope
> 
> Any idea what the issue might be? I tried building from source as well, but
> got the same error.
> 
> Usman


Make fails with some openssl dependencies

Posted by Usman Masood <us...@mit.edu>.
I download the thrift tar and get this error while running make:

 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include -I./src -Wall -g -O2 -MT
TSSLSocket.lo -MD -MP -MF .deps/TSSLSocket.Tpo -c
src/transport/TSSLSocket.cpp  -fPIC -DPIC -o .libs/TSSLSocket.o
src/transport/TSSLSocket.cpp:27:25: error: openssl/err.h: No such file or
directory
src/transport/TSSLSocket.cpp:28:26: error: openssl/rand.h: No such file or
directory
src/transport/TSSLSocket.cpp:29:25: error: openssl/ssl.h: No such file or
directory
src/transport/TSSLSocket.cpp:30:28: error: openssl/x509v3.h: No such file or
directory
In file included from src/transport/TSSLSocket.cpp:32:
src/transport/TSSLSocket.h:98: error: ISO C++ forbids declaration of 'SSL'
with no type
src/transport/TSSLSocket.h:98: error: expected ';' before '*' token
src/transport/TSSLSocket.h:239: error: ISO C++ forbids declaration of 'SSL'
with no type
src/transport/TSSLSocket.h:239: error: expected ';' before '*' token
src/transport/TSSLSocket.h:240: error: ISO C++ forbids declaration of
'SSL_CTX' with no type
src/transport/TSSLSocket.h:240: error: expected ';' before '*' token
src/transport/TSSLSocket.h:241: error: expected ';' before 'private'
src/transport/TSSLSocket.h:242: error: ISO C++ forbids declaration of
'SSL_CTX' with no type
src/transport/TSSLSocket.h:242: error: expected ';' before '*' token
src/transport/TSSLSocket.cpp: In constructor
'apache::thrift::transport::SSLContext::SSLContext()':
src/transport/TSSLSocket.cpp:53: error: 'ctx_' was not declared in this
scope
src/transport/TSSLSocket.cpp:53: error: 'TLSv1_method' was not declared in
this scope

Any idea what the issue might be? I tried building from source as well, but
got the same error.

Usman