tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Rengifo <>
Subject Fatal: relocation error: file symbol __divdi3: referenced symbol not found
Date Fri, 03 Sep 2004 21:40:11 GMT
Hi to all ...

I've install Apache2 and Tomcat5 last versions from the Apache project
web page, and they are currently well running standalone in my 64 bits
Solaris 9 Box, but now I need to connect them, so I installed the new
mod_jk2 connector, with succeeding results at the configure and make
steps, following the "HOWTO set up JK2 on Solaris 9 using ChannelUnix
(AF_UNIX socket)" document from
I also setup and export the environment variable
LD_LIBRARY_PATH=/usr/java/jre/bin and soft-link the
dynamic library file from the $APACHE/module/ to the
LD_LIBRARY_PATH so I can avoid this error message:

I've configured and make the Apache2 and the JK2 connector in my own box

But now, I am facing a problem while starting tomcat… This is what I
see in my catalina.out log file:

1-Sep-2004 1:46:23 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-9092
1-Sep-2004 1:46:23 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2007 ms
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardService start
INFO: Starting service Tomcat-Standalone
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
1-Sep-2004 1:46:23 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
1-Sep-2004 1:46:25 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
1-Sep-2004 1:46:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-9092
1-Sep-2004 1:46:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on / /usr/java/bin/java: fatal: relocation error: file
/usr/local/apache-httpd-2.0.50/lib/ symbol __divdi3:
referenced symbol not found

I ran the ldd utility on the jni dynamic library "" with
the following results:

ldd => /usr/lib/ =>
/usr/local/apache-httpd-2.0.50/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/
/usr/platform/SUNW,Sun-Fire-V210/lib/ => /usr/lib/

I notice that the library suposed to have the problem was there
"/usr/local/apache-httpd-2.0.50/lib/" so I ran "nm"
utility on it with the following results:

nm /usr/local/apache-httpd-2.0.50/lib/ | grep div
[337] | 0| 0|FUNC |GLOB |0 |UNDEF |.div
[640] | 0| 0|FUNC |GLOB |0 |UNDEF |.udiv
[909] | 0| 0|NOTY |GLOB |0 |UNDEF |__divdi3
[938] | 0| 0|NOTY |GLOB |0 |UNDEF |__udivdi3

So it seems that the problem is on the because there
is the variable "__divdi3" wich is reporting the relocation error...

Then, I ran the ldd utility on the lib, with the
following results:

/usr/local/apache-httpd-2.0.50/lib ldd => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/ => /usr/lib/

Then I skim those libs for the symbol, and don't find it... What does this mean?

My problem is definitive related with the lib, when I add
the path of the library to the LD_LIBRARY_PATH I get the error
message: /usr/java/bin/java: fatal: relocation error: file
/usr/local/apache-httpd-2.0.50/lib/ symbol __divdi3:
referenced symbol not found

But, when take this path out of the LD_LIBRARY_PATH the error
disappears, but also disappears the AF_SOCKET support of the
connector, and got this message:

INFO: APR not loaded, disabling jni components:
java.lang.UnsatisfiedLinkError: no jkjni in java.library.path.

Please, any comment from you would be very helpful.


Jonathan M. Rengifo

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message