[GH-ISSUE #354] "make win32-mingw-x86-sse2" warnings #94

Closed
opened 2026-10-14 02:52:23 +07:00 by bsakaguchi · 10 comments
Owner

Originally created by @kholia on GitHub (Jul 21, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/354

After struggling for many hours, I was able to get MinGW builds going (on Fedora 19!).

My patches are at https://github.com/kholia/JohnTheRipper/tree/Windows.

@jfoug @magnumripper please have a look.

DES_std.c: In function 'DES_std_set_key':
DES_std.c:636:17: warning: array subscript is above array bounds [-Warray-bounds]
   while (DES_key[i++]) k += 2;
                 ^
unrarhlp.c: In function 'rar_realloc2':
unrarhlp.c:53:2: warning: unknown conversion type character 'z' in format [-Wformat=]
  fprintf(stderr, "UNRAR: rar_realloc2(): Can't allocate memory (%zu bytes).\n", size);
  ^
unrarhlp.c:53:2: warning: too many arguments for format [-Wformat-extra-args]
rar_fmt.c: In function 'get_salt':
rar_fmt.c:312:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     fprintf(stderr, "Error loading file from archive '%s', expected %llu bytes, got %zu. Archive possibly damaged.\n", rarfile.archive_name, rarfile.pack_size, count);
     ^
rar_fmt.c:312:5: warning: unknown conversion type character 'z' in format [-Wformat=]
rar_fmt.c:312:5: warning: too many arguments for format [-Wformat-extra-args]
rar2john.c: In function 'process_file':
rar2john.c:417:11: warning: unknown conversion type character 'l' in format [-Wformat=]
           (unsigned long long)file_header_unp_size);
           ^
rar2john.c:417:11: warning: unknown conversion type character 'l' in format [-Wformat=]
rar2john.c:417:11: warning: too many arguments for format [-Wformat-extra-args]
keepass2john.c: In function 'process_old_database':
keepass2john.c:174:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   printf("*1*%lld*", datasize);
   ^
keepass2john.c:174:3: warning: too many arguments for format [-Wformat-extra-args]
mozilla_fmt.c:354:2: warning: #warning Note: Mozilla format disabled, un-comment HAVE_NSS in Makefile if you have NSS installed. [-Wcpp]
 #warning Note: Mozilla format disabled, un-comment HAVE_NSS in Makefile if you have NSS installed.
  ^
krb5-18_fmt.c:314:2: warning: #warning Note: krb5-18 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. [-Wcpp]
 #warning Note: krb5-18 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed.
  ^
krb5-23_fmt.c:284:2: warning: #warning Note: krb5-23 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. [-Wcpp]
 #warning Note: krb5-23 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed.
  ^
pkzip_fmt_plug.c: In function 'get_salt':
pkzip_fmt_plug.c:538:3: warning: unknown conversion type character 'h' in format [-Wformat=]
   sscanf((c8*)cp, "%hhx", &(salt->H[i].magic));
   ^
pkzip_fmt_plug.c:538:3: warning: too many arguments for format [-Wformat-extra-args]
luks_fmt_plug.c: In function 'decrypt_aes_cbc_essiv':
luks_fmt_plug.c:196:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration]
   bzero(sectorbuf, 16);
   ^
luks_fmt_plug.c:196:3: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default]
rawSHA1_ng_fmt.c:576:3: warning: #warning not using optimized sse4.1 compare because -msse4 was not specified [-Wcpp]
 # warning not using optimized sse4.1 compare because -msse4 was not specified
   ^
bench.c: In function 'benchmark_cps':
bench.c:331:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(buffer, "%lluG", cps / 1000000000ULL);
   ^
bench.c:331:3: warning: too many arguments for format [-Wformat-extra-args]
bench.c:333:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(buffer, "%lluM", cps / 1000000);
   ^
bench.c:333:3: warning: too many arguments for format [-Wformat-extra-args]
bench.c:336:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(buffer, "%lluK", cps / 1000);
   ^
bench.c:336:3: warning: too many arguments for format [-Wformat-extra-args]
bench.c:339:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(buffer, "%llu", cps);
   ^
