You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Shankey <sh...@netscape.net> on 2001/08/22 11:34:48 UTC

mod_jk compile problems with Solaris 8

What I have:
uname -a returns
SunOS wando 5.8 Generic_111433-02 sun4u sparc SUNW,Ultra-5_10

Java programs
Using Java 2 SDK, Standard Edition Version 1.3.1
Using Java API for XML Processing Version 1.1
Using Java Secure Sockets Extension (JSSE) version 1.0.2
Using Ant 1.3 
Using servletapi-3.2.3
Using Tomcat 3.2.3

using Apache 1.3.17
using config of:
#
./configure \
  --prefix=${WEB_BASE}/apache_1.3.17 \
  --enable-module=most \
  --enable-shared=max


perl -V returns:
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos localhost 5.8 sun4u sparc sunw,ultra-1 '
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-xO3 -xdepend', gccversion=
    cppflags=''
    ccflags =''
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.00
503/sun4-solaris/CORE'
    cccdlflags='-KPIC', lddlflags='-G'


Characteristics of this binary (from libperl):
  Built under solaris
  Compiled at Dec 22 1999 00:00:57
  @INC:
    /usr/perl5/5.00503/sun4-solaris
    /usr/perl5/5.00503
    /usr/perl5/site_perl/5.005/sun4-solaris
    /usr/perl5/site_perl/5.005
    .

Using the doc "Working with mod_jk" By Gal Shachor
I worked threw all the issues of compiling and building until I came to Building mod_jk for Unix. I found there was no build-solaris.sh in 
$TOMCAT_HOME/src/native/apache1.3/ . I did find a Makefile.linux copied it to Makefile.solaris. It seemed as though I just needed to change a couple of env vars

here it is:
## You need to edit this file - configure later :-)

## I assume this one is set up already
# JAVA_HOME=
OS=solaris

JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L ${JAVA_HOME}/lib/${ARCH}/native_thre
ads
#ifndef APXS
APXS=${APACHE_HOME}/bin/apxs
#endif

JK=../jk/
SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c ../jk/jk_uti
l.c ../jk/jk_ajp13.c \
     ../jk/jk_jni_worker.c ../jk/jk_pool.c ../jk/jk_worker.c ../jk/jk_ajp13_work
er.c ../jk/jk_lb_worker.c \
     ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c


all: mod_jk.so

###################################

All the vars line up but when I <make -f Makefile.solaris all> the compile fails here are the last few lines:

gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/u80/w1/apa
che_1.3.17/include -I../jk -I/u80/w1/j2sdk1_3_1/include -I/u80/w1/j2sdk1_3_1/inc
lude/solaris  -c ../jk/jk_lb_worker.c
gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/u80/w1/apa
che_1.3.17/include -I../jk -I/u80/w1/j2sdk1_3_1/include -I/u80/w1/j2sdk1_3_1/inc
lude/solaris  -c ../jk/jk_sockbuf.c
gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/u80/w1/apa
che_1.3.17/include -I../jk -I/u80/w1/j2sdk1_3_1/include -I/u80/w1/j2sdk1_3_1/inc
lude/solaris  -c ../jk/jk_map.c
gcc -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED  -I/u80/w1/apa
che_1.3.17/include -I../jk -I/u80/w1/j2sdk1_3_1/include -I/u80/w1/j2sdk1_3_1/inc
lude/solaris  -c ../jk/jk_uri_worker_map.c
  -o mod_jk.so jk_uri_worker_map.o jk_map.o jk_sockbuf.o jk_lb_worker.o jk_ajp13
_worker.o jk_worker.o jk_pool.o jk_jni_worker.o jk_ajp13.o jk_util.o jk_msg_buff
.o jk_connect.o jk_ajp12_worker.o mod_jk.o
apxs:Break: Command failed with rc=255
make: *** [mod_jk.so] Error 1
shankeyp@wando:/u80/w1/jh/jakarta-tomcat/src/native/apache1.3>

I did try the suggestions in "working with mod_jk" but I still ended up with 
apxs:Break: Command failed with rc=255
make: *** [mod_jk.so] Error 1

I know apxs is a perl script so I am wondering if I should try a newer version of perl. What do you think? Any ideas would be very helpful

Thanks
Pete 
 



__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/