Yup, at the moment Jk2 is still highly Linux-based.  Hopefully, by the time
it gets to a release state, it will build easier on other systems.

The below would probably make a good interim include in the Jk2 docs, if any
of the Jk2 people have time to include it.

"Robert Williams" <[EMAIL PROTECTED]> wrote in message
news:000301c28adb$46d72150$0601a8c0@;xp...
> Hi all,
> After a bit more fussing around with this I found the answer. So here is
> my recipe for a successful build on Solaris 9. I Haven't tested it yet
> but at least it built. Here is my recipe.
>
> install GNU Tools
> autoconf-2.54-sol9-sparc-local.gz
> tar-1.13.19-sol9-sparc-local.gz
> m4-1.4-sol9-sparc-local
> automake-1.7.1-sol9-sparc-local
> make-3.80-sol9-sparc-local.gz
> libtool-1.4
>
>
> Apacbe build
>
> ./configure --enable-so --enable-layout=Apache
> --enable-module=most --enable-mods-shared=most
> ## the --enable-so is important for JK2 connector
> make
> make install
>
>
> Build jk2 Connector
> cd ${conector.home}/jk/native2
> sh ./buildconf.sh
>
> cp  /usr/java/include/solaris/* /usr/java/include/
>
> CPPFLAGS=-DBSD_COMP  ./configure \
>   --with-apxs2=/usr/local/apache2/bin/apxs \
>   --with-tomcat41=/usr/local/tomcat \
>   --with-java-home=${JAVA_HOME} \
>   --with-java-platform=2 \
>   --with-jni
>
> make CPPFLAGS=-DBSD_COMP
>
> cd ${conector.home}/jk/build/jk2/apache2
> cp jkjni.so /usr/local/tomcat/lib/
> cp mod_jk2.so /usr/local/apache2/modules/
>
>
> -----Original Message-----
> From: Robert Williams [mailto:rcw1@;pacbell.net]
> Sent: Tuesday, November 12, 2002 2:53 PM
> To: Tomcat User
> Subject: Link Error Building JK2 on Solaris 9
>
>
> Hi,
> I gathered up as much info as I can from this list google etc. but I
> can't figure this on out. I am compiling JK2 on Solaris 9. I makes it
> all the way through the compile and builds mod_jk2 but then dies when it
> tries to build jkjni.so. From my amateur look at the log it would seem
> that I am missing a file in  /usr/local/apache2/lib. Should that file
> have been built with Apache? Any help would be appreciated.
>
> ----------------------------------------------------------
> <snip>
> ./build/jk2/apache2/jk_shm.lo ../../../build/jk2/apache2/jk_signal.lo
> ../../../build/jk2/apache2/jk_uriEnv.lo
> ../../../build/jk2/apache2/jk_uriMap.lo
> ../../../build/jk2/apache2/jk_user.lo
> ../../../build/jk2/apache2/jk_vm_default.lo
> ../../../build/jk2/apache2/jk_workerEnv.lo
> ../../../build/jk2/apache2/jk_worker_ajp13.lo
> ../../../build/jk2/apache2/jk_worker_jni.lo
> ../../../build/jk2/apache2/jk_worker_lb.lo
> ../../../build/jk2/apache2/jk_worker_run.lo
> ../../../build/jk2/apache2/jk_worker_status.lo  -L/usr/local/apache2/lib
> -lcrypt -lapr -lc
> ld: fatal: library -lapr: not found
> ld: fatal: File processing errors. No output written to
> ../../../build/jk2/apache2/.libs/jkjni.so
> make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1
> make[1]: Leaving directory
> `/export/home/rcw/jakarta-tomcat-connectors-4.1.12-src/jk/native2/server
> /apache2'
> make: *** [jk2-build] Error 1
> rcw@sun:~/jakarta-tomcat-connectors-4.1.12-src/jk/native2 $
>
> ------------------------------------------
> rcw@sun:~ $ ls /usr/local/apache2/lib/
> apr.exp                 libapr-0.so.0.9.2*      libexpat.a
> aprutil.exp             libaprutil-0.a          libexpat.la*
> libapr-0.a              libaprutil-0.la         libexpat.so@
> libapr-0.la             libaprutil-0.so@        libexpat.so.0@
> libapr-0.so@            libaprutil-0.so.0@      libexpat.so.0.1.0*
> libapr-0.so.0@          libaprutil-0.so.0.9.2*
> rcw@sun:~ $
> -------------------------------
> Appacbe build
> ./configure --enable-layout=Apache --enable-module=most
> --enable-mods-shared=most
> --------------------------------
> install GNU Tools
> autoconf-2.54-sol9-sparc-local.gz
> tar-1.13.19-sol9-sparc-local.gz
> m4-1.4-sol9-sparc-local
> automake-1.7.1-sol9-sparc-local
> make-3.80-sol9-sparc-local.gz
> libtool-1.4
> ------------------------------------
> Build jk2 Conector
> cd ${conector.home}/jk/native2
> sh ./buildconf.sh
>
> cp  /usr/java/include/solaris to /usr/java/include/
>
> CPPFLAGS=-DBSD_COMP  ./configure \
>   --with-apxs2=/usr/local/apache2/bin/apxs \
>   --with-tomcat41=/usr/local/tomcat \
>   --with-java-home=${JAVA_HOME} \
>   --with-java-platform=2 \
>   --with-jni
>
> make CPPFLAGS=-DBSD_COMP
> ------------------------------------
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@;jakarta.apache.org>





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

Reply via email to