Hi There... One guy helped me to fix this issue..
The probelm was "headers from the default apr instalation (in /usr/include), with the apache (that is installed from source) headers." i could successfully compile mod_jk whe i configur with CPPFLAGS=-I/usr/local/apache/include ./configure --with-apxs=/usr/local/apache/bin/apxs Thanks & Regards SharonSreedh <thad.humphr...@gmail.com> wrote: On Sun, Jun 3, 2012 at 10:10 AM, Sharon S Sreedh <sharonkai...@gmail.com > >wrote: > > > I already run the configure script --with-apxs2=/path/to/apxs > > --with-apache=/path/to/apache and header file are in the directory > > apache/include > > > > when I compile with ./configure -with-apxs2=/path/to/apxs alone I got, > > configure: error: Cannot find the WebServer > > then I compiled with -with-apxs2=/path/to/apxs > > --with-apache=/path/to/apache this time compilation completed succefully > > but build faild with above error. > > > I'm not familiar with a switch "--with-apxs2=". When I run ./configure > --help, I see --with-apxs[=FILE], but not an apxs2. > > On Sun, Jun 3, 2012 at 6:01 PM, Thad Humphries <thad.humphr...@gmail.com > > >wrote: > > > > > On Sun, Jun 3, 2012 at 2:44 AM, Sharon S Sreedh < > sharonkai...@gmail.com > > > >wrote: > > > > > > > Hi, > > > > > > > > I was tring to build tomcat-connectors but it doesnt come in > success. I > > > > tried a number of times.. But all the time it ends up error. Please > > > sugest > > > > me a way to make this win. > > > > > > > > > > > > ------------------------------------------------------------- > > > > Linux Kernel version: 2.6.18-308.el5.028stab099.3 > > > > GCC version : gcc-4.1.2-52.el5_8.1 > > > > > > > > Server version: Apache/2.4.2 (Unix) > > > > Server built: Jun 3 2012 16:46:17 > > > > Server's Module Magic Number: 20120211:3 > > > > Server loaded: APR 1.4.6, APR-UTIL 1.4.1 > > > > Compiled using: APR 1.4.6, APR-UTIL 1.4.1 > > > > Architecture: 32-bit > > > > Server MPM: event > > > > threaded: yes (fixed thread count) > > > > forked: yes (variable process count) > > > > Server compiled with.... > > > > -D APR_HAS_SENDFILE > > > > -D APR_HAS_MMAP > > > > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > > > > -D APR_USE_SYSVSEM_SERIALIZE > > > > -D APR_USE_PTHREAD_SERIALIZE > > > > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > > > > -D APR_HAS_OTHER_CHILD > > > > -D AP_HAVE_RELIABLE_PIPED_LOGS > > > > -D DYNAMIC_MODULE_LIMIT=256 > > > > -D HTTPD_ROOT="/usr/local/apache" > > > > -D SUEXEC_BIN="/usr/local/apache/bin/suexec" > > > > -D DEFAULT_PIDLOG="logs/httpd.pid" > > > > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > > > > -D DEFAULT_ERRORLOG="logs/error_log" > > > > -D AP_TYPES_CONFIG_FILE="conf/mime.types" > > > > -D SERVER_CONFIG_FILE="conf/httpd.conf" > > > > > > > > ========================================================== > > > > > > > > tomcat-connectors > > > > ------------------------- > > > > tomcat-connectors-1.2.37-src > > > > ============================================================ > > > > Build error > > > > ----------- > > > > . > > > > . > > > > . > > > > . > > > > /usr/local/src/httpd-2.4.2/include/ap_hooks.h:39:17: error: apr.h: No > > > such > > > > file or directory > > > > /usr/local/src/httpd-2.4.2/include/ap_hooks.h:40:23: error: > > apr_hooks.h: > > > > No such file or directory > > > > /usr/local/src/httpd-2.4.2/include/ap_hooks.h:41:32: error: > > > > apr_optional_hooks.h: No such file or directory > > > > In file included from > > /usr/local/src/httpd-2.4.2/include/ap_config.h:136, > > > > from mod_jk.c:29: > > > > /usr/local/src/httpd-2.4.2/os/unix/os.h:31:17: error: apr.h: No such > > file > > > > or directory > > > > mod_jk.c:30:21: error: apr_lib.h: No such file or directory > > > > mod_jk.c:31:22: error: apr_date.h: No such file or directory > > > > mod_jk.c:32:27: error: apr_file_info.h: No such file or directory > > > > mod_jk.c:33:25: error: apr_file_io.h: No such file or directory > > > > In file included from /usr/local/src/httpd-2.4.2/include/httpd.h:47, > > > > from mod_jk.c:34: > > > > /usr/local/src/httpd-2.4.2/include/ap_release.h:25:41: error: > > > > apr_general.h: No such file or directory > > > > In file included from mod_jk.c:34: > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:51:24: error: > apr_tables.h: > > No > > > > such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:52:23: error: apr_pools.h: > > No > > > > such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:53:22: error: apr_time.h: > No > > > > such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:54:28: error: > > > apr_network_io.h: > > > > No such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:55:25: error: > apr_buckets.h: > > > No > > > > such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:56:22: error: apr_poll.h: > No > > > > such file or directory > > > > /usr/local/src/httpd-2.4.2/include/httpd.h:57:29: error: > > > > apr_thread_proc.h: No such file or directory > > > > In file included from /usr/local/src/httpd-2.4.2/include/httpd.h:61, > > > > from mod_jk.c:34: > > > > . > > > > . > > > > . > > > > Attaching Full Build Output with this. Please help me to resolve > this. > > > > > > > > Thanks & Regards > > > > Sharon Sreedh > > > > > > > > > > Just my guess: In running the configure script, did you > > > include --with-apxs[=FILE], where FILE is the full path to apxs? If > apxs > > is > > > your path, are the include directory and the ap_*.h headers nearby, as > in > > > if apxs is at [foo]/apache2/bin/axpx are the include files > > > at [foo]/apache2/include ? > > > > > > I prefer to build Apache myself, so I always point my configure script > at > > > the apxs I've built in whatever I'm running. Line #28 of > > > tomcat-connectors-1.2.xx-src/native/BUILDING.txt has made my life > simple > > in > > > this regard: > > > > > > ./configure -with-apxs=/home2/local/apache/bin/apxs > > > > > > -- > > > "Hell hath no limits, nor is circumscrib'd In one self-place; but where > > we > > > are is hell, And where hell is, there must we ever be" --Christopher > > > Marlowe, *Doctor Faustus* (v, 121-24) > > > > > > > > > -- > "Hell hath no limits, nor is circumscrib'd In one self-place; but where we > are is hell, And where hell is, there must we ever be" --Christopher > Marlowe, *Doctor Faustus* (v, 121-24) >