You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/06/11 23:32:25 UTC

RedHat 7.1 and MOD_WEBAPP anyone?

Still having problems getting mod_webapp installed and running in my
environment (RedHat 7.1, JDK 1.3.1).  Here's what I've done:

(1) Download this morning's tarball of APR and built it per the docs:

    ./buildconf
    ./configure --prefix=/usr/local --enable-static --disable-shared
    make
    make install

(2) Download most recent source from jakarta-tomcat-connectors and
    built it per the docs:

    cd webapp
    ./buildconf.sh
    ./configure --with-apr=/usr/local --with-apxs=/usr/local/apache/bin/apxs
    make
    cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/

(3) Configure my httpd.conf by adding:

    LoadModule webapp_module libexec/mod_webapp.so
    AddModule  mod_webapp

    WebAppConnection warp     warp localhost:8008
    WebAppDeploy     examples warp /examples/

(4) Tested configuration (/etc/rc.d/init.d/apache configtest) and got
    the following error message:

    Syntax error on line 1027 of /usr/local/apache/conf/httpd.conf:
    Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
      /usr/local/lib/libapr.so.0: undefined symbol: mm_create

    (The line number points at the LoadModule line)

Has anyone gotten this to work on RedHat 7.1?

Craig



Re: RedHat 7.1 and MOD_WEBAPP anyone?

Posted by Justin Erenkrantz <je...@ebuilt.com>.
[ CCed to dev@apr ]

On Mon, Jun 11, 2001 at 02:32:25PM -0700, Craig R. McClanahan wrote:
> (4) Tested configuration (/etc/rc.d/init.d/apache configtest) and got
>     the following error message:
> 
>     Syntax error on line 1027 of /usr/local/apache/conf/httpd.conf:
>     Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
>       /usr/local/lib/libapr.so.0: undefined symbol: mm_create
> 
>     (The line number points at the LoadModule line)

I bet APR isn't copying over the shared MM library.  I think we were
debating whether we are going to toss MM entirely.  Not sure what came
of that.  Nothing in the install target for APR indicates that we'd copy
the MM library.  Oops.  -- justin


Re: RedHat 7.1 and MOD_WEBAPP anyone?

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
"Craig R. McClanahan" wrote:
> 
> Still having problems getting mod_webapp installed and running in my
> environment (RedHat 7.1, JDK 1.3.1).  Here's what I've done:
> 
> (1) Download this morning's tarball of APR and built it per the docs:
> 
>     ./buildconf
>     ./configure --prefix=/usr/local --enable-static --disable-shared
>     make
>     make install
> 
> (2) Download most recent source from jakarta-tomcat-connectors and
>     built it per the docs:
> 
>     cd webapp
>     ./buildconf.sh
>     ./configure --with-apr=/usr/local --with-apxs=/usr/local/apache/bin/apxs
>     make
>     cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/
> 
> (3) Configure my httpd.conf by adding:
> 
>     LoadModule webapp_module libexec/mod_webapp.so
>     AddModule  mod_webapp
> 
>     WebAppConnection warp     warp localhost:8008
>     WebAppDeploy     examples warp /examples/
> 
> (4) Tested configuration (/etc/rc.d/init.d/apache configtest) and got
>     the following error message:
> 
>     Syntax error on line 1027 of /usr/local/apache/conf/httpd.conf:
>     Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
>       /usr/local/lib/libapr.so.0: undefined symbol: mm_create
> 
>     (The line number points at the LoadModule line)
> 
> Has anyone gotten this to work on RedHat 7.1?
> 
> Craig

The modification in the Makefile are the followings (That a dirty work-around):
+++
diff Makefile Makefile.modif
72c72
<       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
---
>       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
jakarta@vtxclere:~/jakarta-tomcat-connectors/webapp/apache-1.3 > diff -u 
Makefile Makefile.modif
--- Makefile    Tue Jun 12 13:24:16 2001
+++ Makefile.modif      Tue Jun 12 12:21:34 2001
@@ -69,7 +69,7 @@
 
 mod_webapp.so:
        @echo Linking Apache 1.3.x module
-       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
+       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
 
 clean:
        @echo Removing object files $(OBJS) $(MODULE)
+++

Re: RedHat 7.1 and MOD_WEBAPP anyone?

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
"Craig R. McClanahan" wrote:
> 
> Still having problems getting mod_webapp installed and running in my
> environment (RedHat 7.1, JDK 1.3.1).  Here's what I've done:
> 
> (1) Download this morning's tarball of APR and built it per the docs:
> 
>     ./buildconf
>     ./configure --prefix=/usr/local --enable-static --disable-shared
>     make
>     make install
> 
> (2) Download most recent source from jakarta-tomcat-connectors and
>     built it per the docs:
> 
>     cd webapp
>     ./buildconf.sh
>     ./configure --with-apr=/usr/local --with-apxs=/usr/local/apache/bin/apxs
>     make
>     cp apache-1.3/mod_webapp.so /usr/local/apache/libexec/
> 
> (3) Configure my httpd.conf by adding:
> 
>     LoadModule webapp_module libexec/mod_webapp.so
>     AddModule  mod_webapp
> 
>     WebAppConnection warp     warp localhost:8008
>     WebAppDeploy     examples warp /examples/
> 
> (4) Tested configuration (/etc/rc.d/init.d/apache configtest) and got
>     the following error message:
> 
>     Syntax error on line 1027 of /usr/local/apache/conf/httpd.conf:
>     Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
>       /usr/local/lib/libapr.so.0: undefined symbol: mm_create
> 
>     (The line number points at the LoadModule line)
> 
> Has anyone gotten this to work on RedHat 7.1?
> 
> Craig

I have done the following:

cvs co apr
cd apr
sh buildconf
configure --disable-shared --prefix=/usr/local/apr
make
make install 

cd jakarta-tomcat-connectors/webapp
configure --with-apr=/usr/local/apr --with-apxs=/usr/local/apache/bin/apxs
(Add -lpthread in apache-1.3/Makefile).

I am running Suse7.0, it seems it works.

I hope it helps

Jean-frederic

Re: RedHat 7.1 and MOD_WEBAPP anyone?

Posted by Justin Erenkrantz <je...@ebuilt.com>.
[ CCed to dev@apr ]

On Mon, Jun 11, 2001 at 02:32:25PM -0700, Craig R. McClanahan wrote:
> (4) Tested configuration (/etc/rc.d/init.d/apache configtest) and got
>     the following error message:
> 
>     Syntax error on line 1027 of /usr/local/apache/conf/httpd.conf:
>     Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
>       /usr/local/lib/libapr.so.0: undefined symbol: mm_create
> 
>     (The line number points at the LoadModule line)

I bet APR isn't copying over the shared MM library.  I think we were
debating whether we are going to toss MM entirely.  Not sure what came
of that.  Nothing in the install target for APR indicates that we'd copy
the MM library.  Oops.  -- justin