<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sujoy,<br>
I had used Microsoft Visual Studio Express, if I remeber correctly.
You can get it from:<br>
<a class="moz-txt-link-freetext" href="http://www.microsoft.com/express/">http://www.microsoft.com/express/</a><br>
<br>
Please let us know the results.<br>
<br>
On 03/09/2011 03:49 AM, sujoy chaudhuri wrote:
<blockquote
cite="mid:AANLkTin7B=FeFDghHZ+jB4V9298tv3Lbwt_tnBUWK3Lq@mail.gmail.com"
type="cite">
<pre style="font-family: 'Times New Roman'; font-size: medium;"><span class="Apple-style-span" style="font-family: monospace; font-size: small;"><pre><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">Hi Hasanyasin | Jesus,</span></font></pre>
</span></pre>
<pre style="font-family: 'Times New Roman'; font-size: medium;">hasanyasin.phila wrote:</pre>
<pre><pre style="font-family: 'Times New Roman'; white-space: normal; font-size: medium;">Run: python setup.py bdist --formats=wininst</pre>
<pre><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">Followed your instructions using the free (and no longer available) MSVC++ 2003 Toolkit...and get the message:</span></font></pre>
<pre><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">"error: Python was built with Visual Studio 2003; </span></font><span class="Apple-style-span" style="font-family: arial; white-space: normal;">extensions must be built with a compiler than can generate compatible binaries. </span><span class="Apple-style-span" style="font-family: arial; white-space: normal;">Visual Studio 2003 was not found on this system. If you have Cygwin installed, </span><span class="Apple-style-span" style="font-family: arial; white-space: normal;">you can try compiling with MingW32, by passing "-c mingw32" to setup.py."</span></pre>
<pre style="font-family: 'Times New Roman'; white-space: normal; font-size: medium;"><span class="Apple-style-span" style="font-family: arial; font-size: small;">Dont have Visual Studio 2003. Tried with Visual Studio 2008 with the same result</span>...<span class="Apple-style-span" style="font-family: arial; font-size: small;">thats the reason i was trying with mingw - but since the headers are incompatible... :(</span></pre>
</pre>
<div>Help!</div>
<br>
<div class="gmail_quote">On Tue, Mar 8, 2011 at 7:15 PM, sujoy
chaudhuri <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Jesus wrote:
<div><br>
</div>
<div>
<pre style="font-family: 'Times New Roman'; font-size: medium;">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"?.
</pre>
<div style="font-family: 'Times New Roman'; font-size:
medium;">Thanks for the quick response Jesus. The relevant
lines are:</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">...from types.h (under mingw/include/sys)</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><br>
</div>
<div>
<div><font size="3" face="'Times New Roman'">#ifndef<span
style="white-space: pre-wrap;"> </span>_NO_OLDNAMES</font></div>
<div><font size="3" face="'Times New Roman'">typedef
_ssize_t ssize_t;</font></div>
<div><font size="3" face="'Times New Roman'">#endif</font></div>
<div><font size="3" face="'Times New Roman'">#endif /* Not
_SSIZE_T_ */</font></div>
</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">(the offending line is typedef _ssize_t ssize_t;)</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">
<br>
</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">...and from db.h (under
.../bsddb3-5.1.1/db/include)</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><br>
</div>
<div>
<div><font size="3" face="'Times New Roman'">#define<span
style="white-space: pre-wrap;"> </span>off_t<span
style="white-space: pre-wrap;"> </span>__db_off_t</font></div>
<div><font size="3" face="'Times New Roman'">typedef
int64_t off_t;</font></div>
<div><font size="3" face="'Times New Roman'">typedef int
pid_t;</font></div>
<div><font size="3" face="'Times New Roman'">#ifdef _WIN64</font></div>
<div><font size="3" face="'Times New Roman'">typedef
int64_t ssize_t;</font></div>
<div>
<font size="3" face="'Times New Roman'">#else</font></div>
<div><font size="3" face="'Times New Roman'">typedef
int32_t ssize_t;</font></div>
<div><font size="3" face="'Times New Roman'">#endif</font></div>
</div>
<div><font size="3" face="'Times New Roman'"><br>
</font></div>
<div><font size="3" face="'Times New Roman'">(line 138 is </font>typedef
int32_t ssize_t;)</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;"><br>
</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">Thanks for the help!</div>
<div style="font-family: 'Times New Roman'; font-size:
medium;">
<br>
</div>
<font color="#888888">
<div style="font-family: 'Times New Roman'; font-size:
medium;">Sujoy</div>
</font>
<div>
<div class="h5"><br>
<div class="gmail_quote">On Tue, Mar 8, 2011 at 12:53
PM, sujoy chaudhuri <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:chaudhuri.sujoy@gmail.com"
target="_blank">chaudhuri.sujoy@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204,
204); padding-left: 1ex;">Hi:
<div><br>
</div>
<div>Am trying to install on windows with:</div>
<div><br>
</div>
<div>$ python setup.py build -c mingw32</div>
<div><br>
</div>
<div>...and am getting an error:</div>
<div><br>
</div>
<div><span style="font-family: 'Times New Roman';
font-size: medium;">
<pre>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</pre>
<pre>This was reported by Lynton on Nov 10th, 2009.</pre>
<pre>Any fix for this issue?</pre>
<pre>Thanks</pre>
<pre>Sujoy</pre>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
pybsddb mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pybsddb@jcea.es">pybsddb@jcea.es</a>
<a class="moz-txt-link-freetext" href="https://mailman.jcea.es/listinfo/pybsddb">https://mailman.jcea.es/listinfo/pybsddb</a>
<a class="moz-txt-link-freetext" href="http://www.jcea.es/programacion/pybsddb.htm">http://www.jcea.es/programacion/pybsddb.htm</a></pre>
</blockquote>
</body>
</html>