jvandal / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

mod_wsgi fails to compile on x64 Windows with x64 compiler #205

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Make sure you read the following document before lodging any report.

http://code.google.com/p/modwsgi/wiki/WhereToGetHelp

As described in that document, try solving the issue by first reading the
available documentation or using the mod_wsgi mailing list or other forums.

If you really think you have found a bug in mod_wsgi, then provide the
following information along with details of software being used as
described in document referenced above.

What steps will reproduce the problem?

Original issue reported on code.google.com by sorin.sb...@gmail.com on 25 Jul 2010 at 1:15

GoogleCodeExporter commented 8 years ago
Result on nmake:

mod_wsgi.obj : fatal error LNK1112: module machine type 'x64' conflicts with 
target machine type 'X86'                                      
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\bin\amd64\cl.EXE"' : return code '0x2'          

As you can see it does compile the obj but as x64 and it cannot link it after 
this.

If you wonder why the description is wrong, blame the Chrome. I had to 
copy&paste because with Chrome I got bad url request.

Original comment by sorin.sb...@gmail.com on 25 Jul 2010 at 1:18

GoogleCodeExporter commented 8 years ago
Try using Visual Studio 2008 (express edition is fine), not Visual Studio 2010.

You must use the same Microsoft C/C++ compiler version as the Python 
distribution is compiled with otherwise not sure it will work. This is a Python 
requirement, not mod_wsgi.

If you still cant resolve issue, post the issue on the mod_wsgi mailing list as 
the initial issue summary indicates should be done first.

Original comment by Graham.Dumpleton@gmail.com on 25 Jul 2010 at 8:50

GoogleCodeExporter commented 8 years ago
This works as expected.
I did edit the win32-ap22py26.mk to fit my environment, but after that it 
compiles without errors and Apache starts as usual.

Attached:
Compiled apache module
Edited makefile

Original comment by serge.fo...@gmail.com on 1 Feb 2011 at 10:36

Attachments:

GoogleCodeExporter commented 8 years ago
Closing as don't believe needed to make any changes to mod_wsgi.

Original comment by Graham.Dumpleton@gmail.com on 19 Mar 2012 at 10:50