Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.13.7 recipe for target 'all-recursive' | 'diffie_hellman.lo' | 'all' failed #173

Closed
mvegetto opened this issue Jun 17, 2018 · 3 comments

Comments

@mvegetto
Copy link

cd /tmp
git clone https://github.com/rakshasa/libtorrent.git
cd libtorrent
git checkout v0.13.7


./autogen.sh
./configure
make
make install

Makefile:422: recipe for target 'diffie_hellman.lo' failed
make[3]: *** [diffie_hellman.lo] Error 1
make[3]: Leaving directory '/tmp/libtorrent/src/utils'
Makefile:573: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/libtorrent/src'
Makefile:503: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/libtorrent'
Makefile:412: recipe for target 'all' failed
make: *** [all] Error 2

@mvegetto
Copy link
Author

Fixed by using the following code @ configure.ac

AC_ARG_ENABLE(openssl,
[ --disable-openssl Don't use OpenSSL's SHA1 implementation.],
[
if test "$enableval" = "yes"; then
dnl move to scripts.
PKG_CHECK_MODULES(OPENSSL, libcrypto,
CXXFLAGS="$CXXFLAGS $OPENSSL_CFLAGS";
LIBS="$LIBS $OPENSSL_LIBS")

  AC_DEFINE(USE_OPENSSL, 1, Using OpenSSL.)
  AC_DEFINE(USE_OPENSSL_SHA, 1, Using OpenSSL's SHA1 implementation.)
  AC_CHECK_LIB([crypto], [DH_set0_pqg], [AC_DEFINE(USE_OPENSSL_1_1, 1, Using OpenSSL 1.1.)])

else
  AC_DEFINE(USE_NSS_SHA, 1, Using Mozilla's SHA1 implementation.)
fi

],[
PKG_CHECK_MODULES(OPENSSL, libcrypto,
CXXFLAGS="$CXXFLAGS $OPENSSL_CFLAGS";
LIBS="$LIBS $OPENSSL_LIBS")

AC_DEFINE(USE_OPENSSL, 1, Using OpenSSL.)
AC_DEFINE(USE_OPENSSL_SHA, 1, Using OpenSSL's SHA1 implementation.)
AC_CHECK_LIB([crypto], [DH_set0_pqg], [AC_DEFINE(USE_OPENSSL_1_1, 1, Using OpenSSL 1.1.)])

]
)

@mvegetto
Copy link
Author

For diffie_hellman.lo I have used the following code:

https://raw.githubusercontent.com/exrat/rutorrent-bonobox/master/files/rutorrent/diffie_hellman.cc

@kk140906
Copy link

good,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants