Building BDB on MingW
4 messages, 24 Feb 2012 to 14 Jul 2014. Started by Amir Taaki.
Amir Taaki (2), Wladimir J. van der Laan, neil
I followed the instructions from build-msw.txt and am getting the same issue from here:
https://bitcointalk.org/index.php?topic=45507.0
MSYS shell:
cd /c/db-4.8.30.NC-mgw/build_unix sh ../dist/configure --enable-mingw --enable-cxx make
$ make
./libtool --mode=compile gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c libtool: compile: gcc -c -I. -I../dist/.. -O3 ../dist/../mutex/mut_win32.c -DDLL_EXPORT -DPIC -o .libs/mut_win32.o In file included from ./db_int.h:886:0, from ../dist/../mutex/mut_win32.c:12: ../dist/../dbinc/repmgr.h:502:13: error: two or more data types in declaration specifiers ../dist/../dbinc/repmgr.h:502:1: warning: useless type name in empty declaration make: *** [mut_win32.lo] Error 1[/quote]
Any ideas? Sadly the proposed fix in that thread didn't work.
On Fri, Feb 24, 2012 at 11:15 PM, Amir Taaki <zgenjix@yahoo•com> wrote:
Quoted text (8 lines)
> I followed the instructions from build-msw.txt and am getting the same > issue from here: > > https://bitcointalk.org/index.php?topic=45507.0 > > > Any ideas? Sadly the proposed fix in that thread didn't work. >
https://forums.oracle.com/forums/thread.jspa?messageID=4018239
Wladimir
Thanks. Using --disable-thread_api --disable-replication got it to compile, but now when actually running bitcoind it throws DbRunRecoveryException over the DB_RUNRECOVERY flag.
It seems people aren't actually using MingW to compile bitcoind on Windows? The lack of pthreads seems crippling and there's lots of missing functions like strncasecmp, _strlwr, _fileno and swprintf.
________________________________ From: Wladimir <laanwj@gmail•com> To: Amir Taaki <zgenjix@yahoo•com> Cc: "bitcoin-development@lists•sourceforge•net" <bitcoin-development@lists•sourceforge•net> Sent: Saturday, February 25, 2012 7:18 AM Subject: Re: [Bitcoin-development] Building BDB on MingW
On Fri, Feb 24, 2012 at 11:15 PM, Amir Taaki <zgenjix@yahoo•com> wrote:
I followed the instructions from build-msw.txt and am getting the same issue from here:
Quoted text (6 lines)
> >https://bitcointalk.org/index.php?topic=45507.0 > > >Any ideas? Sadly the proposed fix in that thread didn't work. >
https://forums.oracle.com/forums/thread.jspa?messageID=4018239
Wladimir
got same error, did you manage to fix this?