Hello, I'm attempting to build ApacheJServ1.0 on a Sun Sparc5 running
solaris2.6, jdk1.1.7, gcc1.8.1, apache-1.3.6
The series of commands i've been using (from the install instructions and
from the faq-o-matic) have been variations of this:
cd apache_1.3.6
./configure --prefix=/opt/apache --enable-rule=SHARED_CORE \
--enable-module=so
make; make install
cd ../ApacheJServ-1.0
./configure --prefix=/opt/jserv --with-apache-install=/opt/apache \
--with-jdk-home=/usr/java --with-jsdk=/u1/ICE/generic/lib/jsdk.jar
make; make install
#usually omit the following three steps, but read it on the faq-o-matic
mkdir /usr/local/src/apache_1.3.6/src/modules/extra/jserv
cd /usr/local/src/ApacheJServ-1.0/src/c
tar cf - . | (cd /usr/local/apache_1.3.6/src/modules/extra/jserv; tar \
xfBp - )
cd ../apache_1.3.6
./configure --prefix=/opt/apache --enable-rule=SHARED_CORE \
--enable-module=so \
--add-module=src/modules/extra/jserv/mod_jserv.c \
--enable-shared=jserv --enable-module=jserv
make; make install
at this point I get:
[much delted]
gcc -c -I../../os/unix -I../../include -DSOLARIS2=260 -fPIC
-DSHARED_CORE `../../apaci` -DSHARED_MODULE mod_jserv.c && mv mod_jserv.o
mod_jserv.lo
mod_jserv.c:63: jserv.h: No such file or directory
which seems to be related to the following that jumped past the screen as
I built jserv, but that I'm not sure what to do with because I've been
mostly downloading pre-built packages for the last several years:
----------------------------------------------------------------------
Libraries have been installed in:
/opt/jserv/lib
To link against installed libraries in a given directory, LIBDIR,
you must use the `-LLIBDIR' flag during linking.
You will also need to 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.
----------------------------------------------------------------------
I've tried hacking mod_jserv.c to add the full path to jserv.h, which
allows the compile to finish but when connecting to
http://localhost/example/Hello gives the dreaded errors:
[12/07/1999 08:18:06:216] (EMERGENCY) ajp11: can not connect to host
127.0.0.1:8004
[12/07/1999 08:18:06:216] (EMERGENCY) ajp11: connection fail
[12/07/1999 08:18:06:216] (ERROR) an error returned handling request via
protocol "ajpv11"
[12/07/1999 08:18:06:216] (ERROR) an error returned handling request via
protocol "status"
in the error log.
I did execute lsof on the httpd process on one attempt and noted that
mod_jserv (or something with jserv in it) was among the open files, but I
don't have the exact output to share.
So... my gut tells me if I had a cleaner build I wouldn't be seeing the
rest of the problems.
I have also:
- verified all the paths in all the jserv.conf and jserv.properties
- have no spaces in any of the paths
- added the 'Include /blah/blah/jserv.conf' line to httpd.conf
- tried --enable-shared=max
- attempted a non-DSO build
- tried adding directories to the apache_1.3.6/src/Configuration file
(but I'm not sure which, I've tried many things, and I think this
might be part of the key)
Where else can I turn?
Thanks for any help.
David
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]