Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 28 Jul 2010 15:32:46 -0400
From: "Robert Harris" <rs904c@...scape.net>
To: <john-users@...ts.openwall.com>
Subject: John the Ripper v1.7.6 with jumbo patches, issues compiling in Solaris  {john-user discussion}

John-Users,

 

I originally sent this email to Alexander and Steve Christensen, now per
Alex, I'm sending it to the group.

 

Robert -

 

I think this would be best discussed on john-users, yet I'll comment below:

 

On Wed, Jul 28, 2010 at 12:15:43PM -0400, Robert Harris wrote:

> I'm basically wondering if I'm doing something wrong, or if there are 

> issues with the JtR  jumbo patches on Solaris.

 

Both.  The jumbo patch, in its present form, is known to break compiles with
Solaris x86-sse2 and x86-64 targets.  This is documented in comments in the
jumbo-patched *.S files:

 

$ fgrep -B1 Solaris *.S

x86-64.S- * FIXME: this depends on the assembler being able to multiply,
which won't

x86-64.S: * work on Solaris (unless the use of GNU assembler is forced).

--

x86-sse.S- * FIXME: this depends on the assembler being able to multiply,
which won't

x86-sse.S: * work on Solaris (unless the use of GNU assembler is forced).

 

As the comments say, you may nevertheless make a build by forcing the use of
GNU assembler instead of Sun's - but this time may be better spent on fixing
the source code to compile with Sun's as well.

 

As it relates to your errors, see below:

 

> DES_fmt.c:1: sorry, unimplemented: 64-bit mode not compiled in

 

You were trying to make a 64-bit build of JtR with a 32-bit only build of
gcc.

 

> XSHA_fmt.c:7:25: openssl/sha.h: No such file or directory

 

You don't have OpenSSL installed (or at least not where it is expected).

OpenSSL is a documented requirement of the jumbo patch.  (The rest of the
errors for XSHA_fmt.c have the same cause.)

 

Alexander

 

 

My original message below.

 

I've successfully compiled John the Ripper 1.7.6 with the latest (and other
previous) patches  on/for Windows and Linux, however  I'm having major
problems doing it in Solaris.  

 

See http://openwall.info/wiki/john/custom-builds

 

So on my Solaris 10 64-bit  x86 machine,  I was able to compile JtR  (with
no patches) using "make clean solaris-x86-any-gcc", but with the latest
patches, this fails.

I'm having trouble compiling with all of the other settings (like "make
clean solaris-x86-64-gcc" and "make clean solaris-x86-sse2-gcc", and the cc
won't work at all)  no matter if there are patches or not.

 

I'm basically wondering if I'm doing something wrong, or if there are issues
with the JtR  jumbo patches on Solaris.  (However, I didn't have any of
these errors on Windows or Linux with this exact patched code)

 

See multiple errors below, including the SHA errors.

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

############################################################################
##########

bash-3.00# make clean solaris-x86-64-gcc

rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf
../run/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com
../run/unique.com ../run/undrop.com ../run/john.exe ../run/unshadow.exe
../run/unafs.exe ../run/unique.exe ../run/undrop.exe ../run/genmkvpwd.exe
../run/mkvcalcproba.exe ../run/calc_stat.exe ../run/john-mingw.exe
../run/unshadow.exe ../run/unafs.exe ../run/unique.exe ../run/undrop.exe
../run/genmkvpwd.exe ../run/mkvcalcproba.exe ../run/calc_stat.exe

rm -f ../run/john.exe john-macosx-* *.o *.bak core

rm -f detect bench generic.h arch.h tmp.s

cp /dev/null Makefile.dep

ln -sf x86-64.h arch.h

make ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf \

                JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o
BSDI_fmt.o MD5_fmt.o MD5_std.o MD5_apache_fmt.o BFEgg_fmt.o BF_fmt.o
BF_std.o AFS_fmt.o LM_fmt.o NT_fmt.o XSHA_fmt.o DOMINOSEC_fmt.o lotus5_fmt.o
oracle_fmt.o oracle11_fmt.o MYSQL_fmt.o mysqlSHA1_fmt.o KRB4_fmt.o
KRB4_std.o KRB5_fmt.o KRB5_std.o md5_go.o rawMD5go_fmt.o md5_eq.o PO_fmt.o
md5.o hmacmd5.o hmacMD5_fmt.o IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o
NSLDAPS_fmt.o OPENLDAPS_fmt.o base64.o md4.o smbencrypt.o mscash_fmt.o
NETLM_fmt.o NETNTLM_fmt.o NETLMv2_fmt.o NETNTLMv2_fmt.o NETHALFLM_fmt.o
MSCHAPv2_fmt.o mssql_fmt.o mssql05_fmt.o EPI_fmt.o PHPS_fmt.o
MYSQL_fast_fmt.o pixMD5_fmt.o sapG_fmt.o sapB_fmt.o NS_fmt.o HDAA_fmt.o
phpassMD5_fmt.o md5_gen_fmt.o md5_gen_parser.o md5_gen_preloads.o DMD5_fmt.o
SKEY_fmt.o batch.o bench.o charset.o common.o compiler.o config.o cracker.o
crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o loader.o
logger.o math.o memory.o misc.o options.o params.o path.o recovery.o rpp.o
rules.o signals.o single.o status.o tty.o wordlist.o mkv.o mkvlib.o
unshadow.o unafs.o undrop.o unique.o c3_fmt.o x86-64.o" \

                CFLAGS="-c -Wall -O2 -fomit-frame-pointer
