Dear Glen Jackson,
I have followed the tutorial from Simon Stewart and I have managed to
setup everything properly on my Linux(Redhat 7.2) machine.
After the "make" command in the first step, you will get a 0 byte
mod_webapp.slo. This is alright.
Then, on the next step:
cd lib
gcc -shared -o libwebapp.so *.lo
cd ../apache-2.0/
${APACHE_HOME}/build/libtool --silent --mode=link \
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
-module -avoid-version -I../include -L../lib -dlopen
../lib/libwebapp.la mod_webapp.lo
cp mod_webapp.so ${APACHE_HOME}/modules/
The above is what it shown on his tutorial. But you need to obmit 2 of
the "\" in the command above.
${APACHE_HOME}/build/libtool --silent --mode=link
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules
-module -avoid-version -I../include -L../lib -dlopen
../lib/libwebapp.la mod_webapp.lo
Try this. It works for me.
Best regards,
Brandon
-------Original Message-------
From: Tomcat Users List
Date: Tuesday, April 23, 2002 06:27:49 AM
To: Tomcat Users List
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need
i can only tell what i used: gcc-2.8.1 on solaris 2.6 /usr/ucb was first
in the path. as far as i know there are quite a lot of linkers/make on
the typical solaris installation and not all combinations do work. i know
that /usr/ucb, /usr/bin, and /usr/ccs/bin often have required binaries in
them (sometimes /usr/local/bin). i fear you will have to find the correct
combination of compiler and linker for your machine.
i would therefore suggest playing around with the ordering in the path
variable and see whether that changes anything.
bye,
georg
On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote:
> There have been a lot of threads on the question of Apache 2/Tomcat
> integration, and I think I have read them all, and tried them all but
> still I cannot compile a working version of mod_webapp.
>
> On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
> using the latest CVS checkout and/or the latest source tarball. With
> Sun's dev utils and/or with gnu utils... i.e., every variation I can
> think of.
>
> My lastest effort was to follow Simon Burr's walk-through:
>
> cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
> chmod +x support/*.sh
> ./support/buildconf.sh
> ./configure --with-apxs=${APACHE_HOME}/bin/apxs
> make
>
> At this point, I had a 0 length mod_webapp.slo file. It is not clear
> from the description if this is to be expected or not, so I continued
> on with the next step:
>
> cd lib
> gcc -shared -o libwebapp.so *.lo
> cd ../apache-2.0/
>
> This seemed to go okay (no error messages or dire warnings).
>
> ${APACHE_HOME}/build/libtool --silent --mode=link \
> gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
> -module -avoid-version -I../include -L../lib -dlopen
> ../lib/libwebapp.la mod_webapp.lo
>
> This produced several hundred lines of error messages, for example:
>
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0x104c export/install/apache/jakarta-tomcat-connectors-4.0
2-01-src/webapp/lib/libwebapp.a(pr_warp.o)
>
> The final step is:
> cp mod_webapp.so ${APACHE_HOME}/modules/
>
> Not surprisingly there was no mod_webapp.so file.
>
> After almost two weeks of trying endless config variations, pouring over
> FAQs and scattered documentation, I think I would really appreciate any
> suggestions that anyone might be able to offer.
>
> Thanks...
>
> Glen Jackson
> [EMAIL PROTECTED]
>
> >
> > Simon Burr has come up with an excellent mini-tutorial:
> >
> > http://www.pubbitch.org/jboss.html
> >
> > I managed to get it set up in no time (almost) with his how-to.
> >
> > bye Michael Delamere
> >
> >
> > ----- Original Message -----
> > From: "Boon K. Chee" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, April 22, 2002 10:59 PM
> > Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
> >
> >
> > Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0
3
> > successfully? I have tried to follow all the instructions, but fail to
> > integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
> > mod_webapp. But Apache will always complain with some errors. I can run
both
> > application separately without any problem. Both application is
downloaded
> > from apache website from their binary distribution copy. I will
appreciate a
> > lot if anyone out there can give me some guidelines. Thanks.
> >
> > sincerely,
> > Brandon
> >
> >
> > --
> > To unsubscribe: <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe: <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>