Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 15 May 2011 10:22:14 -0500
From: "JimF" <jfoug@....net>
To: <john-dev@...ts.openwall.com>
Subject: Re: FW: something wrong with the HDAA_fmt.c programming for 64-bit Solaris

What is the #define 'signature' for 64 bit solaris??   Likely something like __SOLARISX64__ or __SOLARIS_X86_64__ or something similar.

at the very top of hdaa_fmt.c there is this code:

#ifdef __MMX__
#include <mmintrin.h>
#endif

Once you know the proper solaris signature (here i assume it is it __SOLARIS_X86_64__), can you try this:

#ifdef __SOLARIS_X86_64__ 
#undef __MMX__
#endif

#ifdef __MMX__
#include <mmintrin.h>
#endif

What this done (a bad hack, but should allow the compile to at least happen, until we find a better solution), it will remove any MMX usage, and revert back to OpenSSL's MD5 usage.

Jim.
  ----- Original Message ----- 
  From: Robert Harris 
  To: john-dev@...ts.openwall.com 
  Sent: Sunday, May 15, 2011 9:51 AM
  Subject: RE: [john-dev] FW: something wrong with the HDAA_fmt.c programming for 64-bit Solaris


  Jim,

   

   

  No errors for "make clean solaris-x86-sse2-gcc" or "solaris-x86-mmx-gcc" (After changing bench.c to #define _XOPEN_SOURCE 500)

   

  Errors with "make clean solaris-x86-64-gcc"  It appears I get the same error with RC3, see below.

   

  gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -m64 -DHAVE_CRYPT -funroll-loops HDAA_fmt.c

  HDAA_fmt.c:16:22: mmintrin.h: No such file or directory

  HDAA_fmt.c:100: error: syntax error before "conv"

  HDAA_fmt.c:100: warning: type defaults to `int' in declaration of `conv'

  HDAA_fmt.c:100: warning: data definition has no type or storage class

  HDAA_fmt.c:152: error: syntax error before "src"

  HDAA_fmt.c: In function `bin2ascii':

  HDAA_fmt.c:157: error: `__m64' undeclared (first use in this function)

  HDAA_fmt.c:157: error: (Each undeclared identifier is reported only once

  HDAA_fmt.c:157: error: for each function it appears in.)

  HDAA_fmt.c:157: error: syntax error before "l"

  HDAA_fmt.c:164: error: `t' undeclared (first use in this function)

  HDAA_fmt.c:164: warning: implicit declaration of function `_mm_set1_pi32'

  HDAA_fmt.c:167: error: `u' undeclared (first use in this function)

  HDAA_fmt.c:167: warning: implicit declaration of function `_mm_and_si64'

  HDAA_fmt.c:167: warning: implicit declaration of function `_mm_srli_si64'

  HDAA_fmt.c:167: error: `src' undeclared (first use in this function)

  HDAA_fmt.c:168: error: `v' undeclared (first use in this function)

  HDAA_fmt.c:171: error: `l' undeclared (first use in this function)

  HDAA_fmt.c:171: warning: implicit declaration of function `_mm_unpacklo_pi8'

  HDAA_fmt.c:172: error: `r' undeclared (first use in this function)

  HDAA_fmt.c:172: warning: implicit declaration of function `_mm_unpackhi_pi8'

  HDAA_fmt.c:175: warning: implicit declaration of function `_mm_add_pi32'

  HDAA_fmt.c:187: warning: implicit declaration of function `_mm_mullo_pi16'

  HDAA_fmt.c: In function `hdaa_crypt_all':

  HDAA_fmt.c:237: error: `__m64' undeclared (first use in this function)

  HDAA_fmt.c:237: error: syntax error before "h1"

  HDAA_fmt.c:252: error: `h1' undeclared (first use in this function)

  HDAA_fmt.c: In function `hdaa_salt':

  HDAA_fmt.c:295: error: `__m64' undeclared (first use in this function)

  HDAA_fmt.c:295: error: syntax error before "h2"

  HDAA_fmt.c:316: error: `h2' undeclared (first use in this function)

  *** Error code 1

  make: Fatal error: Command failed for target `HDAA_fmt.o'

  Current working directory /export/home/rharris/john-1.7.7-jumbo-3-RC1/src

  *** Error code 1

  make: Fatal error: Command failed for target `solaris-x86-64-gcc'

  bash-3.00$ pwd

  /export/home/rharris/john-1.7.7-jumbo-3-RC1/src

   

   

   

  -Robert

   

  From: JFoug [mailto:jfoug@....net] 
  Sent: Saturday, May 14, 2011 11:50 PM
  To: john-dev@...ts.openwall.com
  Subject: Re: [john-dev] FW: something wrong with the HDAA_fmt.c programming for 64-bit Solaris

   

  Please check out md5_gen(21) (jumbo-3-RC1, but also may be there in Jumbo-2-RC1)), and see if it works on teh 64 bit solaris, and if it is faster (I think it 'should' be).  If it is 64 bit x86 Solaris, then I believe it is one of the formats that are commented out (they fail self tests, and I have been commented out.  However, for 32 bit sparc (and other BE systems), it should work fine.  NOTE, I have not built for sparc-64, thus have not tested that.

   

  The md5_gen will use the MD5_X2 code from md5_std for the first crypt.  the HDAA_fmt.c uses OpenSSL MD5.  THe md5_std code is faster, in most cases.  The last crypt is done using the OpenSSL, since it is over 54 bytes long.

   

  Jim.

    ----- Original Message ----- 

    From: Robert Harris 

    To: romain.raboin@...il.com 

    Cc: john-dev@...ts.openwall.com 

    Sent: Saturday, May 14, 2011 10:00 PM

    Subject: [john-dev] FW: something wrong with the HDAA_fmt.c programming for 64-bit Solaris

     

    Mr.  Raboin,

     

    Can you confirm this problem?   Do you have time to correct this? 

     

    I can help you test it, if you would like.

     

    -Robert B. Harris from VA

     

    From: Robert Harris [mailto:rs904c@...scape.net] 
    Sent: Saturday, May 14, 2011 5:10 PM
    To: 'john-dev@...ts.openwall.com'
    Subject: something wrong with the HDAA_fmt.c programming for 64-bit Solaris

     

    John Dev,

     

    I think there is something wrong with  HDAA_fmt.c for 64-bit Solaris.  I don't get this problem when I compile JtR 32-bit on Solaris.

     

    This format is preventing me from compiling the 64-bit version on Solaris x86, (make clean solaris-x86-64-gcc)

     

    As an experiment, I removed this format out of the Makefile and john.c and the 64-bit version compiled for me just fine.

     

    Here is the error lines, when I do make clean solaris-x86-64-gcc:

     

    gcc -c -Wall -O2 -fomit-frame-pointer -I/usr/local/include  -m64 -DHAVE_CRYPT -funroll-loops HDAA_fmt.c

    HDAA_fmt.c:16:22: mmintrin.h: No such file or directory

    HDAA_fmt.c:100: error: syntax error before "conv"

    HDAA_fmt.c:100: warning: type defaults to `int' in declaration of `conv'

    HDAA_fmt.c:100: warning: data definition has no type or storage class

    HDAA_fmt.c:152: error: syntax error before "src"

    HDAA_fmt.c: In function `bin2ascii':

    HDAA_fmt.c:157: error: `__m64' undeclared (first use in this function)

    HDAA_fmt.c:157: error: (Each undeclared identifier is reported only once

    HDAA_fmt.c:157: error: for each function it appears in.)

    HDAA_fmt.c:157: error: syntax error before "l"

    HDAA_fmt.c:164: error: `t' undeclared (first use in this function)

    HDAA_fmt.c:164: warning: implicit declaration of function `_mm_set1_pi32'

    HDAA_fmt.c:167: error: `u' undeclared (first use in this function)

    HDAA_fmt.c:167: warning: implicit declaration of function `_mm_and_si64'

    HDAA_fmt.c:167: warning: implicit declaration of function `_mm_srli_si64'

    HDAA_fmt.c:167: error: `src' undeclared (first use in this function)

    HDAA_fmt.c:168: error: `v' undeclared (first use in this function)

    HDAA_fmt.c:171: error: `l' undeclared (first use in this function)

    HDAA_fmt.c:171: warning: implicit declaration of function `_mm_unpacklo_pi8'

    HDAA_fmt.c:172: error: `r' undeclared (first use in this function)

    HDAA_fmt.c:172: warning: implicit declaration of function `_mm_unpackhi_pi8'

    HDAA_fmt.c:175: warning: implicit declaration of function `_mm_add_pi32'

    HDAA_fmt.c:187: warning: implicit declaration of function `_mm_mullo_pi16'

    HDAA_fmt.c: In function `hdaa_crypt_all':

    HDAA_fmt.c:237: error: `__m64' undeclared (first use in this function)

    HDAA_fmt.c:237: error: syntax error before "h1"

    HDAA_fmt.c:252: error: `h1' undeclared (first use in this function)

    HDAA_fmt.c: In function `hdaa_salt':

    HDAA_fmt.c:295: error: `__m64' undeclared (first use in this function)

    HDAA_fmt.c:295: error: syntax error before "h2"

    HDAA_fmt.c:317: error: `h2' undeclared (first use in this function)

    *** Error code 1

    make: Fatal error: Command failed for target `HDAA_fmt.o'

    Current working directory /export/home/rharris/john-1.7.7-jumbo-1-Solaris32x86-with source/src

    *** Error code 1

     

     

     

     

    -Robert B. Harris from VA

Content of type "text/html" skipped

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