Installing mod_jk

I'm running Linux (Debian 4) and I'm trying to install mod_jk to get Tomcat working with Apache.  I have apache2 and tomcat5 successfully installed and working, but I can't get the mod_jk connector to compile.

I download the latest source tarball, and run the configure script like this:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache=/usr/local/apache2/

Then I type make.

The make goes well for a while, but then about half way through gets all sorts of compilation errors, which seem to be related to the apr (apache portable runtime) include files.

The errors begin with:

In file included from /usr/local/apache2//include/ap_config.h:25,
                 from mod_jk.c:29:
/usr/local/apr/include/apr-1/apr.h:273: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from mod_jk.c:29:
/usr/local/apache2//include/ap_config.h:26:23: error: apr_hooks.h: No such file or directory
/usr/local/apache2//include/ap_config.h:27:32: error: apr_optional_hooks.h: No such file or directory

...And then there's a few hundred lines more of compiler errors.

Does anyone have any idea what might be happening here?
chsalviaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Syngin9Commented:
This might be slightly off base as I don't really use Tomcat but that module is available under Apt for both Apache 1.3x. and 2.x:

libapache-mod-jk - Apache 1.3 connector for the Tomcat Java servlet engine
libapache2-mod-jk - Apache 2 connector for the Tomcat Java servlet engine
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
if you want to compile the module yourself you need the apache2 sources, at least the include files
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.