You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bongrip <to...@echeeba.com> on 2003/08/17 02:21:39 UTC

How To Build mod_jk?????

I have been trying to build mod_jk and it seems the documentation is 
lacking and the instructions do not work.

First my system:

Solaris 8 64-bit with latest patch cluster
gcc 3.3 AND Sun's Forte Dev 7 compiler
Tomcat 4.1.27 (installed and running fine)
Apache 2.0.47 (installed and running fine)
j2sdk1.4.1_04
Ant 1.5.4

I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it.

I then renamed build.properties.sample to build.properties and edited 
all the paths.

The documentation says to run 'ant', here is the output:
Buildfile: build.xml

detect:
      [echo] -------- jakarta-tomcat-connectors --------

prepare:

BUILD FAILED
file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105: 
Warning: Could not find file 
/root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar 
to copy.

Total time: 3 seconds


I then changed to this directory: 
jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2

% CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom
cat41=/usr/local/jakarta-tomcat-4.1.27 
--with-java-home=/usr/j2sdk1.4.1_04 --with-jni

% make

Make completes and I then get these 2 files in /usr/local/apache2/modules:
-rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
-rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la

At then end of the make it also says this:
libtool: install: warning: remember to run `libtool --finish 
/usr/local/apache2/modules'

So, if I do that:
hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool 
--finish /usr/local/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
    /usr/local/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
      during execution
    - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Now when I look in /usr/local/apache2/modules:

-rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
-rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la

What am I missing or what is the problem?

Thanks,
Chuck


RE: How To Build mod_jk?????

Posted by Stuart Stephen <st...@talkics.com>.
Bongrip,

I had the same problem, the files were supposed to be made in the
jk/build/jk2/apache2/.libs/ directory, but I never found them.

Eventually I reverted back to mod_jk which i built into apache.

Stuart

-----Original Message-----
From: Bongrip [mailto:tomcat@echeeba.com]
Sent: 17 August 2003 17:20
To: Tomcat Users List
Subject: Re: How To Build mod_jk?????


Eric J. Pinnell wrote:
> Hi,
>
> I don't use ant.  I use make.  It appears that you are trying to build
> JK2.
>
> In the native2 directory:
>
> ./configure --with-apxs2=/path/to/apache/bin/apxs
> make
>

>

Yes, that was exactly what I was trying. configure and make both
complete fine, however I never get the 2 resulting .so files anywhere in
the filesystem.

???

-CC


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




RE: How To Build mod_jk?????

Posted by Stuart Stephen <st...@talkics.com>.
Bongrip,

I had the same problem, the files were supposed to be made in the
jk/build/jk2/apache2/.libs/ directory, but I never found them.

Eventually I reverted back to mod_jk which i built into apache.

Stuart

-----Original Message-----
From: Bongrip [mailto:tomcat@echeeba.com]
Sent: 17 August 2003 17:20
To: Tomcat Users List
Subject: Re: How To Build mod_jk?????


Eric J. Pinnell wrote:
> Hi,
>
> I don't use ant.  I use make.  It appears that you are trying to build
> JK2.
>
> In the native2 directory:
>
> ./configure --with-apxs2=/path/to/apache/bin/apxs
> make
>

>

Yes, that was exactly what I was trying. configure and make both
complete fine, however I never get the 2 resulting .so files anywhere in
the filesystem.

???

-CC


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How To Build mod_jk?????

Posted by Bongrip <to...@echeeba.com>.
Eric J. Pinnell wrote:
> Hi,
> 
> I don't use ant.  I use make.  It appears that you are trying to build
> JK2.
> 
> In the native2 directory:
> 
> ./configure --with-apxs2=/path/to/apache/bin/apxs
> make
> 

> 

Yes, that was exactly what I was trying. configure and make both 
complete fine, however I never get the 2 resulting .so files anywhere in 
the filesystem.

???

-CC


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How To Build mod_jk?????

Posted by Bongrip <to...@echeeba.com>.
Eric J. Pinnell wrote:
> Hi,
> 
> I don't use ant.  I use make.  It appears that you are trying to build
> JK2.
> 
> In the native2 directory:
> 
> ./configure --with-apxs2=/path/to/apache/bin/apxs
> make
> 

> 

Yes, that was exactly what I was trying. configure and make both 
complete fine, however I never get the 2 resulting .so files anywhere in 
the filesystem.

???

-CC


Re: How To Build mod_jk?????

Posted by "Eric J. Pinnell" <er...@iCky.org>.
Hi,

I don't use ant.  I use make.  It appears that you are trying to build
JK2.

In the native2 directory:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

-e

On Sat, 16 Aug 2003, Bongrip wrote:

>
> I have been trying to build mod_jk and it seems the documentation is
> lacking and the instructions do not work.
>
> First my system:
>
> Solaris 8 64-bit with latest patch cluster
> gcc 3.3 AND Sun's Forte Dev 7 compiler
> Tomcat 4.1.27 (installed and running fine)
> Apache 2.0.47 (installed and running fine)
> j2sdk1.4.1_04
> Ant 1.5.4
>
> I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it.
>
> I then renamed build.properties.sample to build.properties and edited
> all the paths.
>
> The documentation says to run 'ant', here is the output:
> Buildfile: build.xml
>
> detect:
>       [echo] -------- jakarta-tomcat-connectors --------
>
> prepare:
>
> BUILD FAILED
> file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
> Warning: Could not find file
> /root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
>
> Total time: 3 seconds
>
>
> I then changed to this directory:
> jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
>
> % CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom
> cat41=/usr/local/jakarta-tomcat-4.1.27
> --with-java-home=/usr/j2sdk1.4.1_04 --with-jni
>
> % make
>
> Make completes and I then get these 2 files in /usr/local/apache2/modules:
> -rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la
>
> At then end of the make it also says this:
> libtool: install: warning: remember to run `libtool --finish
> /usr/local/apache2/modules'
>
> So, if I do that:
> hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool
> --finish /usr/local/apache2/modules
> ----------------------------------------------------------------------
> Libraries have been installed in:
>     /usr/local/apache2/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>     - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>       during execution
>     - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
>
> Now when I look in /usr/local/apache2/modules:
>
> -rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la
>
> What am I missing or what is the problem?
>
> Thanks,
> Chuck
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

