Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANnLRdhS6M9ch3opoHSN1VqsrxdBS9Xfqp_v+f0fhu5hTLFBOQ@mail.gmail.com>
Date: Sun, 4 Mar 2012 12:16:02 -0700
From: Stephen John Smoogen <smooge@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: how to install system wide

On 4 March 2012 10:23, billy <zagreus13@...oo.co.uk> wrote:
> Hi i'm trying to install john the ripper 1.7.8 jumbo 7 as a system wide
> installation on ubuntu 11.04. I've read the installation instructions and i
> think that the following should install it system wide:
>
> sudo make clean CFLAGS=-DJOHN_SYSTEMWIDE=1  linux-x86-64

Ok you are overriding the CFLAGS that the Makefile is needing to
compile things in. I believe that is what is breaking your build.

How I do this on the Fedora side is

export OMPFLAGS="-fopenmp"
export CFLAGS="-c -DJOHN_SYSTEMWIDE=1 -fomit-frame-pointer ${OMPFLAGS}"
export ASFLAGS="-c  ${OMPFLAGS}"
export LDFLAGS="-s -lcrypto -lssl -lm -lz ${OMPFLAGS}"

make -C src linux-x86-64   OMPFLAGS="${OMPFLAGS}" CFLAGS="${CFLAGS}"
LDFLAGS="${LDFLAGS}" ASFLAGS="${ASFLAGS}"

If you don't have openmp you can drop that.

then after it compiles. I would do that before doing anything with
sudo to make sure it si not a root issue.

> however i'm getting the following error when i enter the above in to a terminal:
>
> /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/../../../crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> /tmp/ccpJ7RqN.o: In function `init':
> DES_fmt.c:(.text+0x12): undefined reference to `DES_bs_init'
> /tmp/ccpJ7RqN.o: In function `valid':
> DES_fmt.c:(.text+0x6a): undefined reference to `atoi64'
> DES_fmt.c:(.text+0xa5): undefined reference to `atoi64'
> DES_fmt.c:(.text+0xf3): undefined reference to `atoi64'
> /tmp/ccpJ7RqN.o: In function `salt':
> DES_fmt.c:(.text+0x19c): undefined reference to `DES_raw_get_salt'
> /tmp/ccpJ7RqN.o: In function `get_hash_0':
> DES_fmt.c:(.text+0x230): undefined reference to `DES_bs_get_hash'
> /tmp/ccpJ7RqN.o: In function `get_hash_1':
> DES_fmt.c:(.text+0x24c): undefined reference to `DES_bs_get_hash'
> /tmp/ccpJ7RqN.o: In function `get_hash_2':
> DES_fmt.c:(.text+0x268): undefined reference to `DES_bs_get_hash'
> /tmp/ccpJ7RqN.o: In function `get_hash_3':
> DES_fmt.c:(.text+0x284): undefined reference to `DES_bs_get_hash'
> /tmp/ccpJ7RqN.o: In function `get_hash_4':
> DES_fmt.c:(.text+0x2a0): undefined reference to `DES_bs_get_hash'
> /tmp/ccpJ7RqN.o: In function `set_salt':
> DES_fmt.c:(.text+0x2d3): undefined reference to `DES_bs_set_salt'
> /tmp/ccpJ7RqN.o: In function `crypt_all':
> DES_fmt.c:(.text+0x2e5): undefined reference to `DES_bs_expand_keys'
> DES_fmt.c:(.text+0x2ea): undefined reference to `DES_bs_crypt_25'
> /tmp/ccpJ7RqN.o: In function `cmp_all':
> DES_fmt.c:(.text+0x307): undefined reference to `DES_bs_cmp_all'
> /tmp/ccpJ7RqN.o: In function `cmp_one':
> DES_fmt.c:(.text+0x32c): undefined reference to `DES_bs_cmp_one'
> /tmp/ccpJ7RqN.o: In function `cmp_exact':
> DES_fmt.c:(.text+0x349): undefined reference to `DES_bs_get_binary'
> DES_fmt.c:(.text+0x359): undefined reference to `DES_bs_cmp_one'
> /tmp/ccpJ7RqN.o: In function `get_key':
> DES_fmt.c:(.text+0x375): undefined reference to `DES_bs_all'
> /tmp/ccpJ7RqN.o:(.data+0x290): undefined reference to `fmt_default_prepare'
> /tmp/ccpJ7RqN.o:(.data+0x2a8): undefined reference to `DES_bs_get_binary'
> /tmp/ccpJ7RqN.o:(.data+0x2f0): undefined reference to `DES_bs_set_key'
> /tmp/ccpJ7RqN.o:(.data+0x300): undefined reference to `DES_bs_clear_keys'
> collect2: ld returned 1 exit status
> make[1]: *** [DES_fmt.o] Error 1
> make[1]: Leaving directory `/home/billy/Downloads/john-1.7.8-jumbo-7/src'
> make: *** [linux-x86-64] Error 2
>
> can anyone suggest what i'm doing wrong?
>
> thanks
>



-- 
Stephen J Smoogen.
"The core skill of innovators is error recovery, not failure avoidance."
Randy Nelson, President of Pixar University.
"Years ago my mother used to say to me,... Elwood, you must be oh
so smart or oh so pleasant. Well, for years I was smart. I
recommend pleasant. You may quote me."  —James Stewart as Elwood P. Dowd

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.