Skip to content

Win32 BDB build in depends is broken #5033

@laanwj

Description

@laanwj
Building bdb...
make[1]: Entering directory `/store/orion/projects/bitcoin/bitcoin-win32/depends/work/build/i686-w64-mingw32/bdb/4.8.30-4df3fd96e1f/build_unix'
./libtool --mode=compile i686-w64-mingw32-g++ -c -I. -I../dist/./.. -I/store/orion/projects/bitcoin/bitcoin-win32/depends/i686-w64-mingw32/include     -pipe -O2     ../dist/./../cxx/cxx_db.cpp
libtool: compile:  i686-w64-mingw32-g++ -c -I. -I../dist/./.. -I/store/orion/projects/bitcoin/bitcoin-win32/depends/i686-w64-mingw32/include -pipe -O2 ../dist/./../cxx/cxx_db.cpp -o cxx_db.o
In file included from ../dist/./../cxx/cxx_db.cpp:9:0:
./db_config.h:600:19: error: multiple types in one declaration
 #define socklen_t int
                   ^
../dist/./../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
 typedef int socklen_t;
             ^
./db_config.h:600:19: error: declaration does not declare anything [-fpermissive]
 #define socklen_t int
                   ^
../dist/./../dbinc/repmgr.h:502:13: note: in expansion of macro ‘socklen_t’
 typedef int socklen_t;
             ^
make[1]: *** [cxx_db.o] Error 1
make[1]: Leaving directory `/store/orion/projects/bitcoin/bitcoin-win32/depends/work/build/i686-w64-mingw32/bdb/4.8.30-4df3fd96e1f/build_unix'
make: *** [/store/orion/projects/bitcoin/bitcoin-win32/depends/work/build/i686-w64-mingw32/bdb/4.8.30-4df3fd96e1f/build_unix/.stamp_built] Error 2

To reproduce (on Ubuntu 14.04):

cd depends
make HOST=i686-w64-mingw32 NO_QT=1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions