tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Gokey <cgo...@gcmd.gsfc.nasa.gov>
Subject Re: Problems compiling mod_webapp on Solaris 8
Date Tue, 16 Oct 2001 15:51:08 GMT
For what it is worth, I found mod_jk much much easier to compile even 
with gcc...  I tried compiling mod_webapp on Irix and I had to install 
many different packages to get it to install.  I had the same experience 
on a older versin of Solaris.  I tried the same thing with mod_jk on the 
SGI, and it compiled like a charm...  So you may want to go that route. 
But you don't need to use Tomcat 3.23.  Tomcat 4 does support the 
ability to use mod_jk...  If you are using 4.0, this explains how to 
hook it in:
http://jakarta.apache.org/~hgomez/ajp13-tc4.0/

I think with 4.01 all this is built right into the package.  Although, I 
noticed there was a long thread about 4.01 core dumping, but I'm not 
sure if that is a isolated incident or not?

Chris


Quick, Edward T wrote:
> I managed to get it to build the mod_webapp.so file eventually after using gcc and making
a few edits to apxs but when I ran apachectl configtest I got exactly the same message as
I got with the online binary version:
> 
> # ./apachectl configtest
> Syntax error on line 206 of /usr/local/apache1a/conf/httpd.conf:
> Cannot load /usr/local/apache1a/libexec/mod_webapp.so into server:
> ld.so.1: /usr/local/apache1a/bin/httpd: fatal: relocation error: file
> /usr/local/apache1a/libexec/mod_webapp.so: symbol __lshrdi3: referenced
> symbol not found
> 
> There's only 2 things I can think of to get TomCat to work with Apache now:
> 
> 1. Compile everything with gcc and GNU utils. (I can't do this because it's not the standard
here. Have to use Sun C Compiler).
> 2. Try out TomCat 3.x and see if mod_jk works.
> 
> 
> 
> 
> 
> 
> 
> 
> cgokey@gcmd.gsfc.nasa.gov on 16/10/2001 14:41:00
> To:	Edward Quick
> cc:	
> bcc:	
> Subject:	Re: Problems compiling mod_webapp on Solaris 8
> 
> Compiling with gcc will make things go a lot smoother...  Try this:
> 
> rm config.cache
> setenv CC gcc
> ./configure --with-apxs=/usr/local/apache1a/bin/apxs
> gmake
> 
> Chris
> 
> Quick, Edward T wrote:
> 
>>Hi,
>>
>>I'm having problems getting the webapp module to compile. I ran configure and
>>
>  that went OK, but when I run make it fails (see output below). Is there any
>  other way to get tomcat to work with Apache or do I have to load the webapp
>  module?
> 
>>Thanks for any help.
>>
>>Ed.
>>
>>$ ./configure --with-apxs=/usr/local/apache1a/bin/apxs
>>creating cache ./config.cache
>>checking for test... /usr/bin/test
>>checking for true... /usr/bin/true
>>checking for echo... /usr/bin/echo
>>checking for grep... /usr/bin/grep
>>checking for cat... /usr/bin/cat
>>checking for sed... /usr/bin/sed
>>checking for ln... /usr/bin/ln
>>checking for rm... /usr/bin/rm
>>checking host system type... sparc-sun-solaris2.8
>>checking for sources directory...
>>/export/home/u752359/webapp-module-1.0-tc40
>>checking for targets directory...
>>/export/home/u752359/webapp-module-1.0-tc40
>>
>>C-Language compilation tools
>>checking for ar... /usr/ccs/bin/ar
>>checking for ranlib... /usr/ccs/bin/ranlib
>>checking for gcc... cc
>>checking whether the C compiler (cc  ) works... yes
>>checking whether the C compiler (cc  ) is a cross-compiler... no
>>..
>>..
>>
>>    APR configure: creating build/rules.mk
>>    APR configure: creating include/arch/unix/apr_private.h
>>  Execution of ./configure --enable-static --disable-shared
>>--disable-threads returned 0
>>
>>Finishing up
>>checking for APR compilation flags... ok
>>checking for Makefile targets... /usr/bin/test[8]: lib: unknown test
>>operator
>>/usr/bin/test[8]: apr: unknown test operator
>>lib apr apache-1.3
>>updating cache ./config.cache
>>creating ./config.status
>>creating ./Makefile
>>creating ./Makedefs
>>creating ./lib/Makefile
>>creating ./java/Constants.java
>>creating ./apache-1.3/Makefile
>>
>>All done. Now you can issue "make". Good luck.
>>
>>
>>$ make
>>
>>make[1]: Entering directory "lib"
>>make[1]: Invoking "make  build"
>>make[2]: Generating "pr_warp_defs.h"
>>cat: cannot open
>>/tmp/mnt/bin/cc -g   -g -O2 -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS
>>-D_REENTRANT   -I/export/home/u752359/webapp-module-1.0-tc40/apr/include
>>-I/export/home/u752359/webapp-module-1.0-tc40/include -c "wa_main.c" -o
>>"wa_main.o"
>>cc: Warning: option -2 passed to ld
>>/tmp/mnt/bin/cc -g   -g -O2 -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS
>>-D_REENTRANT   -I/export/home/u752359/webapp-module-1.0-tc40/apr/include
>>-I/export/home/u752359/webapp-module-1.0-tc40/include -c "wa_config.c"
>>-o "wa_config.o"
>>cc: Warning: option -2 passed to ld
>>..
>>..
>>..
>>
>>"pr_warp.c", line 435: syntax error before or at: }
>>"pr_warp.c", line 437: warning: function prototype parameters must have
>>types
>>"pr_warp.c", line 437: warning: old-style declaration or incorrect type
>>for: n_disconnect
>>"pr_warp.c", line 438: syntax error before or at: return
>>"pr_warp.c", line 438: syntax error before or at: "pr_warp.c"
>>"pr_warp.c", line 438: syntax error before or at: 500
>>"pr_warp.c", line 438: warning: old-style declaration or incorrect type
>>for: wa_rerror
>>"pr_warp.c", line 438: warning: identifier redeclared: wa_rerror
>>        current : function() returning int
>>        previous: function(pointer to const char, const int, pointer to
>>struct wa_request {pointer to struct apr_pool_t {..} pool, pointer to
>>... :
>>"/export/home/u752359/webapp-module-1.0-tc40/include/wa_request.h", line
>>161
>>"pr_warp.c", line 439: syntax error before or at: }
>>"pr_warp.c", line 460: cannot recover from previous errors
>>cc: acomp failed for pr_warp.c
>>*** Error code 2
>>make: Fatal error: Command failed for target `pr_warp.o'
>>Current working directory
>>/export/home/u752359/webapp-module-1.0-tc40/lib
>>*** Error code 1
>>make: Fatal error: Command failed for target `template'
>>Current working directory /export/home/u752359/webapp-module-1.0-tc40
>>*** Error code 1
>>make: Fatal error: Command failed for target `lib-build'
>>
>>
>>
> 
> 
> 
> --
>   __________________________________________________
> /\
> 
> 	           \
> \_| Christopher D. Gokey, SSAI, NASA/GCMD          |
>    | 18 Martin Road, Shelburne Falls, MA  01370     |
>    | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
>    | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
>    | ICQ #52132386, AOL IM: chrisgokey              |
>    |   _____________________________________________|_
>     \_/______________________________________________/
> 
> 
> 
> 
> 



-- 
  __________________________________________________
/\ 
			 
	           \
\_| Christopher D. Gokey, SSAI, NASA/GCMD          |
   | 18 Martin Road, Shelburne Falls, MA  01370     |
   | Phone: Voice (413) 625-8129 / FAX 208-248-9055 |
   | cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov    |
   | ICQ #52132386, AOL IM: chrisgokey              |
   |   _____________________________________________|_
    \_/______________________________________________/


Mime
View raw message