0 Replies Latest reply on Jan 28, 2016 9:17 AM by victor Usamah

    Unable to compile mod_jk.so..while setuping Apache httpd(mod_jk) with JBoss AS 7.1.0.FinaI

    victor Usamah Newbie

      Hello Please,

       

      I am trying to setup Apache HTTPd(mod_jk) with JBoss AS 7.1.0.Final, and I am having some issues installing mod_jk.so...and I get 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) ? : "(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) ? : "(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) ? : "(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) ? : "(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]#