This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Update: Problem with Alpha OSF1 and mips-tfile
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Subject: Re: Update: Problem with Alpha OSF1 and mips-tfile
- From: Antonio Ake <ake at ecn dot purdue dot edu>
- Date: Fri, 20 Jul 2001 00:59:38 -0500 (EST)
- cc: Andrew Haley <aph at cambridge dot redhat dot com>, <java at gcc dot gnu dot org>, <tromey at redhat dot com>
Thanks a lot. I change the jvspec.c to your first patch and
gcj is compiling helloworld in UNIX True64 v5.0 ALPHA,
I will probably be testing gcj on this machine...
These are the first problems found running gcj in this machine:
1. command: gcj --main=HelloWorld -o hello HelloWorld.java
compiled without error messages.
./hello
515056:./hello: /sbin/loader: Error: Unresolved symbol in
/usr/users/ake/gcc18/lib//libgcj.so: iconv_close
515056:./hello: /sbin/loader: Error: Unresolved symbol in
/usr/users/ake/gcc18/lib//libgcj.so: iconv
515056:./hello: /sbin/loader: Error: Unresolved symbol in
/usr/users/ake/gcc18/lib//libgcj.so: iconv_open
515056:./hello: /sbin/loader: Fatal Error: this executable has
unresolvable symbols
Workaround: gcj --main=HelloWorld -o hello HelloWorld.java -liconv
Why is not linked by default -liconv? Where it could be the problem?
2. Problem
I need to compile a static binary:
Command: gcj --main=HelloWorld -o hello HelloWorld.java -liconv -static
Error: Undefined:
iconv_open
iconv_close
iconv
collect2: ld returned 1 exit status
I hope this problem is related with the first one, because I really need
to work with static binaries.
Regards