This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: can't compile cvs/snapshot gcj for a week


Thanks Tom for the help and everyone for the compiler,

I downloaded gcc and libgcj from cvs on Sunday August 26th and both compiled.
To test them out I ran HelloWorld, having set my path and ld_lib variables.
The compile went fine but the exectuable choked with
./Hello
./Hello: error in loading shared libraries: /soft/Zgcc/lib/libzgcj.so.0:
undefined symbol: __dso_handle

The whole session is:


[acuster@tsetse HelloWorld]$ echo $PATH
/soft/Zgcc/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
[acuster@tsetse HelloWorld]$ echo $LD_LIBRARY_PATH
/soft/Zgcc/lib
[acuster@tsetse HelloWorld]$ cat HelloWorld.java 

public class HelloWorld {

  public static void main (String [] args){
	 System.out.println("Hello");	
  }
  
}
[acuster@tsetse HelloWorld]$ make HelloWorld
gcj --main=HelloWorld -o Hello  HelloWorld.java
[acuster@tsetse HelloWorld]$ ./Hello 
./Hello: error in loading shared libraries: /soft/Zgcc/lib/libzgcj.so.0:
undefined symbol: __dso_handle
[acuster@tsetse HelloWorld]$ 

Any ideas?

thanks,
adrian

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]