You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by MOREL Sylvain OCISI <sy...@francetelecom.com> on 2003/04/28 18:49:42 UTC

Compilation of mod_jk2 on Solaris8 Plate-form with apache 1.3.27

I have tried a similar compilation with apache 1.3.27 and APR but i have difficulties to succeed my compilation on Solaris Plateform.
Here is my build for mod_jk2 :
 
#!/usr/bin/ksh
. ../../../env.sh
 
export CC=/opt/sfw/bin/gcc
echo "gcc"=$CC
export MAKE=/usr/ccs/bin/make
echo "make"=$MAKE
 
# PATH du CD companion d'abord, eviter plusieurs env. de dev..
export PATH=/opt/sfw/bin/:/usr/ccs/bin/:/usr/local/bin:/usr/sbin:/usr/bin:$PATH
CFLAGS='-O2 -Wall'
LDFLAGS='/exec/commun/prog/apa1327/apr092/lib'
 
./configure --with-apxs=/exec/commun/prog/apa1327/apa/bin/apxs \
        --with-tomcat41=/exec/commun/prog/tom4124 \
        --with-java-home=/exec/commun/prog/tom4124/jdk \
        --with-jni \
        --with-apr=/root/dev/src/apr-0.9.2 \
        --with-apr-lib=/exec/commun/prog/apa1327/apr092/lib \
        --with-apr-include=/exec/commun/prog/apa1327/apr092/include/apr-0 \
        --with-pcre=/exec/commun/prog/apa1327/pcre39
$MAKE
 
The result is an error during the Make command as below :
....
config.status: creating scripts/build/unix/dummy
config.status: executing depfiles commands
+ /usr/ccs/bin/make
list=' server/apache13'; \
for i in $list; do \
        echo "Making $target in $i"; \
        if test "$i" != "."; then \
        (cd $i && /usr/ccs/bin/make) || exit 1; \
fi; \
done;
Making  in server/apache13
make: Fatal error in reader: Makefile, line 15: Unexpected end of line seen
Current working directory /root/dev/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/server/apache13
*** Error code 1
make: Fatal error: Command failed for target `jk2-build'

If someone understand where the problem is or have already found a solution, would you mind giving me some explanation.
 
Thank you for your help,
 
Yours sincerely,
Sylvain MOREL
mailto:sylvain.morel@francetelecom.com 

 
-------------------
De: Kelly Kleinfelder [kelly@unboundmedicine.com]
Envoyé: mardi 22 avril 2003 21:39
À: Tomcat Users List
Objet: Re: mod_jk2 from source - brief HOW TO
 
You rule!!!!!
 
I've been struggling with getting JK2 build for a few days. Your
instructions are perfect!
 
Kelly
----- Original Message -----
From: "Mark Eggers" < its_toasted@yahoo.com>
To: < tomcat-user@jakarta.apache.org>
Sent: Tuesday, April 22, 2003 3:02 PM
Subject: mod_jk2 from source - brief HOW TO
 

> Folks,
>
> I've seen a lot of questions concerning this, so I
> finally had a go at compilation and installation.
>
> This was done on a Redhat Linux (release 9.0) box, but
> it should be pretty generic and useful for most
> UNIX-type OS's.
>
> I did not use rpm's for either the apache web server
> (2.0.45 - compiled from source) or tomcat (4.1.24 -
> installed from binary tarball).
>
> I've only tested the network socket connection (ie.,
> port 8009), but I don't see why the other
> configurations wouldn't work as well.
>
> From a cursory glance at build.xml, it appears that
> both the tomcat side and the web server side are being
> built.  The first problem appears to happen when Ant
> looks for tomcat-coyote.jar and can't find it.  Even
> after that is corrected, Ant goes off and looks for
> other things.
>
> I'm just learning Ant at this point, so I'm not sure
> what a good fix would be.
>
> 1. Download
> jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from
>
>
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
2/src/
>
> 2. Uncompress it and extract the tar file.
>
> 3. cd to
> jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
>
> 4. chmod u+x configure
>
> 5. Run configure with:
>
>    ./configure \
>     --with-apxs2=<apache-root-directory>/bin/apxs \
>     --with-tomcat41=<tomcat-root-directory> \
>     --with-java-home=<java-root-directory> \
>     --with-jni \
>     --with-pcre
>
> For example:
>
>   ./configure --with-apxs2=/home/apache/bin/apxs \
>       --with-tomcat41=/home/tomcat \
>       --with-java-home=/usr/java \
>       --with-jni \
>       --with-pcre
>
> 6. Run make
>
> 7. The two .so files (mod_jk2.so and jkjni.so) will be
> in:
>
> jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2
>
> 8. Copy those to files to
> <apache-root-directory>/modules with the
>    proper permissions.
>
> 9. Configure Apache and Tomcat
>
> 10. Restart and enjoy
>
> As always, I'm not a member of the Apache Software
> Organization, but just a happy
> user/developer/sysadmin.
>
> Hmmm . . . . a happy sysadmin - now there's an
> oxymoron.
>
> HTH
> /mde/
> just my two cents . . . .
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> 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