jvandal / modwsgi

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

mod_wsgi 2.6 fails to build with Apache trunk #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following errors/warnings are related to using of Apache trunk:

mod_wsgi.c: In function ‘wsgi_add_daemon_process’:                          

mod_wsgi.c:7548: error: ‘unixd_config’ undeclared (first use in this
function)                                                                       

mod_wsgi.c:7548: error: (Each undeclared identifier is reported only once       

mod_wsgi.c:7548: error: for each function it appears in.)                       

mod_wsgi.c: In function ‘wsgi_setup_socket’:                                

mod_wsgi.c:8170: error: ‘unixd_config’ undeclared (first use in this
function)                                                                       

mod_wsgi.c: In function ‘wsgi_start_daemons’:                               

mod_wsgi.c:9130: error: ‘unixd_config’ undeclared (first use in this
function)                                                                       

mod_wsgi.c:9155: error: ‘ap_my_generation’ undeclared (first use in this
function)                                                                       

mod_wsgi.c: In function ‘Auth_environ’:                                     

mod_wsgi.c:10441: warning: implicit declaration of function
‘ap_get_server_version’                                                     

mod_wsgi.c:10441: warning: passing argument 1 of ‘PyString_FromString’
makes pointer from integer without a cast                                       

mod_wsgi.c: In function ‘wsgi_hook_auth_checker’:                           

mod_wsgi.c:11769: warning: implicit declaration of function ‘ap_requires’   

mod_wsgi.c:11769: warning: assignment makes pointer from integer without a
cast

unixd_config has been renamed to ap_unixd_config in MMN 20081201.0, so you
can rename it in the code and use:
#if !AP_MODULE_MAGIC_AT_LEAST(20081201,0)
#define ap_unixd_config unixd_config
#endif

ap_my_generation has been removed after refactoring made in r757853:
http://svn.apache.org/viewvc?view=revision&revision=757853

ap_get_server_version() has been replaced with ap_get_server_banner() and
ap_get_server_description() in r440337 (MMN 20060905.0):
http://svn.apache.org/viewvc?view=revision&revision=440337

ap_requires has been removed during authorization refactoring in r368027:
https://svn.apache.org/viewvc?revision=368027&view=revision

Original issue reported on code.google.com by Arfrever...@gmail.com on 7 Nov 2009 at 5:45

GoogleCodeExporter commented 8 years ago
Version 2.X of mod_wsgi will not support Apache 2.3+. You will need to use 
mod_wsgi 3.X.

Even then, not all these issues are resolved by that version at this time as I 
don't bother checking compilation 
against Apache 2.3+ very often because they kept changing stuff and breaking 
things. Likely that I would have  
waited until they had a beta available to see what needed to be changed or 
whether mod_wsgi would even be 
able to work with Apache 2.3+.

I'll try and have a look to see if issues can be quickly resolved.

Original comment by Graham.Dumpleton@gmail.com on 8 Nov 2009 at 6:08

GoogleCodeExporter commented 8 years ago
After a quick look, can't do anything about this right now as httpd trunk with 
APR/APR-UTIL 1.4 fails during 
configure on MacOS X 10.5. So, not even possible to build trunk Apache to check 
against.

Original comment by Graham.Dumpleton@gmail.com on 8 Nov 2009 at 6:36

GoogleCodeExporter commented 8 years ago
Managed to get further in trying to build Apache 2.3 on MacOS X 10.5, but still 
ultimately fails due to 'configure' 
not expanding variables properly in makefiles for dependent libraries.

All the same, worked out that of above issues, since already had changes for 
others, only that for 
ap_my_generation and ap_unixd_config would probably be an issue and have 
incorporated fixes in revision 1468 
of mod_wsgi subversion repository trunk that will hopefully work. I have though 
only be able to compile test 
them on Apache 2.2 to verify that changes don't at least break things for 
current Apache.

Try checking out subversion trunk root and see if that works:

  svn co http://modwsgi.googlecode.com/svn/trunk/mod_wsgi mod_wsgi-trunk

Let me know then what doesn't work.

Original comment by Graham.Dumpleton@gmail.com on 8 Nov 2009 at 11:08

GoogleCodeExporter commented 8 years ago
It seems to work now. I noticed that problem related to ap_requires() has been
already fixed in r1087. I think that this bug can be closed.

Original comment by Arfrever...@gmail.com on 8 Nov 2009 at 3:39

GoogleCodeExporter commented 8 years ago

Original comment by Graham.Dumpleton@gmail.com on 8 Nov 2009 at 10:27