LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to compile mod_jk (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-compile-mod_jk-4175568141/)

vtech007 01-28-2016 07:56 AM

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]#

bathory 01-28-2016 08:27 AM

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

vtech007 01-28-2016 09:37 AM

Thanks Bathory

I will upgrade the mod_jk to apache-2.4 and revert

vtech007 01-28-2016 10:15 AM

I upgraded to mod_jk to apache-2.4.0 and installation was successful..

Thanks..

bathory 01-28-2016 11:16 AM

Quote:

Originally Posted by vtech007 (Post 5488671)
I upgraded to mod_jk to apache-2.4.0 and installation was successful..

Thanks..

Cool!
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.