[pybsddb] Windows compilation error?

hasanyasin hasanyasin at cubicpen.com
Wed Mar 9 17:15:22 CET 2011


Hi Sujoy,
I had used Microsoft Visual Studio Express, if I remeber correctly. You 
can get it from:
      http://www.microsoft.com/express/

Please let us know the results.

On 03/09/2011 03:49 AM, sujoy chaudhuri wrote:
> Hi Hasanyasin | Jesus,
>
> hasanyasin.phila wrote:
> Run: python setup.py bdist --formats=wininst
>
> Followed your instructions using the free (and no longer available) MSVC++ 2003 Toolkit...and get the message:
>
> "error: Python was built with Visual Studio 2003;extensions must be built with a compiler than can generate compatible binaries.Visual Studio 2003 was not found on this system. If you have Cygwin installed,you can try compiling with MingW32, by passing "-c mingw32" to setup.py."
>
> Dont have Visual Studio 2003. Tried with Visual Studio 2008 with the same result...thats the reason i was trying with mingw  - but since the headers are incompatible... :(
>
> Help!
>
> On Tue, Mar 8, 2011 at 7:15 PM, sujoy chaudhuri 
> <chaudhuri.sujoy at gmail.com <mailto:chaudhuri.sujoy at gmail.com>> wrote:
>
>     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)
>
>     #defineoff_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 <mailto: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
>
>
>
>
> _______________________________________________
> pybsddb mailing list
> pybsddb at jcea.es
> https://mailman.jcea.es/listinfo/pybsddb
> http://www.jcea.es/programacion/pybsddb.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20110309/eb710fea/attachment.htm>


More information about the pybsddb mailing list