Twister-Core compile problem on Windows (using Cygwin)

439 views
Skip to first unread message

Amit Kumar Yadav

unread,
Dec 11, 2015, 12:37:21 AM12/11/15
to twister-users
I am trying to compile twister-core on windows 8(64 bit) using Cygwin . I have copy the code from Github : https://github.com/miguelfreitas/twister-core .
I am following the steps which are given on the Github :https://github.com/miguelfreitas/twister-core/wiki/Compiling-for-Windows
I have run the "./bootstrap.sh" successfully without any error.
There are some errors occur when I run the "make" command.
Errors:

Amit@Blank /cygdrive/e/Project/twister-core
$ make
  CXX      libtorrent/src/web_connection_base.o
In file included from /usr/include/w32api/winsock2.h:56:0,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/psdk_inc/_fd_types.h:100:2: warning: #warning "fd_set and associated macros have been defined in sys/types.      This can cause runtime problems with W32 sockets" [-Wcpp]
 #warning "fd_set and associated macros have been defined in sys/types.  \
  ^
In file included from ./libtorrent/include/../../src/serialize.h:22:0,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
./libtorrent/include/../../src/allocators.h:19:0: warning: "WIN32_LEAN_AND_MEAN" redefined
 #define WIN32_LEAN_AND_MEAN 1
 ^
In file included from /usr/include/boost/asio/ip/tcp.hpp:18:0,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/config.hpp:587:0: note: this is the location of the previous definition
 #   define WIN32_LEAN_AND_MEAN
 ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:192:1: error: pasting "stack_st_" and "(" does not give a valid preprocessing token
 DECLARE_STACK_OF(X509_NAME)
 ^
/usr/include/openssl/pkcs7.h:103:1: error: pasting "stack_st_" and "(" does not give a valid preprocessing token
 DECLARE_STACK_OF(PKCS7_SIGNER_INFO)
 ^
In file included from /usr/include/openssl/objects.h:965:0,
                 from /usr/include/openssl/evp.h:94,
                 from /usr/include/openssl/x509.h:73,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:273:24: error: pasting ")" and "_new" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:24: error: pasting ")" and "_free" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:1: error: pasting "d2i_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
 ^
/usr/include/openssl/pkcs7.h:273:1: error: pasting "i2d_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
 ^
/usr/include/openssl/pkcs7.h:273:24: error: pasting ")" and "_it" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/x509.h:813:48: error: pasting ")" and "_it" does not give a valid preprocessing token
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
                                                ^
/usr/include/openssl/x509.h:817:24: error: pasting ")" and "_new" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:817:24: error: pasting ")" and "_free" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:817:1: error: pasting "d2i_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
 ^
/usr/include/openssl/x509.h:817:1: error: pasting "i2d_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
 ^
/usr/include/openssl/x509.h:817:24: error: pasting ")" and "_it" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:826:24: error: pasting ")" and "_new" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/x509.h:826:24: error: pasting ")" and "_free" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/x509.h:826:1: error: pasting "d2i_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
 ^
/usr/include/openssl/x509.h:826:1: error: pasting "i2d_" and "(" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
 ^
/usr/include/openssl/x509.h:826:24: error: pasting ")" and "_it" does not give a valid preprocessing token
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
In file included from /usr/include/openssl/ssl.h:162:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pem.h:453:1: error: pasting "PEM_read_bio_" and "(" does not give a valid preprocessing token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
/usr/include/openssl/pem.h:453:1: error: pasting "PEM_read_" and "(" does not give a valid preprocessing token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
/usr/include/openssl/pem.h:453:1: error: pasting "PEM_write_bio_" and "(" does not give a valid preprocessing token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
/usr/include/openssl/pem.h:453:1: error: pasting "PEM_write_" and "(" does not give a valid preprocessing token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
In file included from ./libtorrent/include/libtorrent/error_code.hpp:41:0,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winsock2.h:995:123: error: conflicting declaration of C function ‘int select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, PTIMEVAL)’
   WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
                                                                                                                           ^
