I refetched Git repository to another directory, updated pathes in Makefile and nwo Im getting new error!
If we try to use "....\db-5.2.36.NC\build_windows", then we'll get
In file included from H:\Projects\bitcoin\db-5.2.36.NC\build_windows/db_cxx.h:64
H:\Projects\bitcoin\db-5.2.36.NC\build_windows/db.h:30:21: fatal error: pthread.
h: No such file or directory
mingw32-make: *** [obj/nogui/crypter.o] Error 1
If I try to build /build_unix in db-5.2.36.NC, I'll get this error
./libtool --mode=compile gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_failchk.c
libtool: compile: gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_failchk.c -DDLL_EXPORT -DPIC -o
../dist/../mutex/mut_failchk.c: In function '__mut_failchk':
../dist/../mutex/mut_failchk.c:53:7: error: incompatible type for argument 3 of 'dbenv->is_alive'
../dist/../mutex/mut_failchk.c:53:7: note: expected 'db_threadid_t' but argument is of type 'int'
../dist/../mutex/mut_failchk.c:57:7: error: incompatible type for argument 3 of 'dbenv->thread_id_st
../dist/../mutex/mut_failchk.c:57:7: note: expected 'db_threadid_t' but argument is of type 'int'
make: *** [mut_failchk.lo] Error 1
As described in https://forums.oracle.com/forums/thread.jspa?threadID=2232373
I suspect that the issue is that MinGW (the latest version) installs GCC 4.5.2 which includes PTHREADS-WIN32 2.8.0
I think the pthread issue was caused by incompatible type definitions between "pthread for Win32" and regular unix pthread.
My question is can Berkeley DB 5 be compiled with the MinGW GCC 4.5.2 compiler given these issues ?
or is my only option to install MinGW / MSYS with GCC 3.4.5 and then build Berkeley DB with that ?
But no one gives answer... please help me someone, I really need to compile bitcoin by myself!..