[Tfug] compiling issues with JTR

aj hine pynorsis at gmail.com
Wed Jan 16 09:07:48 MST 2008


Trying to compile John the Ripper from source in etch. Getting all
sorts of C based complaints about string.h stdio.h
and stdlib.h. Apt-get says libc6 is the latest. Wrong gcc version?
noob mistake of some sort? dumas question but am
I _supposed_ to be in root?  As far as I can tell it doesn't like my C
libraries. I have not compiled on this machine
before and don't know if this is a general failure or specific to this issue

Thnx  - andy (the one _not_ in Illinois)

The full complaint

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 *.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
ln -sf x86-mmx.h arch.h
make ../run/john ../run/unshadow ../run/unafs ../run/unique \
                JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o BSDI_fmt.o
MD5_fmt.o MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_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 unshadow.o
unafs.o unique.o x86.o x86-mmx.o"
make[1]: Entering directory `/usr/local/src/john-1.7.0.2/src'
gcc -c -Wall -O2 -fomit-frame-pointer -funroll-loops DES_fmt.c
DES_fmt.c:6:20: error: string.h: No such file or directory
In file included from common.h:14,
                 from DES_fmt.c:10:
memory.h:13:19: error: stdio.h: No such file or directory
memory.h:14:20: error: stdlib.h: No such file or directory
In file included from common.h:14,
                 from DES_fmt.c:10:
memory.h:46: error: expected ')' before 'size'
memory.h:64: error: expected ')' before 'size'
memory.h:69: error: expected ')' before 'size'
DES_fmt.c:29: error: 'NULL' undeclared here (not in a function)
DES_fmt.c: In function 'split':
DES_fmt.c:109: warning: implicit declaration of function 'memcpy'
DES_fmt.c:109: warning: incompatible implicit declaration of built-in
function 'memcpy'
DES_fmt.c:112: warning: incompatible implicit declaration of built-in
function 'memcpy'
DES_fmt.c: In function 'get_key':
DES_fmt.c:300: warning: incompatible implicit declaration of built-in
function 'memcpy'
make[1]: *** [DES_fmt.o] Error 1
make[1]: Leaving directory `/usr/local/src/john-1.7.0.2/src'
make: *** [linux-x86-mmx] Error 2




More information about the tfug mailing list