LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-04-2017, 02:00 PM   #1
hariskar
Member
 
Registered: Feb 2017
Distribution: Gentoo, Linux From Scratch
Posts: 53

Rep: Reputation: Disabled
libtorrent-0.13.6 make error


I try to make libtorrent but I get this error:
No problem in configure.

Code:
make[3]: Entering directory '/sources/libtorrent-0.13.6/src/utils'
/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I. -I./.. -I../.. -I/usr/include -I/usr/include  -pthread -g -O2 -g -DDEBUG -fvisibility=hidden  -MT diffie_hellman.lo -MD -MP -MF .deps/diffie_hellman.Tpo -c -o diffie_hellman.lo diffie_hellman.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I./.. -I../.. -I/usr/include -I/usr/include -pthread -g -O2 -g -DDEBUG -fvisibility=hidden -MT diffie_hellman.lo -MD -MP -MF .deps/diffie_hellman.Tpo -c diffie_hellman.cc  -fPIC -DPIC -o .libs/diffie_hellman.o
diffie_hellman.cc: In constructor 'torrent::DiffieHellman::DiffieHellman(const unsigned char*, int, const unsigned char*, int)':
diffie_hellman.cc:57:7: error: invalid use of incomplete type 'DH {aka struct dh_st}'
   m_dh->p = BN_bin2bn(prime, primeLength, NULL);
       ^~
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
diffie_hellman.cc:57:9: error: invalid use of incomplete type 'DH {aka struct dh_st}'
   m_dh->p = BN_bin2bn(prime, primeLength, NULL);
         ^
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
diffie_hellman.cc:58:7: error: invalid use of incomplete type 'DH {aka struct dh_st}'
   m_dh->g = BN_bin2bn(generator, generatorLength, NULL);
       ^~
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
diffie_hellman.cc:58:9: error: invalid use of incomplete type 'DH {aka struct dh_st}'
   m_dh->g = BN_bin2bn(generator, generatorLength, NULL);
         ^
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
diffie_hellman.cc: In member function 'bool torrent::DiffieHellman::is_valid() const':
diffie_hellman.cc:76:30: error: invalid use of incomplete type 'DH {aka struct dh_st}'
   return m_dh != NULL && m_dh->pub_key != NULL;
                              ^~
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
diffie_hellman.cc:106:19: error: invalid use of incomplete type 'DH {aka struct dh_st}'
     BN_bn2bin(m_dh->pub_key, dest + length - BN_num_bytes(m_dh->pub_key));
                   ^~
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
diffie_hellman.cc:106:21: error: invalid use of incomplete type 'DH {aka struct dh_st}'
     BN_bn2bin(m_dh->pub_key, dest + length - BN_num_bytes(m_dh->pub_key));
                     ^~~~~~~
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
In file included from diffie_hellman.cc:43:0:
diffie_hellman.cc:106:63: error: invalid use of incomplete type 'DH {aka struct dh_st}'
     BN_bn2bin(m_dh->pub_key, dest + length - BN_num_bytes(m_dh->pub_key));
                                                               ^
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
In file included from diffie_hellman.cc:43:0:
diffie_hellman.cc:106:65: error: invalid use of incomplete type 'DH {aka struct dh_st}'
     BN_bn2bin(m_dh->pub_key, dest + length - BN_num_bytes(m_dh->pub_key));
                                                                 ^
In file included from /usr/include/openssl/bn.h:32:0,
                 from diffie_hellman.cc:43:
/usr/include/openssl/ossl_typ.h:104:16: note: forward declaration of 'DH {aka struct dh_st}'
 typedef struct dh_st DH;
                ^~~~~
make[3]: *** [Makefile:413: diffie_hellman.lo] Error 1
make[3]: Leaving directory '/sources/libtorrent-0.13.6/src/utils'
make[2]: *** [Makefile:562: all-recursive] Error 1
make[2]: Leaving directory '/sources/libtorrent-0.13.6/src'
make[1]: *** [Makefile:494: all-recursive] Error 1
make[1]: Leaving directory '/sources/libtorrent-0.13.6'
make: *** [Makefile:402: all] Error 2

Any help please
 
Old 11-04-2017, 04:57 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
It appears that libtorrent was not ported to openssl-1.1.0 yet. You can try to force it to build against openssl-1.0.2. Additionally, apply the following patch: https://github.com/rakshasa/libtorre...4607bbf7.patch (you may need to run autoreconf -fi)
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sboupgrade libtorrent fails on 14.1 simotrone Slackware 2 11-28-2015 11:40 AM
./configuring libtorrent Pytheas Linux - Software 6 07-08-2010 01:39 PM
rtorrent: error while loading shared libraries: libtorrent.so.11: cannot open shared orsty9001 Linux - Software 3 10-29-2008 09:16 PM
rtorrent/libtorrent error truthe Linux - Software 0 06-26-2005 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration