gcj on FreeBSD - unresolved externals with static link
Tom Tromey
tromey@redhat.com
Wed Oct 10 10:33:00 GMT 2001
>>>>> "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
More information about the Java
mailing list