<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I posted the following message to the VTK mailing
list a long time ago. Since then, I have had quite a few people sending me
emails and asking me whether I solved this problem. Yes, I solved this problem.
My solution is to create a symbolic link libC.so in /usr/lib, pointing at
/usr/lib/libC.so.5. I think (my memory may be wrong as it has been quite a
while since I solved my problem) that the reason the solution works is because
on my machine the symbol _pure_error_ is defined in libC.so.5. However, at run
time, the system is looking at libC.so for this symbol and there is no libC.so
on my machine. By creating the symbolic link, this symbol is then found. I found
this solution by searching _pure_error_ in Google. And in some other mailing
list (don't remember the name of it), I got the clue to solve this
problem.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I hope this posting will help people who are
experiencing similar problems. </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Xinzi</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>> ----- Original Message -----<BR>> From: "Xinzi Wu" <<A
href="mailto:xinxin@sciencesoft.net">xinxin@sciencesoft.net</A>><BR>> To:
<<A
href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</A>><BR>>
Sent: Monday, May 27, 2002 12:18 AM<BR>> Subject: [vtkusers] Error with
Running Java SimpleVTK<BR>><BR>><BR>> Hi All,<BR>><BR>> I
downloaded VTK nightly release (on May 2, 2002) and built it with Java<BR>>
1.4.0 on Solaris (sparc) 8. But when I tried run the SimpleVTK test came<BR>>
with the nightly distribution, I got the following error:<BR>><BR>>
Exception in thread "main" java.lang.UnsatisfiedLinkError:<BR>>
/user/home/xccbond/vtk_May_2_2002/VTK/vtkbin/bin/libvtkCommonJava.so:<BR>>
ld.so.1: java: fatal: relocation error: file<BR>>
/user/home/xccbond/vtk_May_2_2002/VTK/vtkbin/bin/libvtkCommonJava.so:
symbol<BR>> _pure_error_: referenced symbol not
found<BR>> at
java.lang.ClassLoader$NativeLibrary.load(Native
Method)<BR>> at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1480)<BR>>
at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)<BR>>
at
java.lang.Runtime.loadLibrary0(Runtime.java:772)<BR>>
at
java.lang.System.loadLibrary(System.java:832)<BR>>
at
vtk.vtkPanel.<clinit>(vtkPanel.java:24)<BR>>
at
SimpleVTK.<init>(SimpleVTK.java:19)<BR>>
at SimpleVTK.main(SimpleVTK.java:49)<BR>><BR>> The C/C++ compiler that I
eventually specified for CMake to use is the Sun<BR>> Workshop Compilers
C/C++ 4.2. I also have gcc installed on my machine. But I<BR>> can't get the
CMake (1.2) to work with gcc, because I always got the error<BR>> message
"configure error: can not run test program while cross compiling"<BR>> when I
started CMake.<BR>><BR>> Please help!!<BR>><BR>> Thanks a
lot,<BR>> Xinzi<BR></DIV></BODY></HTML>