In file included from /usr/include/sys/time.h:49:0,
                 from /usr/include/boost/date_time/c_time.hpp:31,
                 from /usr/include/boost/date_time/time_clock.hpp:16,
                 from /usr/include/boost/thread/thread_time.hpp:9,
                 from /usr/include/boost/thread/lock_types.hpp:18,
                 from /usr/include/boost/thread/pthread/mutex.hpp:16,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/pool/detail/mutex.hpp:14,
                 from /usr/include/boost/pool/poolfwd.hpp:24,
                 from /usr/include/boost/pool/pool.hpp:27,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:56,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/sys/select.h:31:5: note: previous declaration ‘int select(int, _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’
 int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
     ^
In file included from ./libtorrent/include/libtorrent/error_code.hpp:41:0,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winsock2.h:1004:68: error: conflicting declaration of C function ‘int gethostname(char*, int)’
   WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
                                                                    ^
In file included from /usr/include/sys/unistd.h:8:0,
                 from /usr/include/unistd.h:4,
                 from /usr/include/boost/config/stdlib/libstdcpp3.hpp:78,
                 from /usr/include/boost/config.hpp:48,
                 from /usr/include/boost/bind/bind.hpp:24,
                 from /usr/include/boost/bind.hpp:22,
                 from libtorrent/src/web_connection_base.cpp:37:
/usr/include/sys/unistd.h:249:6: note: previous declaration ‘int gethostname(char*, size_t)’
  int _EXFUN(gethostname, (char *__name, size_t __len));
      ^
In file included from /usr/include/boost/asio/detail/thread.hpp:26:0,
                 from /usr/include/boost/asio/detail/win_iocp_io_service.hpp:29,
                 from /usr/include/boost/asio/impl/io_service.hpp:69,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_thread.hpp: In static member function ‘static bool boost::asio::detail::win_thread_base<T>::terminate_threads()’:
/usr/include/boost/asio/detail/win_thread.hpp:45:59: error: no matching function for call to ‘_InterlockedExchangeAdd(long int*&, int)’
     return ::InterlockedExchangeAdd(&terminate_threads_, 0) != 0;
                                                           ^
/usr/include/boost/asio/detail/win_thread.hpp:45:59: note: candidates are:
In file included from /usr/include/w32api/winnt.h:27:0,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note: int _InterlockedExchangeAdd(volatile int*, int)
 __LONG32 _InterlockedExchangeAdd(__LONG32 volatile *Addend, __LONG32 Value) {
          ^
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile int*’
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2987:24: note: unsigned int _InterlockedExchangeAdd(volatile unsigned int*, unsigned int)
   FORCEINLINE unsigned InterlockedExchangeAdd (unsigned volatile *Addend, unsigned Value) {
                        ^
/usr/include/w32api/winbase.h:2987:24: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile unsigned int*’
/usr/include/w32api/winbase.h:2995:29: note: long unsigned int _InterlockedExchangeAdd(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchangeAdd (unsigned long volatile *Addend, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2995:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:3012:32: note: long long unsigned int _InterlockedExchangeAdd(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchangeAdd (unsigned __int64 volatile *Addend, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:3012:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/detail/thread.hpp:26:0,
                 from /usr/include/boost/asio/detail/win_iocp_io_service.hpp:29,
                 from /usr/include/boost/asio/impl/io_service.hpp:69,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_thread.hpp: In static member function ‘static void boost::asio::detail::win_thread_base<T>::set_terminate_threads(bool)’:
/usr/include/boost/asio/detail/win_thread.hpp:50:57: error: no matching function for call to ‘_InterlockedExchange(long int*&, int)’
     ::InterlockedExchange(&terminate_threads_, b ? 1 : 0);
                                                         ^
/usr/include/boost/asio/detail/win_thread.hpp:50:57: note: candidates are:
In file included from /usr/include/w32api/winnt.h:27:0,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/psdk_inc/intrin-impl.h:1022:10: note: int _InterlockedExchange(volatile int*, int)
 __LONG32 _InterlockedExchange(__LONG32 volatile *Target, __LONG32 Value) {
          ^
/usr/include/w32api/psdk_inc/intrin-impl.h:1022:10: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile int*’
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2969:24: note: unsigned int _InterlockedExchange(volatile unsigned int*, unsigned int)
   FORCEINLINE unsigned InterlockedExchange (unsigned volatile *Target, unsigned Value) {
                        ^
/usr/include/w32api/winbase.h:2969:24: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile unsigned int*’
/usr/include/w32api/winbase.h:2973:29: note: long unsigned int _InterlockedExchange(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchange (unsigned long volatile *Target, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2973:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:2982:32: note: long long unsigned int _InterlockedExchange(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchange (unsigned __int64 volatile *Target, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:2982:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/impl/io_service.hpp:69:0,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp: In member function ‘bool boost::asio::detail::win_iocp_io_service::stopped() const’:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:84:49: error: call of overloaded ‘_InterlockedExchangeAdd(long int*, int)’ is ambiguous
     return ::InterlockedExchangeAdd(&stopped_, 0) != 0;
                                                 ^
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:84:49: note: candidates are:
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2995:29: note: long unsigned int _InterlockedExchangeAdd(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchangeAdd (unsigned long volatile *Addend, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2995:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:3012:32: note: long long unsigned int _InterlockedExchangeAdd(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchangeAdd (unsigned __int64 volatile *Addend, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:3012:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/impl/io_service.hpp:69:0,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp: In member function ‘void boost::asio::detail::win_iocp_io_service::reset()’:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:90:39: error: call of overloaded ‘_InterlockedExchange(long int*, int)’ is ambiguous
     ::InterlockedExchange(&stopped_, 0);
                                       ^
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:90:39: note: candidates are:
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2973:29: note: long unsigned int _InterlockedExchange(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchange (unsigned long volatile *Target, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2973:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:2982:32: note: long long unsigned int _InterlockedExchange(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchange (unsigned __int64 volatile *Target, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:2982:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/impl/io_service.hpp:69:0,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp: In member function ‘void boost::asio::detail::win_iocp_io_service::work_started()’:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:96:46: error: call of overloaded ‘_InterlockedIncrement(long int*)’ is ambiguous
     ::InterlockedIncrement(&outstanding_work_);
                                              ^
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:96:46: note: candidates are:
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2937:29: note: long unsigned int _InterlockedIncrement(volatile long unsigned int*) <near match>
   FORCEINLINE unsigned long InterlockedIncrement (unsigned long volatile *Addend) {
                             ^
/usr/include/w32api/winbase.h:2937:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:2946:32: note: long long unsigned int _InterlockedIncrement(volatile long long unsigned int*) <near match>
   FORCEINLINE unsigned __int64 InterlockedIncrement (unsigned __int64 volatile *Addend) {
                                ^
/usr/include/w32api/winbase.h:2946:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/impl/io_service.hpp:69:0,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp: In member function ‘void boost::asio::detail::win_iocp_io_service::work_finished()’:
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:102:50: error: call of overloaded ‘_InterlockedDecrement(long int*)’ is ambiguous
     if (::InterlockedDecrement(&outstanding_work_) == 0)
                                                  ^
/usr/include/boost/asio/detail/win_iocp_io_service.hpp:102:50: note: candidates are:
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2955:29: note: long unsigned int _InterlockedDecrement(volatile long unsigned int*) <near match>
   FORCEINLINE unsigned long InterlockedDecrement (unsigned long volatile *Addend) {
                             ^
/usr/include/w32api/winbase.h:2955:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:2964:32: note: long long unsigned int _InterlockedDecrement(volatile long long unsigned int*) <near match>
   FORCEINLINE unsigned __int64 InterlockedDecrement (unsigned __int64 volatile *Addend) {
                                ^
/usr/include/w32api/winbase.h:2964:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/detail/win_iocp_io_service.hpp:310:0,
                 from /usr/include/boost/asio/impl/io_service.hpp:69,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp: In member function ‘void boost::asio::detail::win_iocp_io_service::schedule_timer(boost::asio::detail::timer_queue<Time_Traits>&, const typename Time_Traits::time_type&, typename boost::asio::detail::timer_queue<Time_Traits>::per_timer_data&, boost::asio::detail::wait_op*)’:
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp:94:45: error: no matching function for call to ‘_InterlockedExchangeAdd(long int*&, int)’
   if (::InterlockedExchangeAdd(&shutdown_, 0) != 0)
                                             ^
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp:94:45: note: candidates are:
In file included from /usr/include/w32api/winnt.h:27:0,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note: int _InterlockedExchangeAdd(volatile int*, int)
 __LONG32 _InterlockedExchangeAdd(__LONG32 volatile *Addend, __LONG32 Value) {
          ^
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile int*’
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2987:24: note: unsigned int _InterlockedExchangeAdd(volatile unsigned int*, unsigned int)
   FORCEINLINE unsigned InterlockedExchangeAdd (unsigned volatile *Addend, unsigned Value) {
                        ^
/usr/include/w32api/winbase.h:2987:24: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile unsigned int*’
/usr/include/w32api/winbase.h:2995:29: note: long unsigned int _InterlockedExchangeAdd(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchangeAdd (unsigned long volatile *Addend, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2995:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:3012:32: note: long long unsigned int _InterlockedExchangeAdd(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchangeAdd (unsigned __int64 volatile *Addend, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:3012:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/detail/win_iocp_io_service.hpp:310:0,
                 from /usr/include/boost/asio/impl/io_service.hpp:69,
                 from /usr/include/boost/asio/io_service.hpp:767,
                 from /usr/include/boost/asio/basic_io_object.hpp:19,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:19,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp: In member function ‘std::size_t boost::asio::detail::win_iocp_io_service::cancel_timer(boost::asio::detail::timer_queue<Time_Traits>&, typename boost::asio::detail::timer_queue<Time_Traits>::per_timer_data&, std::size_t)’:
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp:114:45: error: no matching function for call to ‘_InterlockedExchangeAdd(long int*&, int)’
   if (::InterlockedExchangeAdd(&shutdown_, 0) != 0)
                                             ^
/usr/include/boost/asio/detail/impl/win_iocp_io_service.hpp:114:45: note: candidates are:
In file included from /usr/include/w32api/winnt.h:27:0,
                 from /usr/include/w32api/minwindef.h:163,
                 from /usr/include/w32api/windef.h:8,
                 from /usr/include/w32api/windows.h:69,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note: int _InterlockedExchangeAdd(volatile int*, int)
 __LONG32 _InterlockedExchangeAdd(__LONG32 volatile *Addend, __LONG32 Value) {
          ^
/usr/include/w32api/psdk_inc/intrin-impl.h:986:10: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile int*’
In file included from /usr/include/w32api/windows.h:70:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/w32api/winbase.h:2987:24: note: unsigned int _InterlockedExchangeAdd(volatile unsigned int*, unsigned int)
   FORCEINLINE unsigned InterlockedExchangeAdd (unsigned volatile *Addend, unsigned Value) {
                        ^
/usr/include/w32api/winbase.h:2987:24: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile unsigned int*’
/usr/include/w32api/winbase.h:2995:29: note: long unsigned int _InterlockedExchangeAdd(volatile long unsigned int*, long unsigned int) <near match>
   FORCEINLINE unsigned long InterlockedExchangeAdd (unsigned long volatile *Addend, unsigned long Value) {
                             ^
/usr/include/w32api/winbase.h:2995:29: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long unsigned int*’
/usr/include/w32api/winbase.h:3012:32: note: long long unsigned int _InterlockedExchangeAdd(volatile long long unsigned int*, long long unsigned int) <near match>
   FORCEINLINE unsigned __int64 InterlockedExchangeAdd (unsigned __int64 volatile *Addend, unsigned __int64 Value) {
                                ^
/usr/include/w32api/winbase.h:3012:32: note:   no known conversion for argument 1 from ‘long int*’ to ‘volatile long long unsigned int*’
In file included from /usr/include/boost/asio/detail/fd_set_adapter.hpp:23:0,
                 from /usr/include/boost/asio/detail/select_reactor.hpp:27,
                 from /usr/include/boost/asio/detail/reactor.hpp:29,
                 from /usr/include/boost/asio/detail/win_iocp_socket_service.hpp:34,
                 from /usr/include/boost/asio/socket_acceptor_service.hpp:27,
                 from /usr/include/boost/asio/basic_socket_acceptor.hpp:25,
                 from /usr/include/boost/asio/ip/tcp.hpp:19,
                 from ./libtorrent/include/libtorrent/socket.hpp:61,
                 from ./libtorrent/include/libtorrent/policy.hpp:42,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:71,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/boost/asio/detail/win_fd_set_adapter.hpp: In member function ‘bool boost::asio::detail::win_fd_set_adapter::is_set(boost::asio::detail::socket_type) const’:
/usr/include/boost/asio/detail/win_fd_set_adapter.hpp:84:70: error: ‘__WSAFDIsSet’ was not declared in this scope
         const_cast<fd_set*>(reinterpret_cast<const fd_set*>(fd_set_)));
                                                                      ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/ossl_typ.h: At global scope:
/usr/include/openssl/ossl_typ.h:159:29: error: expected ‘)’ before numeric constant
 typedef struct X509_name_st X509_NAME;
                             ^
/usr/include/openssl/ossl_typ.h:205:33: error: expected ‘)’ before numeric constant
 typedef struct ocsp_response_st OCSP_RESPONSE;
                                 ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:192:18: error: expected ‘)’ before numeric constant
 DECLARE_STACK_OF(X509_NAME)
                  ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:202:34: error: expected ‘)’ before numeric constant
 typedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;
                                  ^
/usr/include/openssl/x509.h:229:5: error: expected ‘)’ before numeric constant
     X509_NAME *subject;
     ^
/usr/include/openssl/x509.h:246:5: error: expected ‘)’ before numeric constant
     X509_NAME *issuer;
     ^
/usr/include/openssl/x509.h:248:5: error: expected ‘)’ before numeric constant
     X509_NAME *subject;
     ^
/usr/include/openssl/x509.h:320:3: error: expected ‘)’ before numeric constant
 } X509_CERT_PAIR;
   ^
/usr/include/openssl/x509.h:444:5: error: expected ‘)’ before numeric constant
     X509_NAME *issuer;
     ^
/usr/include/openssl/x509_vfy.h:148:56: error: expected identifier before ‘(’ token
     int (*get_by_subject) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:148:56: error: expected ‘)’ before numeric constant
     int (*get_by_subject) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:148:56: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:148:56: error: expected ‘;’ at end of member declaration
     int (*get_by_subject) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:148:56: error: expected unqualified-id before numeric constant
     int (*get_by_subject) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:150:62: error: expected identifier before ‘(’ token
     int (*get_by_issuer_serial) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:150:62: error: expected ‘)’ before numeric constant
     int (*get_by_issuer_serial) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:150:62: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:150:62: error: expected ‘;’ at end of member declaration
     int (*get_by_issuer_serial) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:150:62: error: expected unqualified-id before numeric constant
     int (*get_by_issuer_serial) (X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:210:59: error: expected identifier before ‘(’ token
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:210:59: error: expected ‘)’ before numeric constant
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:210:59: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:210:59: error: expected ‘;’ at end of member declaration
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:210:59: error: expected unqualified-id before numeric constant
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:211:62: error: expected identifier before ‘(’ token
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:211:62: error: expected ‘)’ before numeric constant
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:211:62: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:211:62: error: expected ‘;’ at end of member declaration
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:211:62: error: expected unqualified-id before numeric constant
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:268:59: error: expected identifier before ‘(’ token
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:268:59: error: expected ‘)’ before numeric constant
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:268:59: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:268:59: error: expected ‘;’ at end of member declaration
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:268:59: error: expected unqualified-id before numeric constant
     STACK_OF(X509) *(*lookup_certs) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:269:62: error: expected identifier before ‘(’ token
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:269:62: error: expected ‘)’ before numeric constant
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:269:62: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:269:62: error: expected ‘;’ at end of member declaration
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:269:62: error: expected unqualified-id before numeric constant
     STACK_OF(X509_CRL) *(*lookup_crls) (X509_STORE_CTX *ctx, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:455:32: error: expected identifier before ‘(’ token
                                X509_NAME *name);
                                ^
/usr/include/openssl/x509_vfy.h:455:32: error: expected ‘)’ before numeric constant
                                X509_NAME *name);
                                ^
/usr/include/openssl/x509_vfy.h:455:32: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:455:32: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:457:56: error: expected identifier before ‘(’ token
                                              int type, X509_NAME *name);
                                                        ^
/usr/include/openssl/x509_vfy.h:457:56: error: expected ‘)’ before numeric constant
                                              int type, X509_NAME *name);
                                                        ^
/usr/include/openssl/x509_vfy.h:457:56: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:457:56: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:465:59: error: expected identifier before ‘(’ token
 STACK_OF(X509) *X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:465:59: error: expected ‘)’ before numeric constant
 STACK_OF(X509) *X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);
                                                           ^
/usr/include/openssl/x509_vfy.h:465:59: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:465:59: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:466:62: error: expected identifier before ‘(’ token
 STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:466:62: error: expected ‘)’ before numeric constant
 STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);
                                                              ^
/usr/include/openssl/x509_vfy.h:466:62: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:466:62: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:478:63: error: expected identifier before ‘(’ token
                                                               X509_NAME *nm));
                                                               ^
/usr/include/openssl/x509_vfy.h:478:63: error: expected ‘)’ before numeric constant
                                                               X509_NAME *nm));
                                                               ^
/usr/include/openssl/x509_vfy.h:478:63: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:478:63: error: expected ‘,’ or ‘...’ before numeric constant
In file included from /usr/include/openssl/x509.h:581:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509_vfy.h:478:73: error: expected initializer before ‘*’ token
                                                               X509_NAME *nm));
                                                                         ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509_vfy.h:500:61: error: expected identifier before ‘(’ token
 int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name,
                                                             ^
/usr/include/openssl/x509_vfy.h:500:61: error: expected ‘)’ before numeric constant
 int X509_STORE_get_by_subject(X509_STORE_CTX *vs, int type, X509_NAME *name,
                                                             ^
/usr/include/openssl/x509_vfy.h:500:61: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:500:61: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:515:56: error: expected identifier before ‘(’ token
 int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:515:56: error: expected ‘)’ before numeric constant
 int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                        ^
/usr/include/openssl/x509_vfy.h:515:56: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:515:56: error: expected initializer before numeric constant
/usr/include/openssl/x509_vfy.h:517:62: error: expected identifier before ‘(’ token
 int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:517:62: error: expected ‘)’ before numeric constant
 int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name,
                                                              ^
/usr/include/openssl/x509_vfy.h:517:62: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509_vfy.h:517:62: error: expected initializer before numeric constant
/usr/include/openssl/pkcs7.h:87:5: error: expected ‘)’ before numeric constant
     X509_NAME *issuer;
     ^
/usr/include/openssl/pkcs7.h:101:3: error: expected ‘)’ before numeric constant
 } PKCS7_SIGNER_INFO;
   ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:103:18: error: expected ‘)’ before numeric constant
 DECLARE_STACK_OF(PKCS7_SIGNER_INFO)
                  ^
In file included from /usr/include/openssl/objects.h:965:0,
                 from /usr/include/openssl/evp.h:94,
                 from /usr/include/openssl/x509.h:73,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:273:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:24: error: invalid conversion from ‘LPCSTR {aka const char*}’ to ‘int’ [-fpermissive]
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
/usr/include/openssl/pkcs7.h:273:1: error: expected ‘,’ or ‘;’ before ‘(’ token
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
 ^
/usr/include/openssl/pkcs7.h:273:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
                        ^
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:294:46: error: ‘p7i’ was not declared in this scope
 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
                                              ^
/usr/include/openssl/pkcs7.h:294:56: error: expected primary-expression before ‘*’ token
 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
                                                        ^
/usr/include/openssl/pkcs7.h:294:57: error: ‘x509’ was not declared in this scope
 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
                                                         ^
/usr/include/openssl/pkcs7.h:294:72: error: expected primary-expression before ‘*’ token
 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
                                                                        ^
/usr/include/openssl/pkcs7.h:294:73: error: ‘pkey’ was not declared in this scope
 int PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,
                                                                         ^
/usr/include/openssl/pkcs7.h:295:27: error: expected primary-expression before ‘const’
                           const EVP_MD *dgst);
                           ^
/usr/include/openssl/pkcs7.h:295:45: error: expression list treated as compound expression in initializer [-fpermissive]
                           const EVP_MD *dgst);
                                             ^
/usr/include/openssl/pkcs7.h:296:47: error: ‘si’ was not declared in this scope
 int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);
                                               ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:297:33: error: expected identifier before ‘(’ token
 int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);
                                 ^
/usr/include/openssl/pkcs7.h:297:33: error: expected ‘)’ before numeric constant
 int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);
                                 ^
/usr/include/openssl/pkcs7.h:297:33: error: expected ‘)’ before numeric constant
/usr/include/openssl/pkcs7.h:297:33: error: expected initializer before numeric constant
/usr/include/openssl/pkcs7.h:302:43: error: expected identifier before ‘(’ token
                      BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
                                           ^
/usr/include/openssl/pkcs7.h:302:43: error: expected ‘)’ before numeric constant
                      BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
                                           ^
/usr/include/openssl/pkcs7.h:302:43: error: expected ‘)’ before numeric constant
/usr/include/openssl/pkcs7.h:302:43: error: expected initializer before numeric constant
/usr/include/openssl/pkcs7.h:303:48: error: expected identifier before ‘(’ token
 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
                                                ^
/usr/include/openssl/pkcs7.h:303:48: error: expected ‘)’ before numeric constant
 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
                                                ^
/usr/include/openssl/pkcs7.h:303:48: error: expected ‘)’ before numeric constant
/usr/include/openssl/pkcs7.h:303:48: error: expected initializer before numeric constant
/usr/include/openssl/pkcs7.h:310:1: error: expected ‘)’ before numeric constant
 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,
 ^
/usr/include/openssl/pkcs7.h:312:46: error: expected identifier before ‘(’ token
 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
                                              ^
/usr/include/openssl/pkcs7.h:312:46: error: expected ‘)’ before numeric constant
 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
                                              ^
/usr/include/openssl/pkcs7.h:312:46: error: expected ‘)’ before numeric constant
/usr/include/openssl/pkcs7.h:312:46: error: expected initializer before numeric constant
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:317:33: error: variable or field ‘PKCS7_SIGNER_INFO_get0_algs’ declared void
 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
                                 ^
/usr/include/openssl/pkcs7.h:317:53: error: ‘si’ was not declared in this scope
 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
                                                     ^
/usr/include/openssl/pkcs7.h:317:66: error: expected primary-expression before ‘*’ token
 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
                                                                  ^
/usr/include/openssl/pkcs7.h:317:68: error: ‘pk’ was not declared in this scope
 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
                                                                    ^
/usr/include/openssl/pkcs7.h:318:45: error: expected primary-expression before ‘*’ token
                                  X509_ALGOR **pdig, X509_ALGOR **psig);
                                             ^
/usr/include/openssl/pkcs7.h:318:47: error: ‘pdig’ was not declared in this scope
                                  X509_ALGOR **pdig, X509_ALGOR **psig);
                                               ^