-I/usr/local/include  -m64 -DHAVE_CRYPT" \

                ASFLAGS="-c -Wall -O2 -fomit-frame-pointer
-I/usr/local/include  -m64" \

                LDFLAGS="-s -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto
-lm  -m64 -lrt"

make[1]: Entering directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -m64
-DHAVE_CRYPT -funroll-loops DES_fmt.c

DES_fmt.c:1: sorry, unimplemented: 64-bit mode not compiled in

make[1]: *** [DES_fmt.o] Error 1

make[1]: Leaving directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

make: *** [solaris-x86-64-gcc] Error 2

 

############################################################################
##########

 

############################################################################
##########

bash-3.00# make clean solaris-x86-sse2-gcc

rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf
../run/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com
../run/unique.com ../run/undrop.com ../run/john.exe ../run/unshadow.exe
../run/unafs.exe ../run/unique.exe ../run/undrop.exe ../run/genmkvpwd.exe
../run/mkvcalcproba.exe ../run/calc_stat.exe ../run/john-mingw.exe
../run/unshadow.exe ../run/unafs.exe ../run/unique.exe ../run/undrop.exe
../run/genmkvpwd.exe ../run/mkvcalcproba.exe ../run/calc_stat.exe

rm -f ../run/john.exe john-macosx-* *.o *.bak core

rm -f detect bench generic.h arch.h tmp.s

cp /dev/null Makefile.dep

ln -sf x86-sse.h arch.h

make ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf \

                JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o
BSDI_fmt.o MD5_fmt.o MD5_std.o MD5_apache_fmt.o BFEgg_fmt.o BF_fmt.o
BF_std.o AFS_fmt.o LM_fmt.o NT_fmt.o XSHA_fmt.o DOMINOSEC_fmt.o lotus5_fmt.o
oracle_fmt.o oracle11_fmt.o MYSQL_fmt.o mysqlSHA1_fmt.o KRB4_fmt.o
KRB4_std.o KRB5_fmt.o KRB5_std.o md5_go.o rawMD5go_fmt.o md5_eq.o PO_fmt.o
md5.o hmacmd5.o hmacMD5_fmt.o IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o
NSLDAPS_fmt.o OPENLDAPS_fmt.o base64.o md4.o smbencrypt.o mscash_fmt.o
NETLM_fmt.o NETNTLM_fmt.o NETLMv2_fmt.o NETNTLMv2_fmt.o NETHALFLM_fmt.o
MSCHAPv2_fmt.o mssql_fmt.o mssql05_fmt.o EPI_fmt.o PHPS_fmt.o
MYSQL_fast_fmt.o pixMD5_fmt.o sapG_fmt.o sapB_fmt.o NS_fmt.o HDAA_fmt.o
phpassMD5_fmt.o md5_gen_fmt.o md5_gen_parser.o md5_gen_preloads.o DMD5_fmt.o
SKEY_fmt.o batch.o bench.o charset.o common.o compiler.o config.o cracker.o
crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o loader.o
logger.o math.o memory.o misc.o options.o params.o path.o recovery.o rpp.o
rules.o signals.o single.o status.o tty.o wordlist.o mkv.o mkvlib.o
unshadow.o unafs.o undrop.o unique.o c3_fmt.o x86.o x86-sse.o sha1-mmx.o
md5-mmx.o" \

                CFLAGS="-c -Wall -O2 -fomit-frame-pointer
-I/usr/local/include  -DHAVE_CRYPT" \

                LDFLAGS="-s -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto
-lm  -lrt"

make[1]: Entering directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_bs.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-finline-functions DES_bs_b.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BSDI_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_apache_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BFEgg_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BF_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BF_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops AFS_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops LM_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops NT_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops XSHA_fmt.c

XSHA_fmt.c:7:25: openssl/sha.h: No such file or directory

XSHA_fmt.c:43: error: syntax error before "ctx"

XSHA_fmt.c:43: warning: type defaults to `int' in declaration of `ctx'

XSHA_fmt.c:43: warning: data definition has no type or storage class

