This is the mail archive of the java@gcc.gnu.org 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: gcj on FreeBSD - unresolved externals with static link


>>>>> "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


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