on 5/12/01 9:55 AM, "Craig R. McClanahan" <[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:
> 
> 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.

Ok, here is the --help:

  --with-apxs[=FILE]        Build shared Apache module. FILE is the optional
                          pathname to the Apache apxs tool; defaults to
                          apxs.

So, if you read what that says, it says that you should give the full path
to the apxs executable. I see that you tried
/usr/local/apache/bin/apxs...that *should* work assuming that is the right
path to the binary. Mine is in /usr/sbin/apxs and here is it working:

[300][ ~/checkout/jakarta-tomcat-4.0/connectors ]% ./configure
--with-apr=/usr/local --with-apxs=/usr/sbin/apxs
creating cache ./config.cache
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for test... /bin/test
checking APR directory... /usr/local
setting target directories to "lib"
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
checking for apxs... /usr/sbin/apxs
adding apache-1.3 to target directories: "lib apache-1.3"
checking sources directory...
/Users/jon/checkout/jakarta-tomcat-4.0/connectors
checking targets directory...
/Users/jon/checkout/jakarta-tomcat-4.0/connectors
updating cache ./config.cache
creating ./config.status
creating Makedefs  
creating Makefile  
creating lib/Makefile
creating apache-1.3/Makefile
[301][ ~/checkout/jakarta-tomcat-4.0/connectors ]%

Showing me your output would be helpful as well as the output of

ls -la /usr/local/apache/bin/apxs

> 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

My fault. Will fix asap.

> 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.

Pier gets that one.

> 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?

Pier gets that one.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>

Reply via email to