----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

I'm running on the following ....

Redhat Linux 6.2
ApacheJServe1.1.2
Apache 1.3.12

Please note: The mail with subject : "Trouble installing Apache 1.3.12,
ApacheJServe1.1.2 on RedhatLinux 6.2 with DSO" was my frist mail. Now I have
added "2 - " to the same subject title

My earlier installations of JServ had failed.

This time I configured JServ with --enable-module=so

1. Configure options used for ApacheJServ-1.1.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

./configure --prefix=/usr/local/jserv \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-debugging \
--with-JSDK=/usr/java/JSDK2.0/lib/jsdk.jar \
--enable-EAPI \
--with-jdk-home=/usr/java/jdk1.3 \
--with-java-platform=2 \
--enable-module=so

Then 'make', 'make install'


The INSTALL file of ApacheJServ-1.1.2 says this....

*>>--->You can see if Apache has loaded the mod_jserv module by executing
'/path/to/apache/installation/bin/httpd -l'. <---<<*

My latest Apache install had not loaded 'mod_jserv'. But mod_jserv.o was
present from the previous compilation in ApacheJServe source directory.
Hence in the next Apache configuration,  I included mod_jserv.o with the
option '--activate-module'. The configure options  are listed below.

I created my own directory "harsha/jserv/" under "extra/"  (so that I dont
mess up) and copied the file mod_jserv.o from ApacheJServ-1.1.2/src/c/
directory.

2. Configure options used for Apache 1.3.12
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./configure --prefix=/usr/local/apache \
--enable-shared=max \
--activate-module=src/modules/extra/harsha/jserv/mod_jserv.o

Then I did ...
make

I got error when I did a "make". Here are the details....

======= Last few lines of make ======
gcc  -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
/apaci`   -rdynamic \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/extra/libextra.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a lib/expat-lite/libexpat.a  -lm -lcrypt -ldl
modules.o(.data+0x8): undefined reference to `jserv_module'
modules.o(.data+0x18): undefined reference to `jserv_module'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/harsha/tarfiles/apache_1.3.12/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/harsha/tarfiles/apache_1.3.12'
make: *** [build] Error 2

[root@Linux apache_1.3.12]#
======================================

I get "undefined reference to `jserv_module'". But there is no
"jserv_module.c" or "jserv_module.o" on the Linux system.

I did a ...

/sbin/ldconfig -v

in order to update /etc/ld.so.config.with the latest JServ library files or
modules

But /etc/ld.so.config. Has not changed. I created a directory
"harsha/jserv/lib" under ApacheJServ srouce directory as below and copied to
it all the .o files of ApacheJServ-1.1.2.

src/modules/c/harsha/jserv/lib/

Then again I did

/sbin/ldconfig -v -n
/home/harsha/tarfiles/ApacheJServ-1.1.2/src/modules/c/harsha/jserv/lib

But still /etc/lo.so.conf file has not changed.

+++++++++++++++++++++++++++++++++++++++
Now my questions are...

1. Why do I get "undefined reference to `jserv_module'" error when there is
no jserv_module.*?
2. If this problem is beacuse Apache's make cant find ApacheJServ's modules
/ libraries, why doesnt ldconfig find them and make an enrty in
/etc/ld.so.conf?

Hope some one out there cracks this.

Sincerely,
Harsha




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to