kjx98/vanitygen-eth

Make Windows 10 problem

Elecman opened this issue · 0 comments

Hi! I have problem to make in Windows 10

$ make all
gcc -ggdb -O3 -Wall -std=c99 -I/c/openssl-1.0.2g/dist/include -L/c/openssl-1.0.2g/dist/lib -c -o pattern.o pattern.c
In file included from c:\mingw\include\windows.h:80:0,
from winglue.h:22,
from pattern.h:28,
from pattern.c:34:
c:\mingw\include\winsock2.h:109:8: error: redefinition of 'struct timeval'
struct timeval {
^~~~~~~
In file included from pattern.c:23:0:
c:\mingw\include\sys\time.h:55:8: note: originally defined here
struct timeval
^~~~~~~
pattern.c: In function 'vg_exec_context_calc_address':
pattern.c:238:6: warning: variable 'len' set but not used [-Wunused-but-set-variable]
int len;
^~~
pattern.c: In function 'vg_output_timing':
pattern.c:280:15: warning: passing argument 1 of 'gettimeofday' from incompatible pointer type [-Wincompatible-pointer-types]
gettimeofday(&tvnow, NULL);
^
In file included from pattern.c:23:0:
c:\mingw\include\sys\time.h:108:29: note: expected 'struct timeval * restrict' but argument is of type 'struct timeval *'
int __cdecl __MINGW_NOTHROW gettimeofday
^~~~~~~~~~~~
pattern.c: In function 'get_prefix_ranges':
pattern.c:654:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
p = strlen(pfx);
^~~
In file included from pattern.c:20:0:
c:\mingw\include\string.h:83:41: note: expected 'const char *' but argument is of type 'const uint8_t * {aka const unsigned char *}'
_CRTIMP __cdecl __MINGW_NOTHROW size_t strlen (const char *) __MINGW_ATTRIB_PURE;
^~~~~~
pattern.c: In function 'vg_prefix_context_add_patterns':
pattern.c:953:33: warning: pointer targets in passing argument 1 of 'get_prefix_ranges' differ in signedness [-Wpointer-sign]
ret = get_prefix_ranges(patterns[i], ranges);
^~~~~~~~
pattern.c:639:1: note: expected 'const uint8_t * {aka const unsigned char *}' but argument is of type 'const char *'
get_prefix_ranges(const uint8_t *pfx, BIGNUM **result)
^~~~~~~~~~~~~~~~~
pattern.c: In function 'vg_prefix_get_difficulty':
pattern.c:1017:26: warning: pointer targets in passing argument 1 of 'get_prefix_ranges' differ in signedness [-Wpointer-sign]
ret = get_prefix_ranges(pattern, ranges);
^~~~~~~
pattern.c:639:1: note: expected 'const uint8_t * {aka const unsigned char *}' but argument is of type 'const char *'
get_prefix_ranges(const uint8_t *pfx, BIGNUM **result)
^~~~~~~~~~~~~~~~~
make: *** [pattern.o] Error 1

Ты не мог бы мне помочь с этим вопросом? <- Russian lang