bench.c:339:3: warning: too many arguments for format [-Wformat-extra-args]
bench.c:344:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(buffer, "%llu.%llu", cps / 10, cps % 10);
   ^
bench.c:344:3: warning: unknown conversion type character 'l' in format [-Wformat=]
bench.c:344:3: warning: too many arguments for format [-Wformat-extra-args]
In file included from logger.c:16:0:
os.h:50:2: warning: #warning LOCK_EX is not available - will skip locking [-Wcpp]
 #warning LOCK_EX is not available - will skip locking
  ^
memory.c: In function 'mem_alloc':
memory.c:60:3: warning: unknown conversion type character 'z' in format [-Wformat=]
   fprintf(stderr, "mem_alloc(): %s trying to allocate %zd bytes\n", strerror(ENOMEM), size);
   ^
memory.c:60:3: warning: too many arguments for format [-Wformat-extra-args]
In file included from recovery.c:20:0:
os.h:50:2: warning: #warning LOCK_EX is not available - will skip locking [-Wcpp]
 #warning LOCK_EX is not available - will skip locking
  ^
status.c: In function 'status_print_cracking':
status.c:358:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   sprintf(sc, " %llup", cands);
   ^
status.c:358:3: warning: too many arguments for format [-Wformat-extra-args]
wordlist.c: In function 'do_wordlist_crack':
wordlist.c:551:15: warning: unknown conversion type character 'z' in format [-Wformat=]
               (nWordFileLines * sizeof(element_st)));
               ^
wordlist.c:551:15: warning: too many arguments for format [-Wformat-extra-args]
wordlist.c:956:7: warning: 'their_words' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (their_words &&
       ^
wordlist.c:918:8: warning: 'my_words' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (--my_words_left)
        ^
wordlist.c:942:7: warning: 'dist_switch' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (rule_number >= dist_switch) {
       ^
wordlist.c:851:6: warning: 'rule' may be used uninitialized in this function [-Wmaybe-uninitialized]
   if (rule && nWordFileLines)
      ^
wordlist.c:831:7: warning: 'prerule' may be used uninitialized in this function [-Wmaybe-uninitialized]
    if ((rule = rules_reject(prerule, -1, last, db))) {
       ^
unique.c: In function 'unique_run':
unique.c:351:4: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long int' [-Wformat=]
    printf ("\rTotal lines read %I64u Unique lines written %I64u\r", totLines, written_lines);
    ^
unique.c:351:4: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long long int' [-Wformat=]
unique.c: In function 'unique':
unique.c:471:5: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long int' [-Wformat=]
     printf ("Total lines read %I64u Unique lines written %I64u\n", totLines, written_lines);
     ^
unique.c:471:5: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long long int' [-Wformat=]
genmkvpwd.c: In function 'main':
genmkvpwd.c:222:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]);
     ^
genmkvpwd.c:222:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:222:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:224:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]);
     ^
genmkvpwd.c:224:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:224:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:226:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]);
     ^
genmkvpwd.c:226:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:226:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:228:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu possible passwords\n", nbparts[0] );
     ^
genmkvpwd.c:228:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:243:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]);
     ^
genmkvpwd.c:243:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:243:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:245:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]);
     ^
genmkvpwd.c:245:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:245:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:247:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]);
     ^
genmkvpwd.c:247:5: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:247:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:249:5: warning: unknown conversion type character 'l' in format [-Wformat=]
     printf("%llu possible passwords\n", nbparts[0] );
     ^
