architekt1024 / modwsgi

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

mod_wsgi-3.3.tar crash at windows xp+vc8+python25+apache2.2.11 #221

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I use mod_wsgi 2.3 before, and It is ok.
using python25+apache2.2.11
When I update to 3.3
------
The nt makefile in mod_wsgi-3.3tar is win32-ap22py26.mak,
I modify all python26 to python25,and use vc8 instead of vc9.
Compile and link success. Apache loadmodule success.

When I access from browser, I fail. And a messagebox appear in server system.

"0x00000000 can't be access!"

I have not change python25 and apache, just compile..

I will change the cflag and lflag to check this issue.

Original issue reported on code.google.com by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 2:45

GoogleCodeExporter commented 8 years ago

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 3:03

Attachments:

GoogleCodeExporter commented 8 years ago
Did you comment out or remove from the makefile the line:

  mt -manifest $@.manifest -outputresource:$@;2

Original comment by Graham.Dumpleton@gmail.com on 11 Jan 2011 at 3:05

GoogleCodeExporter commented 8 years ago
I am not delete this line.
May be python25 is compile using vc7?
And I am using vc8.

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 4:03

GoogleCodeExporter commented 8 years ago
Can you try doing a 'name clean'. Remove that line from makefile and try again 
to build, install etc.

That line wasn't required for Python 2.5 and so using it may cause problems.

Original comment by Graham.Dumpleton@gmail.com on 11 Jan 2011 at 4:55

GoogleCodeExporter commented 8 years ago
Would also suggest updating to newer Apache version. Remember that some else 
was seeing crashes when trying to use SSL and when they upgraded it was fine.

Original comment by Graham.Dumpleton@gmail.com on 11 Jan 2011 at 4:56

GoogleCodeExporter commented 8 years ago
>>Can you try doing a 'name clean'. Remove that line from makefile and try 
again 
to build, install etc.
I do it.but apache start fail. The information in system event is that:
{{{
The Apache service named  reported the following error:
>>> c4\xc4\xa3\xbf\xe9\xa1\xa3     .
}}}

I also write a simple swig file ,complie with vc8, and import to python. It is 
fine.
I try to upgrade apache.

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 5:03

GoogleCodeExporter commented 8 years ago
I think python25 still need manifest embed. Because I compile source using vc8, 
not vc7.

 * I write a simple swig python module Test
cl /I c:\Python25\include /MD Test.c Test_wrap.c /LD /DLL 
c:\Python25\libs\python25.lib

 * If not this step, import Test will tell me "Cant found msvcr80.dll"
mt -manifest Test.dll.manifest -outputresource:Test.dll;2

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 5:12

GoogleCodeExporter commented 8 years ago
You cant arbitrarily change compilers. You must use what Python itself was 
compiled with. So, if Python 2.5 used v7 (which can't remember what it used), 
you must use that compiler.

Why can't you use newer Python version?

Original comment by Graham.Dumpleton@gmail.com on 11 Jan 2011 at 5:17

GoogleCodeExporter commented 8 years ago
I will find someone have vc7. Because there many cpython module and swig 
module, If I upgrade python all things must recompile......

I am sorry. I am try to upgrade.

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 6:15

GoogleCodeExporter commented 8 years ago
Using vc7 compile, works fine.
Thanks for help.

The reason is Python 2.5 is compile with vc7, and module nedd to compile with 
vc7 alos.

Original comment by W.Wilberforce.Jr@gmail.com on 11 Jan 2011 at 10:33

GoogleCodeExporter commented 8 years ago

Original comment by Graham.Dumpleton@gmail.com on 11 Jan 2011 at 10:47