Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 3 Jun 2012 12:58:50 -0700 (PDT)
From: NeonFlash <psykosonik_frequenz@...oo.com>
To: "john-users@...ts.openwall.com" <john-users@...ts.openwall.com>
Subject: JtR 1.7.9-Jumbo-5 Compiling Issues

I am trying to compile JtR 1.7.9-Jumbo-5 on Ubuntu 11.04 and facing issues.

I was able to compile JtR 1.7.9 successfully and I am using it, however, with the community enhanced version, I face some issues as mentioned below.


Here are the details and my observations:

compiled using:

make -j8 linux-x86-sse2

errors are as follows:

gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT -DHAVE_DL -funroll-loops dynamic_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT -DHAVE_DL -funroll-loops rawSHA224_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT -DHAVE_DL -funroll-loops rawSHA256_fmt.c
gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -DHAVE_CRYPT -DHAVE_DL -funroll-loops rawSHA384_fmt.c
rawSHA256_fmt.c:7:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make[1]: *** [rawSHA256_fmt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
rawSHA384_fmt.c:7:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make[1]: *** [rawSHA384_fmt.o] Error 1

Observations:

in rawSHA256_fmt.c and files for other hash types it is using the header file, opensslv.h present inside openssl directory. It fails since it is not able to locate these files.

I checked the Makefile:

LDFLAGS = -s -L/usr/local/lib -L/usr/local/ssl/lib -lcrypto -lssl -lm -lz $(OMPFLAGS)

So, I guess it looks inside the directories, /usr/local/lib and /usr/local/ssl/lib at the time of linking?

The section specific to linux-x86-sse2:

linux-x86-sse2:
        $(LN) x86-sse.h arch.h
        @echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h
        $(MAKE) $(PROJ) \
                JOHN_OBJS="$(JOHN_OBJS) c3_fmt.o x86.o x86-sse.o sha1-mmx.o md4-mmx.o md5-mmx.o" \
                CFLAGS="$(CFLAGS) -DHAVE_CRYPT -DHAVE_DL" \
                LDFLAGS="$(LDFLAGS) -lcrypt -ldl"


It appears that the compilation errors come since it is unable to locate the openssl dependencies required by some of the source files of JtR.

I checked whether I have openssl installed or not by typing in openssl at the command line. I get to the openssl prompt.

OpenSSL> version
OpenSSL 0.9.8o 01 Jun 2010


Can someone help me with these compiling and linking issues?

Thanks.

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.