dbTalk Databases Forums  

Build Berkeley-db on MinGW

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Build Berkeley-db on MinGW in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
zm_zhumin@yahoo.com.cn
 
Posts: n/a

Default Build Berkeley-db on MinGW - 11-20-2006 , 04:07 AM






Hi, all:

I am trying to build the Berkeley-db on the MinGW platform.

I used the command list below to build it:

.../dist/configure --enable-mingw
make

But when creating the library file, the error comes:

....
Creating library file: .libs/libdb-4.5.dll.a
..libs/os_errno.o(.text+0x286)s_errno.c: undefined reference to
`WSAGetLastError@0'
..libs/os_errno.o(.text+0x2ae)s_errno.c: undefined reference to
`WSASetLastError@4'
make: *** [libdb-4.5.la] Error 1
...

I am trying to fix this error according to the solution found on the
web by exporting LIBS environment variable as -WS2_32.lib. But after I
did it, the error will occur when doing the configure. The error is:

....
checking for cc... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
....

Do you have any idea about this problem?

The version of db is 4.5.20;
MinGW version is 3.1.0-1
MSYS version is 1.0.10

Thanks in advance.

Min


Reply With Quote
  #2  
Old   
dfrost@step.polymtl.ca
 
Posts: n/a

Default Re: Build Berkeley-db on MinGW - 12-14-2006 , 03:07 PM






On Nov 20, 5:07 am, zm_zhu... (AT) yahoo (DOT) com.cn wrote:
Quote:
Hi, all:

I am trying to build the Berkeley-db on the MinGW platform.

I used the command list below to build it:
Did you try this:

cd <wherever>/db-4.5.20/build_unix
.../dist/configure --enable-mingw LIBCSO_LIBS=-lwsock32
make

I don't know if it's legal and I even think this is cheating on the
role of this variable (LIBCSO_LIBS), but it seems to have been working
for me.

Let me know

Evens



Reply With Quote
  #3  
Old   
igaldino@gmail.com
 
Posts: n/a

Default Re: Build Berkeley-db on MinGW - 01-31-2007 , 10:32 PM



On Dec 14 2006, 3:07 pm, dfr... (AT) step (DOT) polymtl.ca wrote:
Quote:
cd <wherever>/db-4.5.20/build_unix
../dist/configure --enable-mingw LIBCSO_LIBS=-lwsock32
make
This is the one that worked for me.

Just one more comment, if you are going to build libdb_cxx library,
you will need also specify LIBXSO_LIBS besides LIBCSO_LIBS.

Thanks,

Isaque.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.