codeghar / Seagull

Seagull is a free, Open Source (GPL) multi-protocol traffic generator test tool. Forked from upstream on Sourceforge. Patched to build on recent versions of Ubuntu, CentOS, and openSUSE.
GNU General Public License v2.0
50 stars 48 forks source link

Build fails while tryting to generate libtrans_iptls.so #18

Open allangi opened 6 years ago

allangi commented 6 years ago

[Compiling library-trans-tls/C_SecureSocket.cpp] library-trans-tls/C_SecureSocket.cpp: In member function ‘virtual C_Socket C_SecureSocketClient::process_fd_in_progess(fd_set, fd_set, C_TransportEvent)’: library-trans-tls/C_SecureSocket.cpp:300:12: error: invalid use of incomplete type ‘SSL’ {aka ‘struct ssl_st’} m_ssl->rwstate = SSL_NOTHING ; ^~ In file included from /usr/include/openssl/crypto.h:31, from /usr/include/openssl/bio.h:20, from ./common/ssl_t.hpp:4, from library-trans-tls/C_SecureSocket.hpp:24, from library-trans-tls/C_SecureSocket.cpp:21: /usr/include/openssl/ossl_typ.h:144:16: note: forward declaration of ‘SSL’ {aka ‘struct ssl_st’} typedef struct ssl_st SSL; ^~

allangi commented 6 years ago

I tried researching this over google. Apparently OpenSSL has changed their APIs by making their objects opaque.

Sal3h commented 5 years ago

Maybe installing libssl1.0-dev would solve the problem.