devashishbcsingh / modwsgi

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

mod_wsgi doesn't build with Apache httpd 2.4.1 #259

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
checking Apache version... 2.4.1
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/build/mod_wsgi/mod_wsgi-3.3'
/opt/bw/bin/apxs -c -I/usr/include/python2.7 -DNDEBUG  -Wc,-march=corei7 
-Wc,-maes -Wc,-O3 -Wc,-g  mod_wsgi.c -Wl,--as-needed 
-Wl,--reduce-memory-overheads  -Wl,-Bsymbolic-functions 
-Wl,--no-copy-dt-needed-entries -L/usr/lib -L/usr/lib/python2.7/config  
-lpython2.7 -lpthread -ldl  -lutil -lm
/opt/bw/share/apr/build/libtool --silent --mode=compile gcc -std=gnu99 
-prefer-pic -march=corei7 -maes -O3 -g  -D_REENTRANT -D_GNU_SOURCE -pthread 
-I/usr/include/libxml2 -I/opt/bw/include  -I/opt/bw/include/apr   
-I/opt/bw/include/apr  -march=corei7 -maes -O3 -g -I/usr/include/python2.7 
-DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
In file included from /usr/include/python2.7/Python.h:8:0,
                 from mod_wsgi.c:135:
/usr/include/python2.7/pyconfig.h:1158:0: warning: "_POSIX_C_SOURCE" redefined 
[enabled by default]
/usr/include/features.h:163:0: note: this is the location of the previous 
definition
/usr/include/python2.7/pyconfig.h:1180:0: warning: "_XOPEN_SOURCE" redefined 
[enabled by default]
/usr/include/features.h:165:0: note: this is the location of the previous 
definition
mod_wsgi.c: In function 'wsgi_process_socket':
mod_wsgi.c:10095:37: error: 'conn_rec' has no member named 'remote_addr'
mod_wsgi.c:10103:27: error: 'conn_rec' has no member named 'remote_ip'
mod_wsgi.c:10103:41: error: 'conn_rec' has no member named 'remote_addr'
mod_wsgi.c: In function 'wsgi_hook_daemon_handler':
mod_wsgi.c:12742:18: error: 'conn_rec' has no member named 'remote_ip'
mod_wsgi.c: In function 'Auth_environ':
mod_wsgi.c:13262:10: error: 'conn_rec' has no member named 'remote_ip'
mod_wsgi.c:13263:18: error: 'conn_rec' has no member named 'remote_ip'

Original issue reported on code.google.com by i.ga...@brainsware.org on 4 Mar 2012 at 1:31

GoogleCodeExporter commented 8 years ago
Use mod_wsgi 4.0 development source code from trunk of repo.

Not yet back ported to 3.X branch.

Original comment by Graham.Dumpleton@gmail.com on 4 Mar 2012 at 1:55

GoogleCodeExporter commented 8 years ago
Faced the exact same issue here.

OS: ubuntu server 11.10
Apache: 2.4.1
Python: 2.7
mod_wsgi: 3.3

Original comment by bfu...@gmail.com on 18 Mar 2012 at 5:28

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Graham, I have already tested trunk and it does, indeed compile, but I haven't 
had time to run any regression tests so far.

Original comment by i.ga...@brainsware.org on 19 Mar 2012 at 10:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I got a way to fix this issue by changing from "remote_addr" to "client_addr" 
on mod_wsgi.c. Do the same thing for "remote_ip". Probably issues come from 
some api changes in http-2.4.1.

Original comment by nguyendu...@gmail.com on 3 Apr 2012 at 11:01

GoogleCodeExporter commented 8 years ago
Just see what change was made in mod_wsgi 4.0 at:

http://code.google.com/p/modwsgi/source/detail?r=8906fb52b6b23455320c848216f6120
c979e57f5

A slightly different change was required in some cases.

Original comment by Graham.Dumpleton@gmail.com on 3 Apr 2012 at 11:31

GoogleCodeExporter commented 8 years ago
Further changes made to mod_wsgi 4.0 as the changes made already weren't 
enough. Changes also now back ported to 3.X trunk.

Original comment by Graham.Dumpleton@gmail.com on 15 Apr 2012 at 10:17

GoogleCodeExporter commented 8 years ago
Just encountered this problem.

OS: Debian 6.0.5 (squeeze)
Apache: 2.4.2
Python: 2.6.6
mod_wsgi: 3.3

Original comment by Dark...@gmail.com on 14 Jul 2012 at 10:17

GoogleCodeExporter commented 8 years ago
You must use code from source code repository.

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

Original comment by Graham.Dumpleton@gmail.com on 14 Jul 2012 at 10:18

GoogleCodeExporter commented 8 years ago
Apologies - 3.X does compile, though with the warnings given in the report 
example.

Original comment by Dark...@gmail.com on 14 Jul 2012 at 10:27

GoogleCodeExporter commented 8 years ago
If you are talking about warnings:

In file included from /usr/include/python2.7/Python.h:8:0,
                 from mod_wsgi.c:135:
/usr/include/python2.7/pyconfig.h:1158:0: warning: "_POSIX_C_SOURCE" redefined 
[enabled by default]
/usr/include/features.h:163:0: note: this is the location of the previous 
definition
/usr/include/python2.7/pyconfig.h:1180:0: warning: "_XOPEN_SOURCE" redefined 
[enabled by default]
/usr/include/features.h:165:0: note: this is the location of the previous 
definition

They can be ignored.

Original comment by Graham.Dumpleton@gmail.com on 14 Jul 2012 at 11:50

GoogleCodeExporter commented 8 years ago

Original comment by Graham.Dumpleton@gmail.com on 28 Mar 2013 at 6:25