genmkvpwd.c:249:5: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:265:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   fprintf(stderr, "%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]);
   ^
genmkvpwd.c:265:3: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:265:3: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:267:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   fprintf(stderr, "%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]);
   ^
genmkvpwd.c:267:3: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:267:3: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:269:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   fprintf(stderr, "%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]);
   ^
genmkvpwd.c:269:3: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:269:3: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:271:3: warning: unknown conversion type character 'l' in format [-Wformat=]
   fprintf(stderr, "%llu possible passwords\n", nbparts[0] );
   ^
genmkvpwd.c:271:3: warning: too many arguments for format [-Wformat-extra-args]
genmkvpwd.c:284:2: warning: unknown conversion type character 'l' in format [-Wformat=]
  fprintf(stderr, "starting with %s (%llu to %llu, %f%% of the scope)\n", pwd.password, start, end, 100*((float) end-start)/((float) nbparts[0]) );
  ^
genmkvpwd.c:284:2: warning: unknown conversion type character 'l' in format [-Wformat=]
genmkvpwd.c:284:2: warning: format '%f' expects argument of type 'double', but argument 4 has type 'long long unsigned int' [-Wformat=]
genmkvpwd.c:284:2: warning: too many arguments for format [-Wformat-extra-args]
SIPdump.c:16:24: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>
                        ^
compilation terminated.
make[1]: *** [SIPdump.o] Error 1
make: *** [win32-mingw-x86-sse2] Error 2
Originally created by @kholia on GitHub (Jul 21, 2013). Original GitHub issue: https://github.com/openwall/john/issues/354 After struggling for many hours, I was able to get MinGW builds going (on Fedora 19!). My patches are at https://github.com/kholia/JohnTheRipper/tree/Windows. @jfoug @magnumripper please have a look. ``` DES_std.c: In function 'DES_std_set_key': DES_std.c:636:17: warning: array subscript is above array bounds [-Warray-bounds] while (DES_key[i++]) k += 2; ^ unrarhlp.c: In function 'rar_realloc2': unrarhlp.c:53:2: warning: unknown conversion type character 'z' in format [-Wformat=] fprintf(stderr, "UNRAR: rar_realloc2(): Can't allocate memory (%zu bytes).\n", size); ^ unrarhlp.c:53:2: warning: too many arguments for format [-Wformat-extra-args] rar_fmt.c: In function 'get_salt': rar_fmt.c:312:5: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "Error loading file from archive '%s', expected %llu bytes, got %zu. Archive possibly damaged.\n", rarfile.archive_name, rarfile.pack_size, count); ^ rar_fmt.c:312:5: warning: unknown conversion type character 'z' in format [-Wformat=] rar_fmt.c:312:5: warning: too many arguments for format [-Wformat-extra-args] rar2john.c: In function 'process_file': rar2john.c:417:11: warning: unknown conversion type character 'l' in format [-Wformat=] (unsigned long long)file_header_unp_size); ^ rar2john.c:417:11: warning: unknown conversion type character 'l' in format [-Wformat=] rar2john.c:417:11: warning: too many arguments for format [-Wformat-extra-args] keepass2john.c: In function 'process_old_database': keepass2john.c:174:3: warning: unknown conversion type character 'l' in format [-Wformat=] printf("*1*%lld*", datasize); ^ keepass2john.c:174:3: warning: too many arguments for format [-Wformat-extra-args] mozilla_fmt.c:354:2: warning: #warning Note: Mozilla format disabled, un-comment HAVE_NSS in Makefile if you have NSS installed. [-Wcpp] #warning Note: Mozilla format disabled, un-comment HAVE_NSS in Makefile if you have NSS installed. ^ krb5-18_fmt.c:314:2: warning: #warning Note: krb5-18 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. [-Wcpp] #warning Note: krb5-18 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. ^ krb5-23_fmt.c:284:2: warning: #warning Note: krb5-23 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. [-Wcpp] #warning Note: krb5-23 format disabled, un-comment HAVE_KRB5 in Makefile if you have MIT Kerberos 5 libs and headers installed. ^ pkzip_fmt_plug.c: In function 'get_salt': pkzip_fmt_plug.c:538:3: warning: unknown conversion type character 'h' in format [-Wformat=] sscanf((c8*)cp, "%hhx", &(salt->H[i].magic)); ^ pkzip_fmt_plug.c:538:3: warning: too many arguments for format [-Wformat-extra-args] luks_fmt_plug.c: In function 'decrypt_aes_cbc_essiv': luks_fmt_plug.c:196:3: warning: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] bzero(sectorbuf, 16); ^ luks_fmt_plug.c:196:3: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default] rawSHA1_ng_fmt.c:576:3: warning: #warning not using optimized sse4.1 compare because -msse4 was not specified [-Wcpp] # warning not using optimized sse4.1 compare because -msse4 was not specified ^ bench.c: In function 'benchmark_cps': bench.c:331:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(buffer, "%lluG", cps / 1000000000ULL); ^ bench.c:331:3: warning: too many arguments for format [-Wformat-extra-args] bench.c:333:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(buffer, "%lluM", cps / 1000000); ^ bench.c:333:3: warning: too many arguments for format [-Wformat-extra-args] bench.c:336:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(buffer, "%lluK", cps / 1000); ^ bench.c:336:3: warning: too many arguments for format [-Wformat-extra-args] bench.c:339:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(buffer, "%llu", cps); ^ bench.c:339:3: warning: too many arguments for format [-Wformat-extra-args] bench.c:344:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(buffer, "%llu.%llu", cps / 10, cps % 10); ^ bench.c:344:3: warning: unknown conversion type character 'l' in format [-Wformat=] bench.c:344:3: warning: too many arguments for format [-Wformat-extra-args] In file included from logger.c:16:0: os.h:50:2: warning: #warning LOCK_EX is not available - will skip locking [-Wcpp] #warning LOCK_EX is not available - will skip locking ^ memory.c: In function 'mem_alloc': memory.c:60:3: warning: unknown conversion type character 'z' in format [-Wformat=] fprintf(stderr, "mem_alloc(): %s trying to allocate %zd bytes\n", strerror(ENOMEM), size); ^ memory.c:60:3: warning: too many arguments for format [-Wformat-extra-args] In file included from recovery.c:20:0: os.h:50:2: warning: #warning LOCK_EX is not available - will skip locking [-Wcpp] #warning LOCK_EX is not available - will skip locking ^ status.c: In function 'status_print_cracking': status.c:358:3: warning: unknown conversion type character 'l' in format [-Wformat=] sprintf(sc, " %llup", cands); ^ status.c:358:3: warning: too many arguments for format [-Wformat-extra-args] wordlist.c: In function 'do_wordlist_crack': wordlist.c:551:15: warning: unknown conversion type character 'z' in format [-Wformat=] (nWordFileLines * sizeof(element_st))); ^ wordlist.c:551:15: warning: too many arguments for format [-Wformat-extra-args] wordlist.c:956:7: warning: 'their_words' may be used uninitialized in this function [-Wmaybe-uninitialized] if (their_words && ^ wordlist.c:918:8: warning: 'my_words' may be used uninitialized in this function [-Wmaybe-uninitialized] if (--my_words_left) ^ wordlist.c:942:7: warning: 'dist_switch' may be used uninitialized in this function [-Wmaybe-uninitialized] if (rule_number >= dist_switch) { ^ wordlist.c:851:6: warning: 'rule' may be used uninitialized in this function [-Wmaybe-uninitialized] if (rule && nWordFileLines) ^ wordlist.c:831:7: warning: 'prerule' may be used uninitialized in this function [-Wmaybe-uninitialized] if ((rule = rules_reject(prerule, -1, last, db))) { ^ unique.c: In function 'unique_run': unique.c:351:4: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long int' [-Wformat=] printf ("\rTotal lines read %I64u Unique lines written %I64u\r", totLines, written_lines); ^ unique.c:351:4: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long long int' [-Wformat=] unique.c: In function 'unique': unique.c:471:5: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long long int' [-Wformat=] printf ("Total lines read %I64u Unique lines written %I64u\n", totLines, written_lines); ^ unique.c:471:5: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long long int' [-Wformat=] genmkvpwd.c: In function 'main': genmkvpwd.c:222:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]); ^ genmkvpwd.c:222:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:222:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:224:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]); ^ genmkvpwd.c:224:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:224:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:226:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]); ^ genmkvpwd.c:226:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:226:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:228:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu possible passwords\n", nbparts[0] ); ^ genmkvpwd.c:228:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:243:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]); ^ genmkvpwd.c:243:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:243:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:245:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]); ^ genmkvpwd.c:245:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:245:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:247:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]); ^ genmkvpwd.c:247:5: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:247:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:249:5: warning: unknown conversion type character 'l' in format [-Wformat=] printf("%llu possible passwords\n", nbparts[0] ); ^ genmkvpwd.c:249:5: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:265:3: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "%llu G possible passwords (%llu)\n", nbparts[0] / 1000000000, nbparts[0]); ^ genmkvpwd.c:265:3: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:265:3: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:267:3: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "%llu M possible passwords (%llu)\n", nbparts[0] / 1000000, nbparts[0]); ^ genmkvpwd.c:267:3: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:267:3: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:269:3: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "%llu K possible passwords (%llu)\n", nbparts[0] / 1000, nbparts[0]); ^ genmkvpwd.c:269:3: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:269:3: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:271:3: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "%llu possible passwords\n", nbparts[0] ); ^ genmkvpwd.c:271:3: warning: too many arguments for format [-Wformat-extra-args] genmkvpwd.c:284:2: warning: unknown conversion type character 'l' in format [-Wformat=] fprintf(stderr, "starting with %s (%llu to %llu, %f%% of the scope)\n", pwd.password, start, end, 100*((float) end-start)/((float) nbparts[0]) ); ^ genmkvpwd.c:284:2: warning: unknown conversion type character 'l' in format [-Wformat=] genmkvpwd.c:284:2: warning: format '%f' expects argument of type 'double', but argument 4 has type 'long long unsigned int' [-Wformat=] genmkvpwd.c:284:2: warning: too many arguments for format [-Wformat-extra-args] SIPdump.c:16:24: fatal error: sys/socket.h: No such file or directory #include <sys/socket.h> ^ compilation terminated. make[1]: *** [SIPdump.o] Error 1 make: *** [win32-mingw-x86-sse2] Error 2 ```
bsakaguchi 2026-10-14 02:52:23 +07:00
Author
Owner

@magnumripper commented on GitHub (Jul 23, 2013):

I'm not sure but I think you should revert the Makefile changes and change it to something similar to linux-x86-64-clang, ie. you redefine CC, LDFLAGS etc within the build target.

<!-- gh-comment-id:21387363 --> @magnumripper commented on GitHub (Jul 23, 2013): I'm not sure but I think you should revert the Makefile changes and change it to something similar to linux-x86-64-clang, ie. you redefine CC, LDFLAGS etc within the build target.
Author
Owner

@kholia commented on GitHub (Jul 23, 2013):

@magnumripper is the following patch ready for bleeding-jumbo?

diff --git a/src/os.h b/src/os.h
index 507d78e..504c50b 100644
--- a/src/os.h
+++ b/src/os.h
@@ -55,7 +55,7 @@

 #ifdef NEED_OS_FORK

-#if defined(__DJGPP__) || defined(__CYGWIN32__) || defined(_MSC_VER)
+#if defined(__DJGPP__) || defined(__CYGWIN32__) || defined(_MSC_VER) || defined(__MINGW32__)
 #define OS_FORK                                0
 #else
 #define OS_FORK                                1
<!-- gh-comment-id:21394852 --> @kholia commented on GitHub (Jul 23, 2013): @magnumripper is the following patch ready for bleeding-jumbo? ``` diff --git a/src/os.h b/src/os.h index 507d78e..504c50b 100644 --- a/src/os.h +++ b/src/os.h @@ -55,7 +55,7 @@ #ifdef NEED_OS_FORK -#if defined(__DJGPP__) || defined(__CYGWIN32__) || defined(_MSC_VER) +#if defined(__DJGPP__) || defined(__CYGWIN32__) || defined(_MSC_VER) || defined(__MINGW32__) #define OS_FORK 0 #else #define OS_FORK 1 ```
Author
Owner

@magnumripper commented on GitHub (Jul 23, 2013):

Looks good to me. Although you might want to try if mingw can produce binaries that fork OK. If they do, this patch is not needed. IIRC the __CYGWIN32__ was put there after seeing some kind of unreliable behaviour... I think it was things like the mother process can't signal/kill the children.

<!-- gh-comment-id:21402895 --> @magnumripper commented on GitHub (Jul 23, 2013): Looks good to me. Although you might want to try if mingw can produce binaries that fork OK. If they do, this patch is not needed. IIRC the `__CYGWIN32__` was put there after seeing some kind of unreliable behaviour... I think it was things like the mother process can't signal/kill the children.
Author
Owner

@magnumripper commented on GitHub (Jul 23, 2013):

If the "M$" branch is obsolete, I want it deleted please.

<!-- gh-comment-id:21403372 --> @magnumripper commented on GitHub (Jul 23, 2013): If the "M$" branch is obsolete, I want it deleted please.
Author
Owner

@kholia commented on GitHub (Jul 23, 2013):

"M$" branch is gone now. Apologies for the poor name choice.

I don't think MinGW supports fork() stuff at all.

<!-- gh-comment-id:21407830 --> @kholia commented on GitHub (Jul 23, 2013): "M$" branch is gone now. Apologies for the poor name choice. I don't think MinGW supports fork() stuff at all.
Author
Owner

@magnumripper commented on GitHub (Mar 7, 2014):

Was this an old version of MinGW? According to @jfoug, neither MinGW, Cygwin nor even MSVC has problems with stuff like %llu anymore.

<!-- gh-comment-id:37048011 --> @magnumripper commented on GitHub (Mar 7, 2014): Was this an old version of MinGW? According to @jfoug, neither MinGW, Cygwin nor even MSVC has problems with stuff like `%llu` anymore.
Author
Owner

@kholia commented on GitHub (Mar 7, 2014):

I am using a recent MinGW release.

$  /usr/bin/x86_64-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-w64-mingw32/4.8.2/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ...
Thread model: win32
gcc version 4.8.2 20131016 (Fedora MinGW 4.8.2-1.fc20) (GCC)
<!-- gh-comment-id:37049842 --> @kholia commented on GitHub (Mar 7, 2014): I am using a recent MinGW release. ``` $ /usr/bin/x86_64-w64-mingw32-gcc -v Using built-in specs. COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-w64-mingw32/4.8.2/lto-wrapper Target: x86_64-w64-mingw32 Configured with: ... Thread model: win32 gcc version 4.8.2 20131016 (Fedora MinGW 4.8.2-1.fc20) (GCC) ```
Author
Owner

@jfoug commented on GitHub (Mar 7, 2014):

%lld (x,i,u, etc), has been valid in VC for a long time. VC6 is probably the last version that FORCED %I64d. Mingw may or may not still REQUIRE %I64 vs %ll I have not used Mingw for a long time. Also, I am not sure mingw can do 'long long', or if it needs __int64. I do not think __int64 is required, I just did a grep, and ONLY found __int64 in johnswap.h and gost.h. so if it was required, I think a LOT of JTR stuff would not compile.

Note, %I64 is only used in a few 'extra' sources (markov, and unique).

Jim.

<!-- gh-comment-id:37054505 --> @jfoug commented on GitHub (Mar 7, 2014): %lld (x,i,u, etc), has been valid in VC for a long time. VC6 is probably the last version that FORCED %I64d. Mingw may or may not still REQUIRE %I64 vs %ll I have not used Mingw for a long time. Also, I am not sure mingw can do 'long long', or if it needs __int64. I do not think __int64 is required, I just did a grep, and ONLY found __int64 in johnswap.h and gost.h. so if it was required, I think a LOT of JTR stuff would not compile. Note, %I64 is only used in a few 'extra' sources (markov, and unique). Jim.
Author
Owner

@jfoug commented on GitHub (Jun 18, 2014):

mingw DOES force us to use $I64[dix] Most of these errors are gone with the new autoconfig.

In autoconfig, I have added -std-gnu for mingw builds. That adds some problems of it's own, but also gets us around some of the problem formatting issues.

Btw, M$ is not a dead branch by a long shot. A lot of my deeper, new coding or debugging is done using M$. Using M$ is becoming harder, with autoconfig, but still usable.

<!-- gh-comment-id:46474605 --> @jfoug commented on GitHub (Jun 18, 2014): mingw DOES force us to use $I64[dix] Most of these errors are gone with the new autoconfig. In autoconfig, I have added -std-gnu for mingw builds. That adds some problems of it's own, but also gets us around some of the problem formatting issues. Btw, M$ is not a dead branch by a long shot. A lot of my deeper, new coding or debugging is done using M$. Using M$ is becoming harder, with autoconfig, but still usable.
Author
Owner

@magnumripper commented on GitHub (Nov 8, 2014):

This should be mostly fixed by AC and other changes.

<!-- gh-comment-id:62235343 --> @magnumripper commented on GitHub (Nov 8, 2014): This should be mostly fixed by AC and other changes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#94
No description provided.