/usr/include/openssl/pkcs7.h:318:64: error: expected primary-expression before ‘*’ token
                                  X509_ALGOR **pdig, X509_ALGOR **psig);
                                                                ^
/usr/include/openssl/pkcs7.h:318:66: error: ‘psig’ was not declared in this scope
                                  X509_ALGOR **pdig, X509_ALGOR **psig);
                                                                  ^
/usr/include/openssl/pkcs7.h:327:51: error: ‘p7si’ was not declared in this scope
 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,
                                                   ^
/usr/include/openssl/pkcs7.h:327:57: error: expected primary-expression before ‘int’
 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,
                                                         ^
/usr/include/openssl/pkcs7.h:327:66: error: expected primary-expression before ‘int’
 int PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,
                                                                  ^
/usr/include/openssl/pkcs7.h:328:32: error: expected primary-expression before ‘void’
                                void *data);
                                ^
/usr/include/openssl/pkcs7.h:328:42: error: expression list treated as compound expression in initializer [-fpermissive]
                                void *data);
                                          ^
/usr/include/openssl/pkcs7.h:329:44: error: ‘p7si’ was not declared in this scope
 int PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
                                            ^
/usr/include/openssl/pkcs7.h:329:50: error: expected primary-expression before ‘int’
 int PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
                                                  ^
