This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj on FreeBSD - unresolved externals with static link
- To: "Jan Mikkelsen" <janm at transactionware dot com>
- Subject: Re: gcj on FreeBSD - unresolved externals with static link
- From: Tom Tromey <tromey at redhat dot com>
- Date: 10 Oct 2001 11:48:05 -0600
- Cc: <java at gcc dot gnu dot org>
- References: <020501c1504a$b85959f0$0a01a8c0@mosm1>
- Reply-To: tromey at redhat dot com
>>>>> "Jan" == Jan Mikkelsen <janm@transactionware.com> writes:
Jan> I have built gcj on FreeBSD 4.3 (3.0.1 and the 20011001 snapshot).
Jan> Gcj itself seems to run fine, but with shared libraries the
Jan> resultant program dumps core, and with static linking, there are
Jan> unresolved externals at the link step.
Jan> $ /pkgs/gcc-3.0.1/bin/gcj -static --main=hello hello.java
Static linking isn't extensively tested. Offhand I don't know what
the problem might be though. Using gcj 3.1 on my x86 Red Hat Linux
6.2 box, I can link hello-world with -static just fine. However, it
doesn't run properly.
Jan> Are there any other magic flags I should use to get it going on
Jan> FreeBSD, or are the other things I need to do?
Not as far as I'm aware.
I don't think any of the current gcj developers use FreeBSD. So
unfortunately we'll have to rely on you for understanding of the bug,
and perhaps even the fix.
Tom