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


Reply via email to