You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, earsdown. The patch file mod_proxy_protocol.c-fix-apr14-compat.patch helps me run this module on Centos 7.2. Since the default apr version on Centos 7.2 is 1.4.x, without the apr_sockaddr_is_wildcard support.Someone may get an error message like follow:
[root@localhost mod-proxy-protocol]# make
apxs -c mod_proxy_protocol.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_proxy_protocol.lo mod_proxy_protocol.c && touch mod_proxy_protocol.slo
mod_proxy_protocol.c: In function 'pp_sockaddr_compat':
mod_proxy_protocol.c: 100:5: warning: implicit declaration of function 'apr_sockaddr_is_wildcard' [-Wimplicit-function-declaration]
if (apr_sockaddr_is_wildcard(addr1) &&
^
[root@localhost mod-proxy-protocol]# httpd -t
httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.modules.d/00-proxy-protocol.conf: Cannot load modules/mod_proxy_protocol.so into server: /etc/httpd/modules/mod_proxy_protocol.so: undefined symbol: apr_sockaddr_is_wildcard
Available here: https://github.com/earsdown/mod-proxy-protocol/tree/rpmbuild/redhat. Would you take a PR for this?
The text was updated successfully, but these errors were encountered: