Craig R. McClanahan at [EMAIL PROTECTED] wrote:
>
> The autoconf stuff is a total mystery to me, but here's my experience so
> far.
>
> Platform: Red Hat Linux 7.1
>
> Problem 1 - Can't find APXS:
> Problem 2 - Can't compile mod_webapp:
Ok, this should have been fixed by Jon. I don't have a Linux machine (yet),
since someone in Dublin turned off my build machine, but I'll try to have
someone to start it up back again (darn!)...
Otherwise I'll just install RH71 on my slow-as-hell Pentium @ home...
> Problem 3 - "configtest" fails
>
> Moved mod_webapp.so into /usr/local/apache/libexec and added some config
> directives to the httpd.conf file, including
>
> LoadModule webapp_module libexec/mod_webapp.so
>
> but running the "configtest" option throws this error:
>
> Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
> /usr/local/lib/libapr.so.0: undefined symbol: pthread_create
>
> As you can see, it correctly found where my libapr.so shared library is,
> but cannot find the pthreads library - even though it's installed. This
> *could* be because Red Hat 7.1 uses libc-2.2.2.so, and I've heard others
> have had problems with this.
This is probably because of the library... If you build APR as a static
library (instead of a dynamic one) you should get rid of it... To do that,
simply in the APR directory do:
./buildconf
./configure --prefix=[your path for install] --enable-static \
--disable-shared
make
make install
Then switch to your tomcat/connectors directory and do
./buildconf
./configure --with-apr=[your path for install - prefix of APR config] ....
And it should link it against libapr.a, instead of libapr.so...
> Problem 4 - Documenation for httpd.conf directives
>
> Even when all of the above stuff gets fixed, I cannot find any docs on the
> httpd.conf directives that mod_webapp supports. The notes in the
> $CATALINA_HOME/conf/server.xml file do not appear to be accurate any
> more. Where's the docs?
Ok, that's my fault... I'll update the docs by Tuesday/Wednesday (as I need
to finish a couple of things related to security in JSR-096/Java Daemon
API).
Pier