Skip to content

Commit

Permalink
john: use gcc 4.9 instead of 5 (unbreaks build)
Browse files Browse the repository at this point in the history
Fixes this build error:

  dynamic_fmt.o: In function `DynamicFunc__crypt_md5_to_input_raw_Overwrite_NoLen':
  .../john-1.8.0-jumbo-1/src/dynamic_fmt.c:4989: undefined reference to `MD5_body_for_thread'

Upstream issue:

  openwall/john#1093
  • Loading branch information
bjornfor committed May 21, 2016
1 parent b5f322c commit d565687
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/security/john/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, openssl, nss, nspr, kerberos, gmp, zlib, libpcap, re2
, writeText
, writeText, gcc
}:

with stdenv.lib;
Expand Down Expand Up @@ -27,7 +27,7 @@ stdenv.mkDerivation rec {
preConfigure = "cd src";
configureFlags = [ "--disable-native-macro" ];

buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 ];
buildInputs = [ openssl nss nspr kerberos gmp zlib libpcap re2 gcc ];
enableParallelBuilding = true;

NIX_CFLAGS_COMPILE = [ "-DJOHN_SYSTEMWIDE=1" ];
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,9 @@ in

jnettop = callPackage ../tools/networking/jnettop { };

john = callPackage ../tools/security/john { };
john = callPackage ../tools/security/john {
gcc = gcc49; # doesn't build with gcc5
};

jp2a = callPackage ../applications/misc/jp2a { };

Expand Down

0 comments on commit d565687

Please sign in to comment.