[GH-ISSUE #2931] bugs while installing jumbo john #1847

Closed
opened 2026-10-15 04:26:33 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @Setplus01 on GitHub (Nov 28, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2931

Well, I have some problems with installing JtR. Here my commands (Ubuntu 16.04 LTS):

sudo apt-get install build-essential libssl-dev
sudo apt-get install yasm libgmp-dev libpcap-dev libnss3-dev libkrb5-dev pkg-config libbz2-dev zlib1g-dev
sudo apt-get install libopenmpi-dev openmpi-bin
sudo apt-get install subversion cmake bison flex
mkdir ~/src && cd ~/src
svn checkout https://github.com/teeshop/rexgen.git rexgen
cd rexgen/trunk/src/
mkdir build && cd build
cmake ..
make && sudo make install
cd ~/src
git clone git://github.com/magnumripper/JohnTheRipper -b bleeding-jumbo john
cd ~/src/john/src
./configure --enable-mpi && make -s clean && make -sj8

After that I have following errors:

misc.c: In function ‘real_error_msg’:
misc.c:63:2: warning: ‘args’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  vfprintf(stderr, format, args);
  ^
ar: creating aes.a
ar: creating secp256k1.a
encfs_fmt_plug.o: In function `init':
/home/setplus/src/john/src/encfs_fmt_plug.c:80: undefined reference to `OPENSSL_init_ssl'
/home/setplus/src/john/src/encfs_fmt_plug.c:81: undefined reference to `OPENSSL_init_ssl'
/home/setplus/src/john/src/encfs_fmt_plug.c:82: undefined reference to `OPENSSL_init_crypto'
/home/setplus/src/john/src/encfs_fmt_plug.c:87: undefined reference to `OpenSSL_version_num'
gpg_common_plug.o: In function `gpg_common_check':
/home/setplus/src/john/src/gpg_common_plug.c:1587: undefined reference to `DSA_set0_pqg'
/home/setplus/src/john/src/gpg_common_plug.c:1588: undefined reference to `DSA_set0_key'
gpg_common_plug.o: In function `check_dsa_secret_key':
/home/setplus/src/john/src/gpg_common_plug.c:1081: undefined reference to `DSA_get0_pqg'
/home/setplus/src/john/src/gpg_common_plug.c:1082: undefined reference to `DSA_get0_key'
listconf.o: In function `listconf_list_build_info':
/home/setplus/src/john/src/listconf.c:207: undefined reference to `OpenSSL_version_num'
/home/setplus/src/john/src/listconf.c:208: undefined reference to `OpenSSL_version_num'
/home/setplus/src/john/src/listconf.c:213: undefined reference to `OpenSSL_version'
/home/setplus/src/john/src/listconf.c:214: undefined reference to `OpenSSL_version'
collect2: error: ld returned 1 exit status
Makefile:1506: recipe for target '../run/john' failed
make[1]: *** [../run/john] Error 1
Makefile:175: recipe for target 'default' failed
make: *** [default] Error 2

I can't understand what to do. Help me please.

Originally created by @Setplus01 on GitHub (Nov 28, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2931 Well, I have some problems with installing JtR. Here my commands (Ubuntu 16.04 LTS): `sudo apt-get install build-essential libssl-dev` `sudo apt-get install yasm libgmp-dev libpcap-dev libnss3-dev libkrb5-dev pkg-config libbz2-dev zlib1g-dev` `sudo apt-get install libopenmpi-dev openmpi-bin` ` sudo apt-get install subversion cmake bison flex` ` mkdir ~/src && cd ~/src` ` svn checkout https://github.com/teeshop/rexgen.git rexgen` ` cd rexgen/trunk/src/` ` mkdir build && cd build ` ` cmake ..` ` make && sudo make install` `cd ~/src` `git clone git://github.com/magnumripper/JohnTheRipper -b bleeding-jumbo john` `cd ~/src/john/src` `./configure --enable-mpi && make -s clean && make -sj8` After that I have following errors: ``` misc.c: In function ‘real_error_msg’: misc.c:63:2: warning: ‘args’ may be used uninitialized in this function [-Wmaybe-uninitialized] vfprintf(stderr, format, args); ^ ar: creating aes.a ar: creating secp256k1.a encfs_fmt_plug.o: In function `init': /home/setplus/src/john/src/encfs_fmt_plug.c:80: undefined reference to `OPENSSL_init_ssl' /home/setplus/src/john/src/encfs_fmt_plug.c:81: undefined reference to `OPENSSL_init_ssl' /home/setplus/src/john/src/encfs_fmt_plug.c:82: undefined reference to `OPENSSL_init_crypto' /home/setplus/src/john/src/encfs_fmt_plug.c:87: undefined reference to `OpenSSL_version_num' gpg_common_plug.o: In function `gpg_common_check': /home/setplus/src/john/src/gpg_common_plug.c:1587: undefined reference to `DSA_set0_pqg' /home/setplus/src/john/src/gpg_common_plug.c:1588: undefined reference to `DSA_set0_key' gpg_common_plug.o: In function `check_dsa_secret_key': /home/setplus/src/john/src/gpg_common_plug.c:1081: undefined reference to `DSA_get0_pqg' /home/setplus/src/john/src/gpg_common_plug.c:1082: undefined reference to `DSA_get0_key' listconf.o: In function `listconf_list_build_info': /home/setplus/src/john/src/listconf.c:207: undefined reference to `OpenSSL_version_num' /home/setplus/src/john/src/listconf.c:208: undefined reference to `OpenSSL_version_num' /home/setplus/src/john/src/listconf.c:213: undefined reference to `OpenSSL_version' /home/setplus/src/john/src/listconf.c:214: undefined reference to `OpenSSL_version' collect2: error: ld returned 1 exit status Makefile:1506: recipe for target '../run/john' failed make[1]: *** [../run/john] Error 1 Makefile:175: recipe for target 'default' failed make: *** [default] Error 2 ``` I can't understand what to do. Help me please.
bsakaguchi 2026-10-15 04:26:33 +07:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@jfoug commented on GitHub (Nov 28, 2017):

https://www.openssl.org/docs/man1.1.0/ssl/OpenSSL_add_ssl_algorithms.html

HISTORY

The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were
deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl().

I wonder if your OpenSSL headers do not match your OpenSSL libraries ? It sounds like you have v1.1 headers, but the libs are prior to v1.1

Try:

sudo apt-get install libssl

<!-- gh-comment-id:347517424 --> @jfoug commented on GitHub (Nov 28, 2017): https://www.openssl.org/docs/man1.1.0/ssl/OpenSSL_add_ssl_algorithms.html ``` HISTORY The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). ``` I wonder if your OpenSSL headers do not match your OpenSSL libraries ? It sounds like you have v1.1 headers, but the libs are prior to v1.1 Try: ```sudo apt-get install libssl```
Author
Owner

@jfoug commented on GitHub (Nov 28, 2017):

NOTE, I believe we still have problems supporting oSSL v1.1 in general. the problem is some of the versioning items were depreciated in 1.1 and REMOVED. The listconf.c file will not build as it is in v1.1

<!-- gh-comment-id:347521824 --> @jfoug commented on GitHub (Nov 28, 2017): NOTE, I believe we still have problems supporting oSSL v1.1 in general. the problem is some of the versioning items were depreciated in 1.1 and REMOVED. The listconf.c file will not build as it is in v1.1
Author
Owner

@Setplus01 commented on GitHub (Nov 28, 2017):

@jfoug I tried dpkg --add-architecture i386 apt-get update apt-get install libssl-dev:i386 and get the same errors... :(

<!-- gh-comment-id:347538483 --> @Setplus01 commented on GitHub (Nov 28, 2017): @jfoug I tried `dpkg --add-architecture i386 apt-get update apt-get install libssl-dev:i386` and get the same errors... :(
Author
Owner

@jfoug commented on GitHub (Nov 28, 2017):

Have you tried to update the libssl like I asked? The build sounds like your headers and libs are NOT in sync.

<!-- gh-comment-id:347550939 --> @jfoug commented on GitHub (Nov 28, 2017): Have you tried to update the libssl like I asked? The build sounds like your headers and libs are NOT in sync.
Author
Owner

@Setplus01 commented on GitHub (Nov 28, 2017):

@jfoug Your command sudo apt-get install libssl doesn't work, when I am try to use it in terminal. So I changed it to commands from my last answer.

<!-- gh-comment-id:347553978 --> @Setplus01 commented on GitHub (Nov 28, 2017): @jfoug Your command `sudo apt-get install libssl` doesn't work, when I am try to use it in terminal. So I changed it to commands from my last answer.
Author
Owner

@kholia commented on GitHub (Nov 28, 2017):

@Setplus01 Which Linux distribution are you using? I don't think that you are using Ubuntu 16.04 LTS or Ubuntu 17.10. I suspect that you are using Kali Linux or something based on Debian sid.

https://launchpad.net/ubuntu/artful/+package/libssl-dev still uses OpenSSL 1.0.2 series which is known to work.

<!-- gh-comment-id:347571471 --> @kholia commented on GitHub (Nov 28, 2017): @Setplus01 Which Linux distribution are you using? I don't think that you are using `Ubuntu 16.04 LTS` or `Ubuntu 17.10`. I suspect that you are using `Kali Linux` or something based on Debian `sid`. https://launchpad.net/ubuntu/artful/+package/libssl-dev still uses OpenSSL 1.0.2 series which is known to work.
Author
Owner

@Setplus01 commented on GitHub (Nov 28, 2017):

@kholia, no-no, I use Ubuntu 16.04 LTS and that is crazy for me too.

<!-- gh-comment-id:347574516 --> @Setplus01 commented on GitHub (Nov 28, 2017): @kholia, no-no, I use `Ubuntu 16.04 LTS` and that is crazy for me too.
Author
Owner

@kholia commented on GitHub (Nov 28, 2017):

I believe that these compilation errors cannot be triggered on a regular Ubuntu 16.04 LTS installation. Your installation of Ubuntu is likely broken. Perhaps reinstall, and retry?

I think it is better to discuss this issue on http://www.openwall.com/lists/john-users/.

<!-- gh-comment-id:347581281 --> @kholia commented on GitHub (Nov 28, 2017): I believe that these compilation errors cannot be triggered on a regular `Ubuntu 16.04 LTS` installation. Your installation of Ubuntu is likely broken. Perhaps reinstall, and retry? I think it is better to discuss this issue on http://www.openwall.com/lists/john-users/.
Author
Owner

@Setplus01 commented on GitHub (Nov 28, 2017):

@kholia, ok, thanks.

<!-- gh-comment-id:347581537 --> @Setplus01 commented on GitHub (Nov 28, 2017): @kholia, ok, thanks.
Author
Owner

@kholia commented on GitHub (Nov 29, 2017):

For reference purposes,

<!-- gh-comment-id:347757035 --> @kholia commented on GitHub (Nov 29, 2017): For reference purposes, + Current JtR Jumbo builds fine on `Kali 2017.3`. + https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes is relevant to this topic.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1847
No description provided.