This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: Build problem
- To: Anthony Green <green@cygnus.com>
- Subject: Re: Build problem
- From: Kresten Krab Thorup <krab@yl.is.s.u-tokyo.ac.jp>
- Date: 09 Jul 1999 18:56:25 +0900
- Cc: java-discuss@sourceware.cygnus.com
- References: <199907081211.FAA29446@fencer.cygnus.com>
Anthony Green <green@cygnus.com> writes:
>
> __builtin_new should be in your libgcc.a. Use nm and look for an
> opnew.o.
> terminate(void) is really terminate__Fv, and should also be in libgcc.a.
> Look for exception.o.
>
Ok, i rebuild egcs and the problem disappeared. I dunno what happened.
Now I have another problem.
BTW, I'm on sunos 5.6, and I have build gcj with-gc and
with-threads=posix.
For some reason, the initializers are not being run for the shared
libraries. (Meaning that _Jv_RegisterClass is never called for the
shlibs.) If I link with the static libraries, the initializers are
run fine.
I had to do this fix to make sure class Properties gets initialized
correctly. Otherwise it's vtable contains null for the put method.
1999-07-09 Kresten Krab Thorup <krab@gnu.org>
* java/lang/natSystem.cc (init_properties): Call _Jv_InitClass for
java.lang.Properties.
(PropertiesClass): New macro.
RCS file: /cvs/java/libgcj/libjava/java/lang/natSystem.cc,v
retrieving revision 1.7
diff -r1.7 natSystem.cc
54a55,57
> #define PropertiesClass _CL_Q34java4util10Properties
> extern java::lang::Class PropertiesClass;
>
240c243,245
< properties = new java::util::Properties ();
---
> _Jv_InitClass (&PropertiesClass);
> properties = new java::util::Properties;
>
-- Kresten
Kresten Krab Thorup, Ph.D. Candidate
c/o Yonezawa Laboratory
Department of Information Science
The University of Tokyo
7-3-1 Hongo, Bunkyo-ku, Tokyo 113 Japan
Fax: +81-(0)3-5689-4365
Phone: +81-(0)3-3812-2111 ext 4118
Mobile: +81-(0)90-3693-5715