Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM spec file for Redhat/CentOS/Fedora packages #5

Open
earsdown opened this issue May 19, 2016 · 2 comments
Open

RPM spec file for Redhat/CentOS/Fedora packages #5

earsdown opened this issue May 19, 2016 · 2 comments

Comments

@earsdown
Copy link

Available here: https://github.com/earsdown/mod-proxy-protocol/tree/rpmbuild/redhat. Would you take a PR for this?

@yanhuixie
Copy link

yanhuixie commented Dec 12, 2016

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

@roadrunner2
Copy link
Owner

@earsdown Sorry for the very slow response. Yes, I'll take a PR - please put the files in a subdirectory ('rpmbuild' or 'rpm' or something).

@yanhuixie This issue has been fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants