Unable to compile mod_jk
Hello Please,
I am having a similar issue with installing mod_jk.so...and I can stuck at this point of installation... I am following this guide..plz see the error below and advise..Thanks.. ========================================== http://www.serveridol.com/2015/02/03...2-4-webserver/ ======================================= [root@localhost native]# make && make install Making all in common make[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/common' Making all in apache-2.0 make[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/apache-2.0' /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/httpd -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches - m64 -mtune=generic -pthread -DHAVE_APR -I/usr/include/apr-1 -I/usr/include/apr-1 -DHAVE_CONFIG_H -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -c mod_jk.c -o mod_jk.l o mod_jk.c: In function 'init_ws_service': mod_jk.c:735:39: error: 'conn_rec' has no member named 'remote_ip' s->remote_addr = r->connection->remote_ip; ^ mod_jk.c:999:46: error: 'conn_rec' has no member named 'remote_ip' STRNULL_FOR_NULL(r->connection->remote_ip), ^ mod_jk.c:124:31: note: in definition of macro 'STRNULL_FOR_NULL' #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") ^ mod_jk.c:999:46: error: 'conn_rec' has no member named 'remote_ip' STRNULL_FOR_NULL(r->connection->remote_ip), ^ mod_jk.c:124:37: note: in definition of macro 'STRNULL_FOR_NULL' #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") ^ make[1]: *** [mod_jk.lo] Error 1 make[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/apache-2.0' make: *** [all-recursive] Error 1 [root@localhost native]# make Making all in common make[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/common' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/common' Making all in apache-2.0 make[1]: Entering directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/apache-2.0' /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -I/usr/include/httpd -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix -DLINUX -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches - m64 -mtune=generic -pthread -DHAVE_APR -I/usr/include/apr-1 -I/usr/include/apr-1 -DHAVE_CONFIG_H -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -c mod_jk.c -o mod_jk.l o mod_jk.c: In function 'init_ws_service': mod_jk.c:735:39: error: 'conn_rec' has no member named 'remote_ip' s->remote_addr = r->connection->remote_ip; ^ mod_jk.c:999:46: error: 'conn_rec' has no member named 'remote_ip' STRNULL_FOR_NULL(r->connection->remote_ip), ^ mod_jk.c:124:31: note: in definition of macro 'STRNULL_FOR_NULL' #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") ^ mod_jk.c:999:46: error: 'conn_rec' has no member named 'remote_ip' STRNULL_FOR_NULL(r->connection->remote_ip), ^ mod_jk.c:124:37: note: in definition of macro 'STRNULL_FOR_NULL' #define STRNULL_FOR_NULL(x) ((x) ? (x) : "(null)") ^ make[1]: *** [mod_jk.lo] Error 1 make[1]: Leaving directory `/usr/local/src/tomcat-connectors-1.2.31-src/native/apache-2.0' make: *** [all-recursive] Error 1 [root@localhost native]# |
Hi and welcome to LQ,
You should use a more recent version of mod_jk for apache-2.4. You can download 1.2.41 from here Regards |
Thanks Bathory
I will upgrade the mod_jk to apache-2.4 and revert |
I upgraded to mod_jk to apache-2.4.0 and installation was successful..
Thanks.. |
Quote:
You may mark the thread as "SOLVED" using the thread tools on top of the page Regards |
All times are GMT -5. The time now is 02:09 AM. |