LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2016, 07:56 AM   #1
vtech007
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Rep: Reputation: Disabled
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]#
 
Old 01-28-2016, 08:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 01-28-2016, 09:37 AM   #3
vtech007
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks Bathory

I will upgrade the mod_jk to apache-2.4 and revert
 
Old 01-28-2016, 10:15 AM   #4
vtech007
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
I upgraded to mod_jk to apache-2.4.0 and installation was successful..

Thanks..
 
Old 01-28-2016, 11:16 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by vtech007 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to redirect tomcat to apache using mod_jk mlnm Linux - Newbie 2 04-25-2013 04:53 AM
Unable to compile bitcoin malloc Linux - Software 7 07-20-2011 09:08 PM
mod_jk compile problems Akhil Kapoor Linux - Kernel 2 06-15-2006 10:51 AM
FC3 - problem to compile mod_jk jdc32 Linux - Software 4 02-25-2005 04:04 AM
mod_jk compile can't find apxs Kilka Linux - Software 1 02-21-2004 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration