You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lars George <la...@worldlingo.com> on 2004/11/19 07:24:38 UTC

Problems compiling mod_jk 1.2.6

Hi,

We are trying to compile mod_jk 1.2.6 on a Linux system with 2.2 kernel 
where we get this error:

[root@web1 native]# make
Making all in common
make[1]: Entering directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_ajp12_worker.c
/bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
-I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
-I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
-D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
-D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
-c jk_connect.c
jk_connect.c: In function `jk_resolve':
jk_connect.c:56: `in_addr_t' undeclared (first use in this function)
jk_connect.c:56: (Each undeclared identifier is reported only once
jk_connect.c:56: for each function it appears in.)
jk_connect.c:56: parse error before `laddr'
jk_connect.c:100: `laddr' undeclared (first use in this function)
make[1]: *** [jk_connect.lo] Error 1
make[1]: Leaving directory 
`/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
make: *** [all-recursive] Error 1


Apparently when Googleing for it it seems like the older code base of 
the 2.2 kernel does not have that "in_addr_t" defined. How is this amended?

Thanks,
Lars




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Problems compiling mod_jk 1.2.6

Posted by Lars George <la...@worldlingo.com>.
Hi Lars,

I solved your (my) problem. Just added a

#define in_addr_t unsigned long

into the jk_connect.h and compiled. Runs smoothly so far. Darn C code ;-)

Thanks,
Lars

PS: me, myself and I


Lars George wrote:
> Hi,
> 
> We are trying to compile mod_jk 1.2.6 on a Linux system with 2.2 kernel 
> where we get this error:
> 
> [root@web1 native]# make
> Making all in common
> make[1]: Entering directory 
> `/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
> /bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
> -I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
> -I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
> -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
> -D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
> -c jk_ajp12_worker.c
> /bin/sh /usr/local/apache2/build/libtool --silent --mode=compile gcc 
> -I/usr/local/apache2/include -g -O2 -g -O2 -pthread -DHAVE_APR 
> -I/downloads/httpd-2.0.52/srclib/apr/include -g -O2 -DLINUX=2 
> -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE 
> -D_GNU_SOURCE -I /usr/local/jdk1.4/include -I /usr/local/jdk1.4/include/ 
> -c jk_connect.c
> jk_connect.c: In function `jk_resolve':
> jk_connect.c:56: `in_addr_t' undeclared (first use in this function)
> jk_connect.c:56: (Each undeclared identifier is reported only once
> jk_connect.c:56: for each function it appears in.)
> jk_connect.c:56: parse error before `laddr'
> jk_connect.c:100: `laddr' undeclared (first use in this function)
> make[1]: *** [jk_connect.lo] Error 1
> make[1]: Leaving directory 
> `/downloads/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
> make: *** [all-recursive] Error 1
> 
> 
> Apparently when Googleing for it it seems like the older code base of 
> the 2.2 kernel does not have that "in_addr_t" defined. How is this amended?
> 
> Thanks,
> Lars
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org