http://www.mail-archive.com/modwsgi@googlegroups.com/msg07417.html


mod_wsgi.c: In function 'wsgi_process_socket':

mod_wsgi.c:10095: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c:10103: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:10103: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c: In function 'wsgi_hook_daemon_handler':

mod_wsgi.c:12742: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c: In function 'Auth_environ':

mod_wsgi.c:13262: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:13263: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c:13295: error: 'conn_rec' has no member named 'remote_addr'

mod_wsgi.c: In function 'wsgi_hook_access_checker':

mod_wsgi.c:14395: error: 'conn_rec' has no member named 'remote_ip'

mod_wsgi.c: At top level:

mod_wsgi.c:14697: warning: initialization from incompatible pointer type

apxs:Error: Command failed with rc=65536



mod_wsgi 3.3 설치시 이런 오류가 뜨는데 이는 Apache API가 바뀔 때 함수 이름도 같이 바뀌어서 나는 오류다. 


해결 방법은 간단하게

remote_ip를 client_ip로,

vim에서: %s/remote_ip/client_ip/g


remote_addr를 client_addr로

vim에서: %s/remote_addr/client_addr/g


로 바꿔주면 된다. 


mod_wsgi 4에는 해결 됐다고 하니 stable release 되면 상관 없을 듯. 



댓글을 달아 주세요