Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 31 Jan 2012 20:23:55 +0100
From: magnum <john.magnum@...hmail.com>
To: john-dev@...ts.openwall.com
CC: andras.tevesz@...il.com
Subject: Re: OpenCL support on OSX [was: john-users]

(Moved to dev list and cc András in case you're not a subscriber)

On 01/31/2012 12:26 PM, Tevesz András wrote:
> I have some osx specific fixes to the john-1.7.9-jumbo-5-opencl-5.diff 
...
> +macosx-x86-64-opencl:
> +	$(LN) x86-64.h arch.h
> +	@echo "#define JOHN_BLD" '"'$@'"' > john_build_rule.h
> +	$(MAKE) $(PROJ) \
> +		JOHN_OBJS="$(JOHN_OBJS) $(OCL_OBJS) c3_fmt.o x86-64.o sse-intrinsics.o" \
> +		ASFLAGS="$(ASFLAGS) -m64 -DUNDERSCORES -DBSD -DALIGN_LOG" \
> +		CFLAGS="$(CFLAGS) -m64  -I$(NVIDIA_CUDA)/include -I$(ATISTREAMSDKROOT)/include  -DBSD -DCL_VERSION_1_0" \
> +		LDFLAGS="$(LDFLAGS) -m64 -L$(ATISTREAMSDKROOT)/lib/x86_64 -L$(NVIDIA_CUDA)/lib64 -framework OpenCL"
> +	/bin/sh ./setup-opencl-stuff.sh
> +


> diff -ur b/john-1.7.9-jumbo-5/src/c3_fmt.c a/john-1.7.9-jumbo-5/src/c3_fmt.c
> --- john-1.7.9-jumbo-5-opencl-5/src/c3_fmt.c	2011-12-15 22:38:19.000000000 +0100
> +++ john-1.7.9-jumbo-5-opencl-5-macosx/src/c3_fmt.c	2012-01-31 11:59:54.000000000 +0100
> @@ -193,7 +193,10 @@
>  		return 1;
>  	}
>  
> -	if (id != 10 && !ldr_in_pot)
> +	if (id != 10)
> +#ifdef HAVE_CRYPT
> +	if (!ldr_in_pot)
> +#endif
>  #ifdef HAVE_MPI
>  	if (mpi_id == 0)
>  #endif


I may be wrong but I think c3_fmt.o should be removed from the make
target instead of this change in c3_fmt.c. Can you use --format:crypt at
all with this build?

magnum

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.