This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Q : Initial problems
Bryce McKinlay wrote:
>
> You do not need, and cannot use Sun's (or anyone else's) implementation
> of the standard java classes with the gcj compiler. You should start by
> building and installing libgcj:
>
> http://sources.redhat.com/java/download.html
>
> It s0unds to me like the binary distribution you installed did not
> include libgcj.
>
Obviously - thanks for pointing it out :-)
BTW - is libgcj 2.95.1 OK ?
> > My built from source variant created a binary OK, but running it
> > produces a core dump (apparently something with the initial creation
> > of static variables, according to adb).
> >
>
> This is what we call the "solaris linker bug". libtool is failing to
> arrange for libgcj's static C++ initializers to be run. You should be
> able to get around this by using GNU ld, and rebuilding both gcc and
> libgcj with the "--with-ld=/path/to/gnu/ld" configure option.
>
I will try the GNU binutils - I though read in the GCC install/SPECIFIC
file that for sparc-sun-solaris, binutils 2.9.1 contains a bug, thereby
native assembler/linker is suggested. So I will try binutils 2.10 ...
> regards
>
> [ bryce ]
Thanks for the response :-)
======================================================================
Mart Käsper E-mail : mart@netsoftlund.se
Netsoft Lund AB
Bredgatan 17 Tel (in place) : +46 46 19 04 95
S-222 21 Lund, Sweden Tel (on the road) : 070 / 319 04 95
======================================================================
#include <std.disclaimer>
======================================================================
Lisa, du och dina historier: Bart är en vampyr, öl
dödar hjärnceller. Nu går vi tillbaks till... den där
... byggnads...saken... där våra sängar och TV... är.
-- Homer Simpson