For Python 3.2 you must use mod_wsgi source code for mod_wsgi 4.0 from
the mod_wsgi source code repository, you can't use 3.3.

  http://code.google.com/p/modwsgi/source/checkout

Even then, last person to try said it wouldn't compile. I don't
remember what the issue was but do know I fixed one thing that would
have stopped it building properly on Windows. I have a bit of brain
space now where could perhaps sort it out this time if you want to
try.

Graham

On 19 December 2011 22:45, Ahmed Hassan <ahmed.i...@gmail.com> wrote:
> hello, iam trying to build mod_wsgi for python 3.2 / apache2 on
> windows from source code and it gets
> an exception:
>
> -------------------------------------------------------------------------------------------------------------------------------
>   Creating library mod_wsgi.lib and object mod_wsgi.exp
> mod_wsgi.obj : error LNK2019: unresolved external symbol
> _PyCObject_FromVoidPtr
> referenced in function _Adapter_environ
> mod_wsgi.so : fatal error LNK1120: 1 unresolved externals
> -------------------------------------------------------------------------------------------------------------------------------
>
> i already modified the source paths for python32 instead of python31,
> from Microsoft Visual Studio 9.0 to Microsoft Visual Studio 10.0 and
> from Microsoft SDKs\Windows\v6.0A to Microsoft SDKs\Windows\v7.0A
>
> is thier something wrong i did or is their anything else to do ?
> apache is installed with header
>
> the full modified source code is :
>
>
> -------------------------------------------------------------------------------------------------------------------------------
>
> CPPFLAGS = \
>  /DWIN32 \
>  /DNDEBUG \
>  /I"c:\Program Files\Microsoft Visual Studio 10.0\VC\include" \
>  /I"c:\Program Files\Microsoft SDKs\Windows\v7.0A\Include" \
>  /I"c:\Program Files\Apache Software Foundation\Apache2.2\include" \
>  /I"c:\Python32\include"
>
> CFLAGS = \
>  /MD \
>  /GF \
>  /Gy \
>  /O2 \
>  /Wall \
>  /Zc:wchar_t \
>  /Zc:forScope
>
> LDFLAGS = \
>  /link \
>  "/LIBPATH:c:\Program Files\Microsoft Visual Studio 10.0\VC\lib" \
>  "/LIBPATH:c:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib" \
>  "/LIBPATH:c:\Program Files\Apache Software Foundation\Apache2.2\lib"
> \
>  "/LIBPATH:c:\Python32\libs" \
>  /OPT:REF \
>  /OPT:ICF=2 \
>  /RELEASE \
>  /SUBSYSTEM:WINDOWS
>
> LDLIBS = \
>  python32.lib \
>  libhttpd.lib \
>  libapr-1.lib \
>  libaprutil-1.lib
>
> mod_wsgi.so : mod_wsgi.c
>        cl $(CPPFLAGS) $(CFLAGS) $? /LD $(LDFLAGS) $(LDLIBS) /OUT:$@
>        mt -manifest $@.manifest -outputresource:$@;2
>
> clean :
>        del *.obj *.so *.so.manifest *.lib *.exp
>
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to modwsgi@googlegroups.com.
> To unsubscribe from this group, send email to 
> modwsgi+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to 
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to