Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 17 Sep 2007 10:46:39 +0200
From: "thomas springer" <thomas.springer@...il.com>
To: john-users@...ts.openwall.com
Subject: compiling 1.7.2+multipatch on cygwin gives an error

Hi,
has anybody sucessfully compiled 1.7.2+multipatch under cygwin?
i fail  to compile john 1.7.2 with eric winklers multipatch under cygwin.

compiling 1.7.2 (plain) works fine
compiling 1.7.0+multipatch works fine
compiling 1.7.2+multipatch fails

id added a few modifications to the makefile that were necessary to
compile 1.7.0+multipatch:
 added ldes to LIBS and LD:
 LIBS = -L/usr/local/lib -L/usr/local/ssl/lib -ldes -lcrypto -lm
 $(LD) $(JOHN_OBJS) -lkernel32 -ldes -o ../run/john.exe
	strip ../run/john.exe

I noticed that i have 2 different des.h on my machine:
des.h from compiling LibDes itself (11.424 Bytes)
/* crypto/des/des.org */
/* Copyright (C) 1995-1997 Eric Young (eay@...ptsoft.com)
 * All rights reserved.

des.h from compiling Openssl 0.9.8e (10.724 Bytes)
/* crypto/des/des.h */
/* Copyright (C) 1995-1997 Eric Young (eay@...ptsoft.com)
 * All rights reserved.
 *

I tried with both - different errors, but no luck (or maybe i just
forgot sth. or put it in a wrong combination?)

sprin-th@...muca08162 /cygdrive/d/data/cyg
$ patch -p0 <john-1.7.2-all-7.diff
patching file john-1.7.2/src/BFEgg_fmt.c
patching file john-1.7.2/src/DOMINOSEC_fmt.c
patching file john-1.7.2/src/IPB2_fmt.c
patching file john-1.7.2/src/KRB5_fmt.c
patching file john-1.7.2/src/KRB5_std.c
patching file john-1.7.2/src/KRB5_std.h
patching file john-1.7.2/src/MD5_apache_fmt.c
patching file john-1.7.2/src/MD5_fmt.c
patching file john-1.7.2/src/MD5_std.c
patching file john-1.7.2/src/MD5_std.h
patching file john-1.7.2/src/MYSQL_fmt.c
patching file john-1.7.2/src/Makefile
patching file john-1.7.2/src/NETLM_fmt.c
patching file john-1.7.2/src/NETNTLM_fmt.c
patching file john-1.7.2/src/NSLDAPS_fmt.c
patching file john-1.7.2/src/NSLDAP_fmt.c
patching file john-1.7.2/src/NT_fmt.c
patching file john-1.7.2/src/PO_fmt.c
patching file john-1.7.2/src/base64.c
patching file john-1.7.2/src/base64.h
patching file john-1.7.2/src/bf_tab.h
patching file john-1.7.2/src/blowfish.c
patching file john-1.7.2/src/blowfish.h
patching file john-1.7.2/src/byteorder.h
patching file john-1.7.2/src/inc.c
patching file john-1.7.2/src/john.c
patching file john-1.7.2/src/loader.c
patching file john-1.7.2/src/lotus5_fmt.c
patching file john-1.7.2/src/md4.c
patching file john-1.7.2/src/md4.h
patching file john-1.7.2/src/md5.c
patching file john-1.7.2/src/md5.h
patching file john-1.7.2/src/md5_go.c
patching file john-1.7.2/src/md5_go.h
patching file john-1.7.2/src/mscash_fmt.c
patching file john-1.7.2/src/options.c
    I A  makefile (Modified)(conf)    Row 722  Col 44  10:40  Ctrl-K H for help
../run/john.exe: $(JOHN_OBJS)
        $(LD) $(JOHN_OBJS) -lkernel32 -ldes -o ../run/john.exe
        strip ../run/john.exe

../run/unshadow.exe: symlink.c
        $(CC) symlink.c -o ../run/unshadow.exe
        strip ../run/unshadow.exe

../run/unafs.exe: symlink.c
        $(CC) symlink.c -o ../run/unafs.exe
        strip ../run/unafs.exe

../run/undrop.exe: symlink.c
        $(CC) symlink.c -o ../run/undrop.exe
        strip ../run/undrop.exe

../run/unique.exe: symlink.c
        $(CC) symlink.c -o ../run/unique.exe
        strip ../run/unique.exe

# Inlining the S-boxes produces faster code, as long as they fit in the cache
# (that is, on RISC with at least 8 KB of L1 code cache).
DES_bs_b.o: DES_bs_b.c DES_bs_s.c DES_bs_n.c
        $(CC) $(CFLAGS) $(OPT_INLINE) DES_bs_b.c
File makefile saved

sprin-th@...muca08162 /cygdrive/d/data/cyg/john-1.7.2/src
$ make clean win32-cygwin-x86-sse2
rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/undrop ../ru
n/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com ../run/unique.co
m ../run/undrop.com ../run/john.exe ../run/unshadow.exe ../run/unafs.exe ../run/
unique.exe ../run/undrop.exe
rm -f ../run/john.exe *.o *.bak core
rm -f detect bench generic.h arch.h sparc.h tmp.s
rm -f DES_bs_s.c DES_bs_n.c DES_bs_a.c
cp /dev/null Makefile.dep
cp x86-sse.h arch.h
make ../run/john.exe ../run/unshadow.exe ../run/unafs.exe ../run/unique.exe ../r
un/undrop.exe \
                JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.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 DOMINOS
EC_fmt.o lotus5_fmt.o MYSQL_fmt.o KRB5_fmt.o KRB5_std.o md5_go.o rawMD5go_fmt.o
PO_fmt.o md5.o IPB2_fmt.o rawSHA1_fmt.o NSLDAP_fmt.o NSLDAPS_fmt.o sha1.o base64
.o NT_fmt.o md4.o smbencrypt.o mscash_fmt.o NETLM_fmt.o NETNTLM_fmt.o batch.o be
nch.o charset.o common.o compiler.o config.o cracker.o crc32.o external.o format
s.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 unshadow.o unafs.o undrop.o unique.o x86.o x86-sse.o sha1-mmx.o
" \
                CFLAGS="-c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -
L/usr/local/lib -mpreferred-stack-boundary=2" \
                ASFLAGS="-c -DUNDERSCORES"
make[1]: Entering directory `/cygdrive/d/data/cyg/john-1.7.2/src'
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops DES_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops DES_std.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops DES_bs.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops BSDI_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops MD5_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops MD5_std.c
MD5_std.c:27: warning: alignment of 'MD5_std_all' is greater than maximum object
 file alignment.  Using 16
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops MD5_apache_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops BFEgg_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops BF_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops BF_std.c
BF_std.c:53: warning: alignment of 'BF_exp_key' is greater than maximum object f
ile alignment.  Using 16
BF_std.c:57: warning: alignment of 'BF_init_key' is greater than maximum object
file alignment.  Using 16
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops AFS_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops LM_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops DOMINOSEC_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops lotus5_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops MYSQL_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops KRB5_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops KRB5_std.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops md5_go.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops rawMD5go_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops PO_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops md5.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops IPB2_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops rawSHA1_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops NSLDAP_fmt.c
NSLDAP_fmt.c:59: warning: alignment of 'buffer' is greater than maximum object f
ile alignment.  Using 16
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops NSLDAPS_fmt.c
NSLDAPS_fmt.c: In function `crypt_all':
NSLDAPS_fmt.c:229: warning: suggest parentheses around + or - in operand of &
NSLDAPS_fmt.c: At top level:
NSLDAPS_fmt.c:58: warning: alignment of 'buffer' is greater than maximum object
file alignment.  Using 16
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops sha1.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops base64.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops NT_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops md4.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops smbencrypt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops mscash_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops NETLM_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops NETNTLM_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops batch.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops bench.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops charset.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops common.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops compiler.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops config.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops cracker.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops crc32.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops external.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops formats.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops getopt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops idle.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops inc.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops john.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops list.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops loader.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops logger.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops math.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops memory.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops misc.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops options.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops params.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops path.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops recovery.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops rpp.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops rules.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops signals.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops single.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops status.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops tty.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops wordlist.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops unshadow.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops unafs.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops undrop.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -mpr
eferred-stack-boundary=2 -funroll-loops unique.c
gcc -c -DUNDERSCORES x86.S
gcc -c -DUNDERSCORES x86-sse.S
gcc -c -DUNDERSCORES sha1-mmx.S
gcc DES_fmt.o DES_std.o DES_bs.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 DOMINOSEC_fmt.o lotus5_fmt.o M
YSQL_fmt.o KRB5_fmt.o KRB5_std.o md5_go.o rawMD5go_fmt.o PO_fmt.o md5.o IPB2_fmt
.o rawSHA1_fmt.o NSLDAP_fmt.o NSLDAPS_fmt.o sha1.o base64.o NT_fmt.o md4.o smben
crypt.o mscash_fmt.o NETLM_fmt.o NETNTLM_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 pat
h.o recovery.o rpp.o rules.o signals.o single.o status.o tty.o wordlist.o unshad
ow.o unafs.o undrop.o unique.o x86.o x86-sse.o sha1-mmx.o -lkernel32 -ldes -o ..
/run/john.exe
KRB5_std.o:KRB5_std.c:(.text+0x25): undefined reference to `_DES_set_key'
KRB5_std.o:KRB5_std.c:(.text+0x42): undefined reference to `_DES_set_key'
KRB5_std.o:KRB5_std.c:(.text+0x5c): undefined reference to `_DES_set_key'
KRB5_std.o:KRB5_std.c:(.text+0x35d): undefined reference to `_DES_ede3_cbc_encry
pt'
KRB5_std.o:KRB5_std.c:(.text+0x3b5): undefined reference to `_DES_ede3_cbc_encry
pt'
[tons of KRB5-Stuff deleted]

NETLM_fmt.o:NETLM_fmt.c:(.text+0x33a): undefined reference to `_DES_ecb_encrypt'
NETLM_fmt.o:NETLM_fmt.c:(.text+0x36b): undefined reference to `_DES_ecb_encrypt'
NETLM_fmt.o:NETLM_fmt.c:(.text+0x39e): undefined reference to `_DES_ecb_encrypt'
NETLM_fmt.o:NETLM_fmt.c:(.text+0x3cb): undefined reference to `_DES_ecb_encrypt'
NETLM_fmt.o:NETLM_fmt.c:(.text+0x3f8): undefined reference to `_DES_ecb_encrypt'
NETNTLM_fmt.o:NETNTLM_fmt.c:(.text+0x28b): more undefined references to `_DES_ec
b_encrypt' follow

maybe anybody has a hint what i am missing here?
-- 
thomas.springer@...il.com
[nach mir der synflood.]

-- 
To unsubscribe, e-mail john-users-unsubscribe@...ts.openwall.com and reply
to the automated confirmation request that will be sent to you.

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.