For those interested, here's how I got it to work:
Platform: RedHat Linux7.0
OS: Linux 2.2.19
Apache ver: 1.3.19 (w/SSL 0.9.6a-2.8.3)
Apache Dir: /var/lib/apache
Conf dir: /etc/httpd/conf
TOMCAT_HOME: /usr/java/tomcat
Dowloaded apr and apr-util from cvs.
Configured both with:
./configure --prefix=/usr \
--enable-DEAPI \
--libexcdir=/usr/lib \
--sysconfdir=/etc/httpd/conf \
--disable-threads
Configured the connectors directory:
./configure --prefix=/usr
--enable-DEAPI \
--with-apache=/usr/sbin \ (apxs lives here)
--with-apr=/usr/java/apr \
--libexecdir=/usr/lib \
--sysconfdir=/etc/httpd/conf
NOTES: I had to manually copy APRVARS from the apr directory to the
apr-util directory to get apr-util to compile without complaining.
I had to disable threads to get 'apachectl configtest' to stop
complaining about 'apr_pthreads'.
Other than that it compiled without any warnings, and apache had no
problems loading it.
Regards,
Jack Lauman
"Craig R. McClanahan" 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:
>
> I tried "./configure --with-apr=/usr/local --with-apxs=xxxxx
>
> with various patterns for xxxxx (/usr/local/apache, /usr/local/apache/bin,
> /usr/local/apache/bin/apxs) and could not get it to recognize where my
> apxs binary was (in /usr/local/apache/bin). Temporary workaround: add
> /usr/local/apache/bin to the PATH environment variable and execute
>
> ./configure --with-apr=/usr/local --with-apxs
>
> to let the configure script find apxs on the path.
>
> Problem 2 - Can't compile mod_webapp:
>
> The "Makedefs" file that is created has the following line:
>
> APXS = @APXS@
>
> which causes the build of the mod_webapp connector to blow up:
>
> Linking Apache 1.3.x module
> make[1]: APXS@: Command not found
> make[1]: *** [mod_webapp.so] Error 127
>
> Workaround: manually patch "Makedefs" to say
>
> APXS = /usr/local/apache/bin/apxs
>
> 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.
>
> 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?
>
> Craig