XSHA_fmt.c: In function `crypt_all':

XSHA_fmt.c:147: warning: implicit declaration of function `SHA1_Init'

XSHA_fmt.c:148: warning: implicit declaration of function `SHA1_Update'

XSHA_fmt.c:150: warning: implicit declaration of function `SHA1_Final'

make[1]: *** [XSHA_fmt.o] Error 1

make[1]: Leaving directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

make: *** [solaris-x86-sse2-gcc] Error 2

############################################################################
##########

 

@@@@

make clean solaris-x86-any-gcc (works on unpatch JtR, but not patched)

############################################################################
##########

bash-3.00# make clean solaris-x86-any-gcc

rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf
../run/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com
../run/unique.com ../run/undrop.com ../run/john.exe ../run/unshadow.exe
../run/unafs.exe ../run/unique.exe ../run/undrop.exe ../run/genmkvpwd.exe
../run/mkvcalcproba.exe ../run/calc_stat.exe ../run/john-mingw.exe
../run/unshadow.exe ../run/unafs.exe ../run/unique.exe ../run/undrop.exe
../run/genmkvpwd.exe ../run/mkvcalcproba.exe ../run/calc_stat.exe

rm -f ../run/john.exe john-macosx-* *.o *.bak core

rm -f detect bench generic.h arch.h tmp.s

cp /dev/null Makefile.dep

rm -f arch.h

ln -s x86-any.h arch.h

make ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop
../run/genmkvpwd ../run/mkvcalcproba ../run/calc_stat ../run/tgtsnarf \

                SHELL=/bin/sh \

                JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o
BSDI_fmt.o MD5_fmt.o MD5_std.o MD5_apache_fmt.o BFEgg_fmt.o BF_fmt.o
BF_std.o AFS_fmt.o LM_fmt.o NT_fmt.o XSHA_fmt.o DOMINOSEC_fmt.o lotus5_fmt.o
oracle_fmt.o oracle11_fmt.o MYSQL_fmt.o mysqlSHA1_fmt.o KRB4_fmt.o
KRB4_std.o KRB5_fmt.o KRB5_std.o md5_go.o rawMD5go_fmt.o md5_eq.o PO_fmt.o
md5.o hmacmd5.o hmacMD5_fmt.o IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o
NSLDAPS_fmt.o OPENLDAPS_fmt.o base64.o md4.o smbencrypt.o mscash_fmt.o
NETLM_fmt.o NETNTLM_fmt.o NETLMv2_fmt.o NETNTLMv2_fmt.o NETHALFLM_fmt.o
MSCHAPv2_fmt.o mssql_fmt.o mssql05_fmt.o EPI_fmt.o PHPS_fmt.o
MYSQL_fast_fmt.o pixMD5_fmt.o sapG_fmt.o sapB_fmt.o NS_fmt.o HDAA_fmt.o
phpassMD5_fmt.o md5_gen_fmt.o md5_gen_parser.o md5_gen_preloads.o DMD5_fmt.o
SKEY_fmt.o batch.o bench.o charset.o common.o compiler.o config.o cracker.o
crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o loader.o
logger.o math.o memory.o misc.o options.o params.o path.o recovery.o rpp.o
rules.o signals.o single.o status.o tty.o wordlist.o mkv.o mkvlib.o
unshadow.o unafs.o undrop.o unique.o c3_fmt.o solaris-x86.o" \

                CFLAGS="-c -Wall -O2 -fomit-frame-pointer
-I/usr/local/include  -DHAVE_CRYPT" \

                LDFLAGS="-s -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto
-lm  -lc -lrt"

make[1]: Entering directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops DES_bs.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-finline-functions DES_bs_b.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BSDI_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops MD5_apache_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BFEgg_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BF_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops BF_std.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops AFS_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops LM_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops NT_fmt.c

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT
-funroll-loops XSHA_fmt.c

XSHA_fmt.c:7:25: openssl/sha.h: No such file or directory

XSHA_fmt.c:43: error: syntax error before "ctx"

XSHA_fmt.c:43: warning: type defaults to `int' in declaration of `ctx'

XSHA_fmt.c:43: warning: data definition has no type or storage class

XSHA_fmt.c: In function `crypt_all':

XSHA_fmt.c:147: warning: implicit declaration of function `SHA1_Init'

XSHA_fmt.c:148: warning: implicit declaration of function `SHA1_Update'

XSHA_fmt.c:150: warning: implicit declaration of function `SHA1_Final'

make[1]: *** [XSHA_fmt.o] Error 1

make[1]: Leaving directory `/rob-dev/john-1.7.6-jumbo-6-MSCHAPv2-dev/src'

make: *** [solaris-x86-any-gcc] Error 2

############################################################################
##########

 

Thank you

 

-Robert Harris


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.