alihalabyah / modwsgi

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

Current mod_wsgi 3.X branch doesn't build on Windows #263

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When building mod_wsgi on Windows, using Visual C++ 2008, the following 
compiler errors occur in wsgi_python_init:

mod_wsgi.c(6000) : error C2065: 'wsgi_daemon_process' : undeclared identifier
mod_wsgi.c(6000) : error C2065: 'wsgi_daemon_process' : undeclared identifier
mod_wsgi.c(6000) : error C2223: left of '->group' must point to struct/union
mod_wsgi.c(6001) : error C2065: 'wsgi_daemon_process' : undeclared identifier
mod_wsgi.c(6001) : error C2223: left of '->group' must point to struct/union

The offending bit of source code is in this block:
        /* Check for Python HOME being overridden. */

        python_home = wsgi_server_config->python_home;

        if (wsgi_daemon_process && wsgi_daemon_process->group->python_home)
            python_home = wsgi_daemon_process->group->python_home;

It's complaining about the last two lines, since it doesn't know what 
wsgi_daemon_process is - this only gets defined if MOD_WSGI_WITH_DAEMONS is 
defined, which is not the case on Windows.

It seems like these two lines should simply be wrapped in an #if 
defined(MOD_WSGI_WITH_DAEMONS) block; they don't make sense on Windows anyway, 
and the compiled module works fine without it (using Apache Lounge 2.4 binaries 
and Python 2.6). 

Original issue reported on code.google.com by michm1...@gmail.com on 20 Apr 2012 at 11:13

GoogleCodeExporter commented 9 years ago
Try with latest source code in repository.

Original comment by Graham.Dumpleton@gmail.com on 5 May 2012 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by Graham.Dumpleton@gmail.com on 5 May 2012 at 5:50