[pybsddb] Windows compilation error?

sujoy chaudhuri chaudhuri.sujoy at gmail.com
Tue Mar 8 14:45:36 CET 2011


Jesus wrote:

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 for the quick response Jesus. The relevant lines are:

...from types.h (under mingw/include/sys)

#ifndef _NO_OLDNAMES
typedef _ssize_t ssize_t;
#endif
#endif /* Not _SSIZE_T_ */

(the offending line is typedef _ssize_t ssize_t;)

...and from db.h (under .../bsddb3-5.1.1/db/include)

#define off_t __db_off_t
typedef int64_t off_t;
typedef int pid_t;
#ifdef _WIN64
typedef int64_t ssize_t;
#else
typedef int32_t ssize_t;
#endif

(line 138 is typedef int32_t ssize_t;)

Thanks for the help!

Sujoy

On Tue, Mar 8, 2011 at 12:53 PM, sujoy chaudhuri
<chaudhuri.sujoy at gmail.com>wrote:

> Hi:
>
> Am trying to install on windows with:
>
> $ python setup.py build -c mingw32
>
> ...and am getting an error:
>
> 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?
>
> Thanks
>
> Sujoy
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20110308/bcf8d223/attachment.htm>


More information about the pybsddb mailing list