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

Unable to compile on Centos 7 #11

Open
monsoft opened this issue Apr 25, 2018 · 3 comments
Open

Unable to compile on Centos 7 #11

monsoft opened this issue Apr 25, 2018 · 3 comments

Comments

@monsoft
Copy link

monsoft commented Apr 25, 2018

I'm trying to compile mod-proxy-protocol on freshly installed Centos 7 and I'm getting error:

# make
apxs -c -Wc,-Wall 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  -Wall  -c -o mod_proxy_protocol.lo mod_proxy_protocol.c && touch mod_proxy_protocol.slo
mod_proxy_protocol.c: In function 'pp_hook_pre_connection':
mod_proxy_protocol.c:338:10: error: 'conn_rec' has no member named 'master'
     if (c->master != NULL) {
          ^
In file included from mod_proxy_protocol.c:39:0:
mod_proxy_protocol.c:339:43: error: 'conn_rec' has no member named 'master'
         conn_conf = ap_get_module_config(c->master->conn_config,
                                           ^
/usr/include/httpd/http_config.h:508:17: note: in definition of macro 'ap_get_module_config'
     (((void **)(v))[(m)->module_index])
                 ^
apxs:Error: Command failed with rc=65536
.
make: *** [.libs/mod_proxy_protocol.so] Error 1

httpd development package is installed as well:

# rpm -qa |grep httpd
httpd-tools-2.4.6-67.el7.centos.6.x86_64
httpd-2.4.6-67.el7.centos.6.x86_64
httpd-devel-2.4.6-67.el7.centos.6.x86_64

Tried on few Centos 7 with this same error.

@kingprimex
Copy link

Same is happening to me too. Have you found a fix for this?

@monsoft
Copy link
Author

monsoft commented May 14, 2018

I haven't :(
Instead I used similar module https://gitlab.cern.ch/cloud-infrastructure/mod-proxy-protocol

@kingprimex
Copy link

Great. Thank you so much, It worked for me as well!

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

2 participants