tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quick, Edward T" <Edward.T.Qu...@BritishAirways.com>
Subject Re: Problems compiling mod_webapp on Solaris 8
Date Tue, 16 Oct 2001 15:46:23 GMT
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              |
   |   _____________________________________________|_
    \_/______________________________________________/




Mime
View raw message