asimkon wrote:
> I would like to ask you a technical question regarding python module
> compilation for python 2.7.1.
>
> I want to compile mod_python 
> <https://app.box.com/s/orsffo3t4g6h9ftkq6p1>library for Apache 2.2
> and py2.7 <https://www.python.org/downloads/> on Win32 in order to use
> it for  psp - py scripts that i have written. I tried to compile it
> using VS 2008 (VC++) and unfortunately i get an error on pyconfig.h
> (Py2.7/include) error C2632: int followed by int  is illegal.
>
> This problem occurs when i try to run the bat file that exists on
> mod_python/dist folder. Any idea or suggestion what should i do in
> order to run it on Win 7 Pro (win 32) environment and produce the
> final apache executable module (.so).
>
> For your better assistance, i attach you the necessary files and
> error_log (ouput that i get during compilation process). I have posted
> the same question here
> <http://stackoverflow.com/questions/37696936/vc-compilation-error-in-pyconfig-h-vs-2008>,
> but unfortunately i had had no luck!

Where did you get that copy of unistd.h?  That's the problem, as you
should have been able to figure out.  Your unistd.h has

    #define  ssize_t  int

which is a terrible practice to begin with.  It causes this line in
pyconfig.h
    typedef _W64 int ssize_t;
to become this:
    typedef __w64 int int;
just like the error message said.  The quickest solution to your problem
is to delete that line from unistd.h.  Alternatively, you could had
YY_NO_UNISTD_H to the compiler symbols, and have that file totally skipped.

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to