Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help building BDB with C++/STL on Windows with MinGW

745794Jan 11 2010 — edited Mar 7 2010
Hello,

I'm having some difficulty building the BDB 4.8.26 with C++/STL.

OS: Windows XP SP3
Compiler: MinGW 3.4.5

I "configure" using the following options:

../dist/configure disable-shared enable-cxx enable-stl enable-mingw

but when I "make", I get the following errors:

In file included from ../dist/../stl/dbstl_container.h:12,
from ../dist/../stl/dbstl_container.cpp:11:
./dbstl_common.h:58:2: #error "No appropriate TLS modifier defined."
In file included from ../dist/../stl/dbstl_container.h:13,
from ../dist/../stl/dbstl_container.cpp:11:
../dist/../stl/dbstl_resource_manager.h:145:2: #error "A multi-threaded build of STL for Berkeley DB requires thread local storage. None is configured."
make: *** dbstl_container.o Error 1

Any ideas on what is going wrong?

Thanks,
Nate.

EDIT: Apologies, the above error was with MinGW 3.4.5, not 4.4.0. With MinGW 4.4.0, I get the following error right at the beginning of "make":

In file included from ./db_int.h:886,
from ../dist/../mutex/mut_win32.c:12:
../dist/../dbinc/repmgr.h:502: error: two or more data types in declaration specifiers
../dist/../dbinc/repmgr.h:502: warning: useless type name in empty declaration
make: *** mut_win32.o Error 1

Edited by: user8976427 on 11-Jan-2010 5:35 PM

Edited by: user8976427 on 11-Jan-2010 5:36 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2010
Added on Jan 11 2010
6 comments
4,996 views