/usr/include/openssl/pkcs7.h:329:59: error: expected primary-expression before ‘int’
 int PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,
                                                           ^
/usr/include/openssl/pkcs7.h:330:25: error: expected primary-expression before ‘void’
                         void *value);
                         ^
/usr/include/openssl/pkcs7.h:330:36: error: expression list treated as compound expression in initializer [-fpermissive]
                         void *value);
                                    ^
/usr/include/openssl/pkcs7.h:331:51: error: ‘si’ was not declared in this scope
 ASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                   ^
/usr/include/openssl/pkcs7.h:331:55: error: expected primary-expression before ‘int’
 ASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                       ^
/usr/include/openssl/pkcs7.h:331:62: error: expression list treated as compound expression in initializer [-fpermissive]
 ASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                              ^
/usr/include/openssl/pkcs7.h:332:58: error: ‘si’ was not declared in this scope
 ASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                          ^
/usr/include/openssl/pkcs7.h:332:62: error: expected primary-expression before ‘int’
 ASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                              ^
/usr/include/openssl/pkcs7.h:332:69: error: expression list treated as compound expression in initializer [-fpermissive]
 ASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);
                                                                     ^
/usr/include/openssl/pkcs7.h:333:52: error: ‘p7si’ was not declared in this scope
 int PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si,
                                                    ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:334:33: error: expected primary-expression before ‘struct’
                                 STACK_OF(X509_ATTRIBUTE) *sk);
                                 ^
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:334:61: error: expression list treated as compound expression in initializer [-fpermissive]
                                 STACK_OF(X509_ATTRIBUTE) *sk);
                                                             ^
/usr/include/openssl/pkcs7.h:335:45: error: ‘p7si’ was not declared in this scope
 int PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,
                                             ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:336:26: error: expected primary-expression before ‘struct’
                          STACK_OF(X509_ATTRIBUTE) *sk);
                          ^
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:336:54: error: expression list treated as compound expression in initializer [-fpermissive]
                          STACK_OF(X509_ATTRIBUTE) *sk);
                                                      ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:341:1: error: expected ‘)’ before numeric constant
 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7,
 ^
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:355:50: error: ‘si’ was not declared in this scope
 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,
                                                  ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:356:31: error: expected primary-expression before ‘struct’
                               STACK_OF(X509_ALGOR) *cap);
                               ^
In file included from /usr/include/openssl/x509.h:582:0,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pkcs7.h:356:56: error: expression list treated as compound expression in initializer [-fpermissive]
                               STACK_OF(X509_ALGOR) *cap);
                                                        ^
/usr/include/openssl/pkcs7.h:357:61: error: ‘si’ was not declared in this scope
 STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);
                                                             ^
/usr/include/openssl/pkcs7.h:360:54: error: ‘si’ was not declared in this scope
 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);
                                                      ^
/usr/include/openssl/pkcs7.h:360:70: error: expected primary-expression before ‘*’ token
 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);
                                                                      ^
/usr/include/openssl/pkcs7.h:360:71: error: ‘coid’ was not declared in this scope
 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);
                                                                       ^
/usr/include/openssl/pkcs7.h:360:75: error: expression list treated as compound expression in initializer [-fpermissive]
 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);
                                                                           ^
/usr/include/openssl/pkcs7.h:361:55: error: ‘si’ was not declared in this scope
 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);
                                                       ^
/usr/include/openssl/pkcs7.h:361:69: error: expected primary-expression before ‘*’ token
 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);
                                                                     ^
/usr/include/openssl/pkcs7.h:361:70: error: ‘t’ was not declared in this scope
 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);
                                                                      ^
/usr/include/openssl/pkcs7.h:361:71: error: expression list treated as compound expression in initializer [-fpermissive]
 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);
                                                                       ^
/usr/include/openssl/pkcs7.h:362:49: error: ‘si’ was not declared in this scope
 int PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,
                                                 ^
/usr/include/openssl/pkcs7.h:363:30: error: expected primary-expression before ‘const’
                              const unsigned char *md, int mdlen);
                              ^
/usr/include/openssl/pkcs7.h:363:55: error: expected primary-expression before ‘int’
                              const unsigned char *md, int mdlen);
                                                       ^
/usr/include/openssl/pkcs7.h:363:64: error: expression list treated as compound expression in initializer [-fpermissive]
                              const unsigned char *md, int mdlen);
                                                                ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:614:57: error: expected identifier before ‘(’ token
                                                         X509_NAME *issuer),
                                                         ^
/usr/include/openssl/x509.h:614:57: error: expected ‘)’ before numeric constant
                                                         X509_NAME *issuer),
                                                         ^
/usr/include/openssl/x509.h:614:57: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:614:57: error: expected ‘,’ or ‘...’ before numeric constant
In file included from /usr/include/openssl/ssl.h:156:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:614:67: error: expected initializer before ‘*’ token
                                                         X509_NAME *issuer),
                                                                   ^
/usr/include/openssl/x509.h:665:22: error: expected primary-expression before ‘const’
 int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,
                      ^
/usr/include/openssl/x509.h:665:45: error: expected primary-expression before ‘const’
 int X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,
                                             ^
/usr/include/openssl/x509.h:666:22: error: expected primary-expression before ‘unsigned’
                      unsigned char *md, unsigned int *len);
                      ^
/usr/include/openssl/x509.h:666:41: error: expected primary-expression before ‘unsigned’
                      unsigned char *md, unsigned int *len);
                                         ^
/usr/include/openssl/x509.h:666:58: error: expression list treated as compound expression in initializer [-fpermissive]
                      unsigned char *md, unsigned int *len);
                                                          ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:761:1: error: expected ‘)’ before numeric constant
 X509_NAME *X509_NAME_dup(X509_NAME *xn);
 ^
In file included from /usr/include/openssl/objects.h:965:0,
                 from /usr/include/openssl/evp.h:94,
                 from /usr/include/openssl/x509.h:73,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:813:31: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
                               ^
/usr/include/openssl/x509.h:813:1: error: ‘a’ was not declared in this scope
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
 ^
/usr/include/openssl/x509.h:813:1: error: expected primary-expression before ‘unsigned’
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
 ^
/usr/include/openssl/x509.h:813:1: error: expression list treated as compound expression in initializer [-fpermissive]
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
 ^
/usr/include/openssl/x509.h:813:48: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)
                                                ^
/usr/include/openssl/x509.h:817:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:817:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:817:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/x509.h:817:24: error: redefinition of ‘int i2d_’
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
/usr/include/openssl/pkcs7.h:273:1: note: ‘int i2d_’ previously defined here
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
 ^
/usr/include/openssl/x509.h:817:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_NAME)
                        ^
In file included from /usr/include/openssl/ssl.h:156:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:819:31: error: ‘xn’ was not declared in this scope
 int X509_NAME_set(X509_NAME **xn, X509_NAME *name);
                               ^
/usr/include/openssl/x509.h:819:46: error: ‘name’ was not declared in this scope
 int X509_NAME_set(X509_NAME **xn, X509_NAME *name);
                                              ^
/usr/include/openssl/x509.h:819:50: error: expression list treated as compound expression in initializer [-fpermissive]
 int X509_NAME_set(X509_NAME **xn, X509_NAME *name);
                                                  ^
In file included from /usr/include/openssl/objects.h:965:0,
                 from /usr/include/openssl/evp.h:94,
                 from /usr/include/openssl/x509.h:73,
                 from /usr/include/openssl/ssl.h:156,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:826:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/x509.h:826:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/x509.h:826:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/x509.h:826:24: error: redefinition of ‘int i2d_’
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
/usr/include/openssl/pkcs7.h:273:1: note: ‘int i2d_’ previously defined here
 DECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)
 ^
/usr/include/openssl/x509.h:826:24: error: expected ‘)’ before numeric constant
 DECLARE_ASN1_FUNCTIONS(X509_CERT_PAIR)
                        ^
In file included from /usr/include/openssl/ssl.h:156:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:875:36: error: ‘a’ was not declared in this scope
 char *X509_NAME_oneline(X509_NAME *a, char *buf, int size);
                                    ^
/usr/include/openssl/x509.h:875:39: error: expected primary-expression before ‘char’
 char *X509_NAME_oneline(X509_NAME *a, char *buf, int size);
                                       ^
/usr/include/openssl/x509.h:875:50: error: expected primary-expression before ‘int’
 char *X509_NAME_oneline(X509_NAME *a, char *buf, int size);
                                                  ^
/usr/include/openssl/x509.h:875:58: error: expression list treated as compound expression in initializer [-fpermissive]
 char *X509_NAME_oneline(X509_NAME *a, char *buf, int size);
                                                          ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:904:35: error: expected identifier before ‘(’ token
 int X509_set_issuer_name(X509 *x, X509_NAME *name);
                                   ^
/usr/include/openssl/x509.h:904:35: error: expected ‘)’ before numeric constant
 int X509_set_issuer_name(X509 *x, X509_NAME *name);
                                   ^
/usr/include/openssl/x509.h:904:35: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:904:35: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:905:1: error: expected ‘)’ before numeric constant
 X509_NAME *X509_get_issuer_name(X509 *a);
 ^
/usr/include/openssl/x509.h:906:36: error: expected identifier before ‘(’ token
 int X509_set_subject_name(X509 *x, X509_NAME *name);
                                    ^
/usr/include/openssl/x509.h:906:36: error: expected ‘)’ before numeric constant
 int X509_set_subject_name(X509 *x, X509_NAME *name);
                                    ^
/usr/include/openssl/x509.h:906:36: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:906:36: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:907:1: error: expected ‘)’ before numeric constant
 X509_NAME *X509_get_subject_name(X509 *a);
 ^
/usr/include/openssl/x509.h:916:46: error: expected identifier before ‘(’ token
 int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
                                              ^
/usr/include/openssl/x509.h:916:46: error: expected ‘)’ before numeric constant
 int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);
                                              ^
/usr/include/openssl/x509.h:916:46: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:916:46: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:944:43: error: expected identifier before ‘(’ token
 int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
                                           ^
/usr/include/openssl/x509.h:944:43: error: expected ‘)’ before numeric constant
 int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);
                                           ^
/usr/include/openssl/x509.h:944:43: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:944:43: error: expected initializer before numeric constant
In file included from /usr/include/openssl/ssl.h:156:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:979:19: error: expected primary-expression before ‘const’
 int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
                   ^
/usr/include/openssl/x509.h:979:39: error: expected primary-expression before ‘const’
 int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
                                       ^
/usr/include/openssl/x509.h:979:57: error: expression list treated as compound expression in initializer [-fpermissive]
 int X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);
                                                         ^
/usr/include/openssl/x509.h:980:41: error: ‘x’ was not declared in this scope
 unsigned long X509_NAME_hash(X509_NAME *x);
                                         ^
/usr/include/openssl/x509.h:981:45: error: ‘x’ was not declared in this scope
 unsigned long X509_NAME_hash_old(X509_NAME *x);
                                             ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:991:37: error: expected identifier before ‘(’ token
 int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent,
                                     ^
/usr/include/openssl/x509.h:991:37: error: expected ‘)’ before numeric constant
 int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent,
                                     ^
/usr/include/openssl/x509.h:991:37: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:991:37: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:996:30: error: expected identifier before ‘(’ token
 int X509_NAME_print(BIO *bp, X509_NAME *name, int obase);
                              ^
/usr/include/openssl/x509.h:996:30: error: expected ‘)’ before numeric constant
 int X509_NAME_print(BIO *bp, X509_NAME *name, int obase);
                              ^
/usr/include/openssl/x509.h:996:30: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:996:30: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:997:34: error: expected identifier before ‘(’ token
 int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent,
                                  ^
/usr/include/openssl/x509.h:997:34: error: expected ‘)’ before numeric constant
 int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent,
                                  ^
/usr/include/openssl/x509.h:997:34: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:997:34: error: expected initializer before numeric constant
In file included from /usr/include/openssl/ssl.h:156:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:1010:38: error: ‘name’ was not declared in this scope
 int X509_NAME_entry_count(X509_NAME *name);
                                      ^
/usr/include/openssl/x509.h:1011:42: error: ‘name’ was not declared in this scope
 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);
                                          ^
/usr/include/openssl/x509.h:1011:48: error: expected primary-expression before ‘int’
 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);
                                                ^
/usr/include/openssl/x509.h:1011:57: error: expected primary-expression before ‘char’
 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);
                                                         ^
/usr/include/openssl/x509.h:1011:68: error: expected primary-expression before ‘int’
 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);
                                                                    ^
/usr/include/openssl/x509.h:1011:75: error: expression list treated as compound expression in initializer [-fpermissive]
 int X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);
                                                                           ^
/usr/include/openssl/x509.h:1012:42: error: ‘name’ was not declared in this scope
 int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                          ^
/usr/include/openssl/x509.h:1012:60: error: expected primary-expression before ‘*’ token
 int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                                            ^
/usr/include/openssl/x509.h:1012:61: error: ‘obj’ was not declared in this scope
 int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                                             ^
/usr/include/openssl/x509.h:1013:31: error: expected primary-expression before ‘char’
                               char *buf, int len);
                               ^
/usr/include/openssl/x509.h:1013:42: error: expected primary-expression before ‘int’
                               char *buf, int len);
                                          ^
/usr/include/openssl/x509.h:1013:49: error: expression list treated as compound expression in initializer [-fpermissive]
                               char *buf, int len);
                                                 ^
/usr/include/openssl/x509.h:1019:43: error: ‘name’ was not declared in this scope
 int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);
                                           ^
/usr/include/openssl/x509.h:1019:49: error: expected primary-expression before ‘int’
 int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);
                                                 ^
/usr/include/openssl/x509.h:1019:58: error: expected primary-expression before ‘int’
 int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);
                                                          ^
/usr/include/openssl/x509.h:1019:69: error: expression list treated as compound expression in initializer [-fpermissive]
 int X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);
                                                                     ^
/usr/include/openssl/x509.h:1020:43: error: ‘name’ was not declared in this scope
 int X509_NAME_get_index_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                           ^
/usr/include/openssl/x509.h:1020:61: error: expected primary-expression before ‘*’ token
 int X509_NAME_get_index_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                                             ^
/usr/include/openssl/x509.h:1020:62: error: ‘obj’ was not declared in this scope
 int X509_NAME_get_index_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
                                                              ^
/usr/include/openssl/x509.h:1021:32: error: expected primary-expression before ‘int’
                                int lastpos);
                                ^
/usr/include/openssl/x509.h:1021:43: error: expression list treated as compound expression in initializer [-fpermissive]
                                int lastpos);
                                           ^
/usr/include/openssl/x509.h:1022:49: error: ‘name’ was not declared in this scope
 X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc);
                                                 ^
/usr/include/openssl/x509.h:1022:55: error: expected primary-expression before ‘int’
 X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc);
                                                       ^
/usr/include/openssl/x509.h:1022:62: error: expression list treated as compound expression in initializer [-fpermissive]
 X509_NAME_ENTRY *X509_NAME_get_entry(X509_NAME *name, int loc);
                                                              ^
/usr/include/openssl/x509.h:1023:52: error: ‘name’ was not declared in this scope
 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);
                                                    ^
/usr/include/openssl/x509.h:1023:58: error: expected primary-expression before ‘int’
 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);
                                                          ^
/usr/include/openssl/x509.h:1023:65: error: expression list treated as compound expression in initializer [-fpermissive]
 X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);
                                                                 ^
/usr/include/openssl/x509.h:1024:36: error: ‘name’ was not declared in this scope
 int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne,
                                    ^
/usr/include/openssl/x509.h:1024:58: error: expected primary-expression before ‘*’ token
 int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne,
                                                          ^
/usr/include/openssl/x509.h:1024:59: error: ‘ne’ was not declared in this scope
 int X509_NAME_add_entry(X509_NAME *name, X509_NAME_ENTRY *ne,
                                                           ^
/usr/include/openssl/x509.h:1025:25: error: expected primary-expression before ‘int’
                         int loc, int set);
                         ^
/usr/include/openssl/x509.h:1025:34: error: expected primary-expression before ‘int’
                         int loc, int set);
                                  ^
