[pybsddb] Windows compilation error?

hasanyasin hasanyasin at cubicpen.com
Tue Mar 8 13:34:35 CET 2011


Hello Everybody,
I had built windows automatic binary installers a few times. I also 
wanted to continue this and share the binaries; but I moved to another 
country and for now I don't have access to any windows other than 
windows xp running on virtualbox. I will continue building windows 
binaries again after some time, when I start my business in this new 
country and have different machines at my lab again.

For now, all I can do is to help with the issue via this listing. I had 
done lots of work trying to build the binaries and the installer with 
mingw and cygwin; without success. I clearly remember the same errors 
you got. Even after changing lots of files at mingw, new problems come 
up one after another. I contacted Oracle about this and they told me 
that only known way of compiling bdb on windows was using MS Visual C++ 
compilers. There was a free one to be used for these kind of projects. I 
installed it on my system, then did this:

1. Copy Oracle BDB installation folder as db inside bsddb source tree, 
ie, near setup.py.
2. Run: python setup.py bdist --formats=wininst

After building is done, automatic installer will be at dist folder in 
bsddb source tree.

Please let us know if you could do it with success or get any errors. 
Please share the installer with the community, if you can build it.

hasanyasin.phila

On 03/08/2011 06:28 AM, Jesus Cea wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 08/03/11 08:23, sujoy chaudhuri wrote:
>> In file included from Modules/bsddb.h:99,
>>
>>                   from Modules/_bsddb.c:95:
>>
>> db/include/db.h:135: error: conflicting types for 'ssize_t'
>>
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/t
>> ypes
>>
>> .h:104: error: previous declaration of 'ssize_t' was here
>>
>> error: command 'gcc' failed with exit status 1
>>
>> This was reported by Lynton on Nov 10th, 2009.
>>
>> Any fix for this issue?
> I am not familiar with Windows compilation. I have spend some time
> trying to find a Windows developer, without success so far :-(
>
> Could you possibly show us the line 104 of
> "/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/sys/types.h",
> and the line 135 of "db/include/db.h"?.
>
> Thanks.
>
> - -- 
> Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
> jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
> jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
> .                              _/_/  _/_/    _/_/          _/_/  _/_/
> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQCVAwUBTXYS5Jlgi5GaxT1NAQKKLwP9Gj0uFBc+TwuXUwxWEW+Wd3djtbJ4eZRp
> mMxtTz0AtRLD6WaI/Qt/dEVHfOTmt+OdjDcokBGiBxS+AYxry3I/lPA5Y/AeMI7C
> +XiV6zc+ukaM7kXofGLTGWZnwVL+Rny0ySInvlAykrNQv7z/q5c/0gjRGkgS9nti
> Ahd9qjbb99A=
> =rjZk
> -----END PGP SIGNATURE-----
> _______________________________________________
> pybsddb mailing list
> pybsddb at jcea.es
> https://mailman.jcea.es/listinfo/pybsddb
> http://www.jcea.es/programacion/pybsddb.htm


More information about the pybsddb mailing list