mod-proxy-protocol icon indicating copy to clipboard operation
mod-proxy-protocol copied to clipboard

Unable to compile on Centos 7

Open monsoft opened this issue 7 years ago • 3 comments

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.

monsoft avatar Apr 25 '18 10:04 monsoft

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

kingprimex avatar May 14 '18 06:05 kingprimex

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

monsoft avatar May 14 '18 09:05 monsoft

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

kingprimex avatar May 14 '18 12:05 kingprimex