/usr/include/openssl/x509.h:1025:41: error: expression list treated as compound expression in initializer [-fpermissive]
                         int loc, int set);
                                         ^
/usr/include/openssl/x509.h:1026:43: error: ‘name’ was not declared in this scope
 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type,
                                           ^
/usr/include/openssl/x509.h:1026:61: error: expected primary-expression before ‘*’ token
 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type,
                                                             ^
/usr/include/openssl/x509.h:1026:62: error: ‘obj’ was not declared in this scope
 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type,
                                                              ^
/usr/include/openssl/x509.h:1026:67: error: expected primary-expression before ‘int’
 int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type,
                                                                   ^
/usr/include/openssl/x509.h:1027:32: error: expected primary-expression before ‘unsigned’
                                unsigned char *bytes, int len, int loc,
                                ^
/usr/include/openssl/x509.h:1027:54: error: expected primary-expression before ‘int’
                                unsigned char *bytes, int len, int loc,
                                                      ^
/usr/include/openssl/x509.h:1027:63: error: expected primary-expression before ‘int’
                                unsigned char *bytes, int len, int loc,
                                                               ^
/usr/include/openssl/x509.h:1028:32: error: expected primary-expression before ‘int’
                                int set);
                                ^
/usr/include/openssl/x509.h:1028:39: error: expression list treated as compound expression in initializer [-fpermissive]
                                int set);
                                       ^
/usr/include/openssl/x509.h:1029:43: error: ‘name’ was not declared in this scope
 int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,
                                           ^
/usr/include/openssl/x509.h:1029:49: error: expected primary-expression before ‘int’
 int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,
                                                 ^
/usr/include/openssl/x509.h:1029:58: error: expected primary-expression before ‘int’
 int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,
                                                          ^
/usr/include/openssl/x509.h:1030:32: error: expected primary-expression before ‘unsigned’
                                unsigned char *bytes, int len, int loc,
                                ^
/usr/include/openssl/x509.h:1030:54: error: expected primary-expression before ‘int’
                                unsigned char *bytes, int len, int loc,
                                                      ^
/usr/include/openssl/x509.h:1030:63: error: expected primary-expression before ‘int’
                                unsigned char *bytes, int len, int loc,
                                                               ^
/usr/include/openssl/x509.h:1031:32: error: expected primary-expression before ‘int’
                                int set);
                                ^
/usr/include/openssl/x509.h:1031:39: error: expression list treated as compound expression in initializer [-fpermissive]
                                int set);
                                       ^
/usr/include/openssl/x509.h:1039:43: error: ‘name’ was not declared in this scope
 int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,
                                           ^
/usr/include/openssl/x509.h:1039:49: error: expected primary-expression before ‘const’
 int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,
                                                 ^
/usr/include/openssl/x509.h:1039:68: error: expected primary-expression before ‘int’
 int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,
                                                                    ^
/usr/include/openssl/x509.h:1040:32: error: expected primary-expression before ‘const’
                                const unsigned char *bytes, int len, int loc,
                                ^
/usr/include/openssl/x509.h:1040:60: error: expected primary-expression before ‘int’
                                const unsigned char *bytes, int len, int loc,
                                                            ^
/usr/include/openssl/x509.h:1040:69: error: expected primary-expression before ‘int’
                                const unsigned char *bytes, int len, int loc,
                                                                     ^
/usr/include/openssl/x509.h:1041:32: error: expected primary-expression before ‘int’
                                int set);
                                ^
/usr/include/openssl/x509.h:1041:39: error: expression list treated as compound expression in initializer [-fpermissive]
                                int set);
                                       ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509.h:1176:58: error: expected identifier before ‘(’ token
 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
                                                          ^
/usr/include/openssl/x509.h:1176:58: error: expected ‘)’ before numeric constant
 X509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,
                                                          ^
/usr/include/openssl/x509.h:1176:58: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:1176:58: error: expected initializer before numeric constant
/usr/include/openssl/x509.h:1178:48: error: expected identifier before ‘(’ token
 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);
                                                ^
/usr/include/openssl/x509.h:1178:48: error: expected ‘)’ before numeric constant
 X509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);
                                                ^
/usr/include/openssl/x509.h:1178:48: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509.h:1178:48: error: expected initializer before numeric constant
/usr/include/openssl/pem.h:159:5: error: expected ‘)’ before numeric constant
     X509_NAME *dn;
     ^
In file included from /usr/include/openssl/ssl.h:162:0,
                 from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:20,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/pem.h:453:32: error: expected ‘)’ before numeric constant
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
                                ^
/usr/include/openssl/pem.h:453:32: error: expected ‘)’ before numeric constant
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
                                ^
/usr/include/openssl/pem.h:453:16: error: invalid conversion from ‘LPCSTR {aka const char*}’ to ‘int’ [-fpermissive]
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
                ^
/usr/include/openssl/pem.h:453:1: error: expected ‘,’ or ‘;’ before ‘(’ token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
/usr/include/openssl/pem.h:453:16: error: invalid conversion from ‘LPCSTR {aka const char*}’ to ‘int’ [-fpermissive]
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
                ^
/usr/include/openssl/pem.h:453:1: error: expected ‘,’ or ‘;’ before ‘(’ token
 DECLARE_PEM_rw(X509_CERT_PAIR, X509_CERT_PAIR)
 ^
In file included from /usr/include/w32api/windows.h:95:0,
                 from /usr/include/w32api/winsock2.h:23,
                 from ./libtorrent/include/libtorrent/error_code.hpp:41,
                 from ./libtorrent/include/libtorrent/escape_string.hpp:41,
                 from ./libtorrent/include/libtorrent/peer_id.hpp:45,
                 from ./libtorrent/include/libtorrent/peer_connection.hpp:64,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:60,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/ssl.h:1611:5: error: expected ‘)’ before numeric constant
     X509_EXTENSIONS *tlsext_ocsp_exts;
     ^
/usr/include/openssl/x509v3.h:194:9: error: expected ‘)’ before numeric constant
         X509_NAME *directoryName;
         ^
/usr/include/openssl/x509v3.h:201:9: error: expected ‘)’ before numeric constant
         X509_NAME *dirn;        /* dirn */
         ^
/usr/include/openssl/x509v3.h:233:5: error: expected ‘)’ before numeric constant
     X509_NAME *dpname;
     ^
/usr/include/openssl/x509v3.h:578:49: error: expected identifier before ‘(’ token
 int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname);
                                                 ^
/usr/include/openssl/x509v3.h:578:49: error: expected ‘)’ before numeric constant
 int DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname);
                                                 ^
/usr/include/openssl/x509v3.h:578:49: error: expected ‘)’ before numeric constant
/usr/include/openssl/x509v3.h:578:49: error: expected initializer before numeric constant
In file included from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:25:0,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509v3.h:752:41: error: ‘nm’ was not declared in this scope
 int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,
                                         ^
In file included from /usr/include/openssl/crypto.h:129:0,
                 from ./libtorrent/include/../../src/allocators.h:12,
                 from ./libtorrent/include/../../src/serialize.h:22,
                 from ./libtorrent/include/../../src/leveldb.h:7,
                 from ./libtorrent/include/libtorrent/storage.hpp:36,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:63,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509v3.h:752:45: error: expected primary-expression before ‘struct’
 int X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,
                                             ^
In file included from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:25:0,
                 from /usr/include/boost/asio/ssl/context_base.hpp:19,
                 from /usr/include/boost/asio/ssl/context.hpp:27,
                 from ./libtorrent/include/libtorrent/tracker_manager.hpp:68,
                 from ./libtorrent/include/libtorrent/torrent.hpp:63,
                 from ./libtorrent/include/libtorrent/web_connection_base.hpp:67,
                 from libtorrent/src/web_connection_base.cpp:40:
/usr/include/openssl/x509v3.h:753:30: error: expected primary-expression before ‘unsigned’
                              unsigned long chtype);
                              ^
/usr/include/openssl/x509v3.h:753:50: error: expression list treated as compound expression in initializer [-fpermissive]
                              unsigned long chtype);
                                                  ^
Makefile:1407: recipe for target 'libtorrent/src/web_connection_base.o' failed
make: *** [libtorrent/src/web_connection_base.o] Error 1

Miguel Freitas

unread,
Dec 11, 2015, 4:32:06 AM12/11/15
to twiste...@googlegroups.com
​Please use the Virtualbox image to compile twister for windows native with mingw.


Cygwin builds are known to have problems.

regards,

Miguel

Amit Kumar Yadav

unread,
Dec 15, 2015, 2:43:48 AM12/15/15
to twister-users
Hi to All ,
Thank you so much Miguel for help me, I have build the twister successfully with the help of your's suggested link (using Gitian VirtualBox image) .
I want to see the code (working) and i want to create a project file on any IDE(Qt Creator/or suggest me any other which is more suitable) .Please help me.


Miguel Freitas

unread,
Dec 15, 2015, 7:34:55 AM12/15/15
to twiste...@googlegroups.com
I use Qt Creator.

regards,

Miguel


--
You received this message because you are subscribed to the Google Groups "twister-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-user...@googlegroups.com.
To post to this group, send email to twiste...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amit Kumar

unread,
Dec 15, 2015, 8:23:30 AM12/15/15
to twister-users


Hi Miguel,
Thank you so much for reply.
Please tell me,what steps you had followed and  what are  dependencies required with Qt creator for opening the twister-core(project file) code.
 

Miguel Freitas

unread,
Dec 15, 2015, 8:43:44 AM12/15/15
to twiste...@googlegroups.com
You should just use the option to import an existing project, which is not qmake-based.

The dependencies are described at twister.net.co (boost etc). They are they same if you use qt creator or not.

Just use the ./bootstrap.sh and it will generate the Makefiles.

regards,

Miguel


--
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Erkan Yilmaz

unread,
Dec 17, 2015, 8:38:59 AM12/17/15
to twiste...@googlegroups.com
>ERROR  Please see the screenshot :
there is no pic (attached)

On Thu, Dec 17, 2015 at 2:19 PM, Amit Kumar <amitkuma...@gmail.com> wrote:
Hi to All,

I have resolved the above problem with the help of this link : https://gitlab.pluribusgames.com/mirrors/bitcoin/commit/b3e0aaf36e294595c606af78feeeef158315a501

I got the new error boost library not found. Please tell me how i include boost in twister core.

ERROR  Please see the screenshot :


--
You received this message because you are subscribed to the Google Groups "twister-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-user...@googlegroups.com.
To post to this group, send email to twiste...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



**********************************************************************************************
This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.
**********************************************************************************************

Amit Kumar

unread,
Dec 18, 2015, 12:29:49 AM12/18/15
to twister-users
Hi to All,
When I am building the Twister-Core using MinGW (MSYS) this Error occur:
$ bootstrap.sh

Bootstrapping autotools for twister

Checking autotools requirements:

Checking for autoconf >= 2.63...
  testing autoconf... found 2.68
Checking for automake >= 1.11...
  testing automake... found 1.11.1
Checking for libtool >= 2.2.6...
  testing libtoolize... found 2.4
mkdir: cannot create directory `build-aux': File exists
Copying m4/config.rpath to build-aux

Processing configure.ac

Running libtoolize...
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running aclocal...
configure.ac:562: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in
body
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/lang.m4:194: AC
_LANG_CONFTEST is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2591
: _AC_COMPILE_IFELSE is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2607
: AC_COMPILE_IFELSE is expanded from...
configure.ac:133: CHECK_CXXFLAG is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/m4sugar/m4sh.m4:517: AS_
CASE is expanded from...
configure.ac:562: the top level
Running autoconf...
configure.ac:562: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in
body
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/lang.m4:194: AC
_LANG_CONFTEST is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2591
: _AC_COMPILE_IFELSE is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2607
: AC_COMPILE_IFELSE is expanded from...
configure.ac:133: CHECK_CXXFLAG is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/m4sugar/m4sh.m4:517: AS_
CASE is expanded from...
configure.ac:562: the top level
Running automake...
configure.ac:562: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in
body
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/lang.m4:194: AC
_LANG_CONFTEST is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2591
: _AC_COMPILE_IFELSE is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/general.m4:2607
: AC_COMPILE_IFELSE is expanded from...
configure.ac:133: CHECK_CXXFLAG is expanded from...
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/m4sugar/m4sh.m4:517: AS_
CASE is expanded from...
configure.ac:562: the top level

Bootstrap complete, now run `configure'.

Building twister 0.9.0

Checking for a C/C++ compiler to use:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ understands -c and -o together... yes

Checking system type:
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32

Initializing Automake:
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3

Initializing Libtool:
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... c:/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (c:/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... y
es
checking for BSD- or MS-compatible name lister (nm)... /c/mingw64/bin/nm
checking the name lister (/c/mingw64/bin/nm) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32 format...
func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain format... func_c
onvert_file_msys_to_w32
checking for c:/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object fi
les... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|
^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_imp
lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /c/mingw64/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (c:/mingw64/x86_64-w64-mingw32/bin/ld.exe) suppo
rts shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... c:/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (c:/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... y
es
checking whether the g++ linker (c:/mingw64/x86_64-w64-mingw32/bin/ld.exe) suppo
rts shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (c:/mingw64/x86_64-w64-mingw32/bin/ld.exe) suppo
rts shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for main in -lmingwthrd... yes
checking for main in -lkernel32... yes
checking for main in -luser32... yes
checking for main in -lgdi32... yes
checking for main in -lcomdlg32... yes
checking for main in -lwinspool... yes
checking for main in -lwinmm... yes
checking for main in -lshell32... yes
checking for main in -lcomctl32... yes
checking for main in -lole32... yes
checking for main in -loleaut32... yes
checking for main in -luuid... yes
checking for main in -lrpcrt4... yes
checking for main in -ladvapi32... yes
checking for main in -lws2_32... yes
checking for main in -lmswsock... yes
checking for main in -lshlwapi... yes
checking for main in -liphlpapi... yes
checking for main in -lcrypt32... yes

Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... no
checking whether -pthread is sufficient with -shared... no
checking whether -lpthread fixes that... no
checking whether -lc_r fixes that... no
configure: WARNING: Impossible to determine how to use pthreads with shared libr
aries
Checking for visibility support:
checking for __attribute__((visibility("hidden")))... found
yes

Checking for boost libraries:
checking for boostlib >= 1.44... configure: We could not detect the boost librar
ies (version 1.44 or higher). If you have a staged boost library (still not inst
alled) please specify $BOOST_ROOT in your environment and do not give a PATH to
--with-boost option.  If you are sure you have boost installed, then check your
version number looking in <boost/version.hpp>. See http://randspringer.de/boost
for more documentation.
configure: error: Boost library not found. Try using --with-boost=


I have build the boost library in "C:\deps\boost_1_57_0".
Using this command :
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stage I have set the #BOOST_ROOT  (C:\deps\boost_1_57_0) in environment variable.

Reply all
Reply to author
Forward
0 new messages