Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 20 Jul 2011 20:26:36 -0500
From: Daniel Beard <trigulus@...il.com>
To: john-dev@...ts.openwall.com
Subject: Compiling on MinGW missing <sys/times.h>

Hey everyone,

I'm trying to compile john-1.7.8 using MinGW. When compiling gets to bench.c
there's an included times.h header that's missing. After some googling it
became apparent that this (times.h) is a *nix platform specific file. Is
there a workaround?

For reference here's the code output compiling:

E:\john-1.7.8\src>mingw32-make clean win32-cygwin-x86-sse2
Makefile:883: warning: overriding recipe for target `.s.o'
Makefile:879: warning: ignoring old recipe for target `.s.o'
rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique ../run/john.bin
../
run/john.com ../run/unshadow.com ../run/unafs.com ../run/unique.com../run/john.
exe ../run/unshadow.exe ../run/unafs.exe ../run/unique.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
cp x86-sse.h arch.h
mingw32-make ../run/john.exe ../run/unshadow.exe ../run/unafs.exe
../run/unique.
exe \
        JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o BSDI_fmt.o
MD5_fmt.o
MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o dummy.o batch.o bench.o
charset.o
 common.o compiler.o config.o cracker.o crc32.o external.o formats.o
getopt.o id
le.o inc.o john.o list.o loader.o logger.o math.o memory.o misc.o options.o
para
ms.o path.o recovery.o rpp.o rules.o signals.o single.o status.o tty.o
wordlist.
o unshadow.o unafs.o unique.o x86.o x86-sse.o" \
        CFLAGS="-c -Wall -O2 -fomit-frame-pointer
-mpreferred-stack-boundary=2"
 \
        ASFLAGS="-c  -DUNDERSCORES"
mingw32-make[1]: Entering directory `E:/john-1.7.8/src'
Makefile:883: warning: overriding recipe for target `.s.o'
Makefile:879: warning: ignoring old recipe for target `.s.o'
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops DES_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops DES_std.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops DES_bs.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-finline-functions DES_bs_b.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops BSDI_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops MD5_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops MD5_std.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops BF_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops BF_std.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops AFS_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops LM_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops dummy.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops batch.c
gcc -c -Wall -O2 -fomit-frame-pointer  -mpreferred-stack-boundary=2
-funroll-loops bench.c
bench.c:22:23: fatal error: sys/times.h: No such file or directory
compilation terminated.
mingw32-make[1]: *** [bench.o] Error 1
mingw32-make[1]: Leaving directory `E:/john-1.7.8/src'
mingw32-make: *** [win32-cygwin-x86-sse2] Error 2

Content of type "text/html" skipped

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.