tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Tatum <scott.ta...@wcom.com>
Subject Re: mod_jk and mod_jserv compiling problems
Date Wed, 25 Apr 2001 22:08:21 GMT
I'm not sure, but it looks like it's bombing when it's done compiling and is
trying to link all the object files together. Perhaps it is trying to find the
ld command and can't? Do a "which ld" from the command line to make sure you
have it. On RH62, it should be /usr/bin/ld.

-Scott
--
Scott Tatum | scott.tatum@wcom.com
Senior Applications Developer, Special Projects
WorldCom | http://www.wcom.com/

Sue Evans wrote:

> Hello,
> thanks very much to those who responsed with suggestions.  I have made
> progress!  I re-compiled Apache and apxs is now working.  I have tried
> recompiling mod_jk following the instructions below.  here is what I am
> typing, and here is what I get as an error:
>
> I type:
>
> /usr/local/apache/bin/apxs -o mod_jk.so -I../jk -I/usr/java/jdk1.3.0_02/inc
> lude -I/usr/java/jdk1.3.0_02/include/linux -c *.c ../jk/*.c
>
> What I get is this:
>
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c mod_jk.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_ajp12_wo
> rker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_ajp13.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_ajp13_wo
> rker.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_connect.
> c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_jni_work
> er.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_lb_worke
> r.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_msg_buff
> .c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_nwmain.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_pool.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_sockbuf.
> c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_uri_work
> er_map.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_util.c
> gcc -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> -I/usr/local/apache/inclu
> de -I../jk -I/usr/java/jdk1.3.0_02/include
> -I/usr/java/jdk1.3.0_02/include/linux  -c ../jk/jk_worker.c
>   -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
> jk_pool.o jk_nwmain.o jk_msg_buf
> f.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o jk_ajp13_worker.o
> jk_ajp13.o jk_ajp12_worker.
> o mod_jk.o
> apxs:Break: Command failed with rc=255
>
> Any ideas?  Again, thanks very much to all who responded!  It is a big help.
> I appreciate  your time.
> - Sue
>
> -----Original Message-----
> From: Scott Tatum [mailto:scott.tatum@wcom.com]
> Sent: Wednesday, April 25, 2001 2:55 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: mod_jk and mod_jserv compiling problems
>
> I think you were on the best track with #3, compiling and installing Apache
> yourself first. When you compile Apache, make sure that your configure line
> has
> at least the --enable-shared=so option so that you can your your mod_jk DSO.
> I
> usually compile with --enable-shared=max option so that I can remove modules
> if
> I don't need them by commenting them out in httpd.conf.
>
> You want to compile mod_jk, not mod_jserv, and you don't want to get a
> precompiled version from somewhere.
>
> Your best best is to get both the binary and source versions of Tomcat
> 3.2.1.
> Install the binary version (basically just untar it where you want it and
> set
> the TOMCAT_HOME environment variable). Untar the source version just to
> compile
> mod_jk.so. Change to the src/native/apache1.3 directory under the Tomcat
> source
> directory. Enter this line, replacing JAVA_HOME with the directory of your
> jsdk
> installation (e.g. /usr/java/jdk1.3.0_02):
>
> apxs -o mod_jk.so -I../jk -IJAVA_HOME/include -I/JAVA_HOME/include/linux -c
> *.c
> ../jk/*.c
>
> If apxs is not in your path, then you will have to put the absolute path for
> apxs in order for it to see it. For example if your apache bin directory is
> /home/httpd/bin, then you replace apxs with /home/httpd/bin/apxs.
>
> Once you run this, you'll have a mod_jk.so in that directory. Move that file
> to
> the libexec directory under the Apache directory. Then edit httpd.conf and
> put
> in LoadModule and AddModule directives in order with the other directives:
>
> LoadModule jk_module          libexec/mod_jk.so
> AddModule mod_jk.c
>
> I think the mod_jk.conf-auto adds its own LoadModule line. You will want to
> copy
> mod_jk.conf-auto to mod_jk.conf, remove the LoadModule entry from that file,
> and
> include that file in httpd.conf. Any more questions, just ask.
>
> -Scott
>
> Sue Evans wrote:
>
> > Hello,
> > I have spent days trying to get tomcat configured.  I can't seem to
> > get/create either mod_jk or mod_jserv that will work.  I am on Linux 6.2,
> > using Apache 1.3 and Tomcat 3.2.1 . I have tried the following with these
> > results:
> >
> > 1. First tried using the Apache server that installed automatically when I
> > installed Linux.  Problem is that nowhere on my system could I find apxs -
> > so I copied it form another Linux installation.  I tried to then compile
> > mod_jserv.  Keep getting an error when I run the command
> >     apxs -c -o mod_jserv.so *.c
> > to create mod_jserv.  Get the error :No such file or directory.  I don't
> > know what it is referring to - it is finding apxs okay, what file or
> > directory is it referring to?
> >
> > 2. Next I tried copying the binary mod_jserv from the tomcat download site
> > and that didn't work either.  When I went to startup apache, I get the
> > error:  "Loade DSO libexec/mod_jserv.so uses plain Apache 1.3 API, this
> > module might crash upon EAPI.  Please recompile it with -DEAPI!"   I have
> no
> > idea what this means.
> >
> > 3.  Next I tired compiling my own Apache version 1.3 and got that all
> > installed with DSO enabled.  Again, tried creating the mod_jserv and
> mod_jk
> > files using apxs and again got the error "No such file or directory".
> Still
> > don't know what that is referring to.
> >
> > 4. Next tried using the binary mod_jserv that  I had downloaded from the
> > tomcat download site.  Didn't work.  Apache won't start.  I get no errors,
> > nothing in the log files, nothing in configstatus, NOTHING!  (very
> > frustrating).  Just says "not started".
> >
> > 5. Next I tried using the binary mod_jk that I had downloaded from the
> > tomcat download site.  Didn't work.  Apache won't start.  This time I at
> > least get an error message.  It says "API module structure 'jk_module; in
> > file /usr/local/apache/libexec/mod_jk.so is garbled - perhpas this is not
> an
> > Apche module DSO?  Apache could not be started.  (I tried re-downloading
> it
> > but to no avail!)
> >
> > So... any ideas?  To recap:
> > 1. The downloaded binary mod_jk.so and mod_jserv.so don't seem to work.
> > 2. I can't create new mod_jk.so or mod_jserv.so because apxs reports "No
> > such file or directory" when I enter the commands as given in the
> > documentation.
> >
> > As I said -- I have spent DAYS on this and am completely frustrated.  Any
> > help is surely appreciated.
> >
> > - Sue Evans
>
> --
> Scott Tatum | scott.tatum@wcom.com
> Senior Applications Developer, Special Projects
> WorldCom | http://www.wcom.com/




Mime
View raw message