DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4915>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4915

Relocation error while loading mod_jk when starting apache.

           Summary: Relocation error while loading mod_jk when starting
                    apache.
           Product: Tomcat 3
           Version: 3.2.3 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I first start tomcat 3.2.3 with /path/to/tomcat/bin/startup.sh; second, I try to
start apache 1.3.22 with /path/to/apache/bin/apachectl start. I then get the
following message :

Syntax error on line 8 of /path/to/tomcat/conf/mod_jk.conf-auto:
Cannot load /path/to/apache/libexec/mod_jk.so into server: ld.so.1:
/path/to/apache/bin/httpd: fatal: relocation error: file
/path/to/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not found
/path/to/apache/bin/apachectl start: httpd could not be started

My system is Solaris 2.5.
I have built apache in a DSO mode with :
/configure --prefix=/path/to/apache \
                  --enable-module=most \
                  --enable-shared=max

I have built mod_jk.so from the source distribution jakarta-tomcat-3.2.3-src in
the following way :

cd /path/to/Tomcat/source/distribution/src/native/apache1.3
$APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS -I../jk
              -I/path/to/java/include -I/path/to/java/include/solaris -c *.c
../jk/*.c
cp mod_jk.so /path/to/apache/libexec/.

Finally I have put "Include /path/to/tomcat/conf/mod_jk.conf-auto" at the end of
the 

If I use Tomcat 3.3 instead of 3.2.3 and that I build mod_jk.so in the following
way :

cd /path/to/tomcat//native/mod_jk/apache1.3
sh build-solaris.sh
 and that I put "Include /path/to/tomcat/conf/auto/mod_jk.conf" aaaat the end of
the /path/to/apache/conf/httpd.conf file, I get the following message :

Syntax error on line 4 of /path/to/tomcat/conf/auto/mod_jk.conf:
Cannot load /path/to/apache/libexec/mod_jk.so into server: ld.so.1:
/path/to/apache2/bin/httpd: fatal: relocation error: file
/path/to/apache/libexec/mod_jk.so: symbol snprintf: referenced symbol not found
/path/to/apache/bin/apachectl start: httpd could not be started

note : apache works perfectly alone without tomcat started (and without
including mod_jk.conf in httpd.conf).

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to