Re: How To Build mod_jk?????

Posted by "Eric J. Pinnell" <er...@iCky.org>.
Hi,

I don't use ant.  I use make.  It appears that you are trying to build
JK2.

In the native2 directory:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

-e

On Sat, 16 Aug 2003, Bongrip wrote:

>
> I have been trying to build mod_jk and it seems the documentation is
> lacking and the instructions do not work.
>
> First my system:
>
> Solaris 8 64-bit with latest patch cluster
> gcc 3.3 AND Sun's Forte Dev 7 compiler
> Tomcat 4.1.27 (installed and running fine)
> Apache 2.0.47 (installed and running fine)
> j2sdk1.4.1_04
> Ant 1.5.4
>
> I downloaded jakarta-tomcat-connectors-jk2-2.0.2-src and extracted it.
>
> I then renamed build.properties.sample to build.properties and edited
> all the paths.
>
> The documentation says to run 'ant', here is the output:
> Buildfile: build.xml
>
> detect:
>       [echo] -------- jakarta-tomcat-connectors --------
>
> prepare:
>
> BUILD FAILED
> file:/root/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:105:
> Warning: Could not find file
> /root/jakarta-tomcat-connectors-jk2-2.0.2-src/coyote/build/lib/tomcat-coyote.jar
> to copy.
>
> Total time: 3 seconds
>
>
> I then changed to this directory:
> jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
>
> % CC=gcc ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tom
> cat41=/usr/local/jakarta-tomcat-4.1.27
> --with-java-home=/usr/j2sdk1.4.1_04 --with-jni
>
> % make
>
> Make completes and I then get these 2 files in /usr/local/apache2/modules:
> -rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la
>
> At then end of the make it also says this:
> libtool: install: warning: remember to run `libtool --finish
> /usr/local/apache2/modules'
>
> So, if I do that:
> hurley:~/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 #libtool
> --finish /usr/local/apache2/modules
> ----------------------------------------------------------------------
> Libraries have been installed in:
>     /usr/local/apache2/modules
>
> If you ever happen to want to link against installed libraries
> in a given directory, LIBDIR, you must either use libtool, and
> specify the full pathname of the library, or use the `-LLIBDIR'
> flag during linking and do at least one of the following:
>     - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>       during execution
>     - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
>
> Now when I look in /usr/local/apache2/modules:
>
> -rw-r--r--   1 root     other     945542 Aug 16 16:50 mod_jk.a
> -rw-r--r--   1 root     other        663 Aug 16 16:50 mod_jk.la
>
> What am I missing or what is the problem?
>
> Thanks,
> Chuck
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org