I just now downloaded and tried to compile japhar
on my solaris 2.7
I was looking for some comments on the two things:
(1) The following line in lib/libruntime/Makefile:
libruntime_la_LDFLAGS = -version-info 1:0:0 $(ZLIB)
causes this error:
libtool: link: error: cannot link shared libraries into libtool
libraries
So, I removed, $(ZLIB) and the compilation seemed to go fine.
Is this a correct modification or would this cause me grief later
on(especially since I have done it blindly)?
(2) On a trivial class file(compiled with Solaris JDK-2.0), a.java:
class a{
static public void main(String[] args){
};
};
with my CLASSPATH looking something like this:
$ echo $CLASSPATH
/emc/nbalasun/local/lib/ext:/emc/nbalasun/local/share
I get the following result when I run:
.
.
.
inflate: blocks reset
inflate: reset
inflate: dynamic codes block (last)
inflate: blocks reset
blocks reset
inflate: reset
Bus Error (core dumped)
Looking at what happens inside gdb:
.
.
.
inflate: blocks reset
inflate: reset
Program received signal SIGBUS, Bus error.
0xff2b70f8 in set_instance_field (obj=0x13b184, field=0x13bcd8,
value={
z = 0 '\000', b = 0 '\000', c = 0, s = 0, i = 0,
j = 0x0000000000000000, f = 0, d = 0, l = 0x0}) at interploop.c:466
(gdb) where
#0 0xff2b70f8 in set_instance_field (obj=0x13b184, field=0x13bcd8,
value={
z = 0 '\000', b = 0 '\000', c = 0, s = 0, i = 0,
j = 0x0000000000000000, f = 0, d = 0, l = 0x0}) at interploop.c:466
#1 0xff2af064 in execute_opcode (f=0xe9830, oc=181 '�') at
interpfunc.c:961
#2 0xff2b7b9c in interp_loop (frame=0xe9b10) at interploop.c:350
#3 0xff2b9164 in CallStaticJavaMethod (env=0x2fc80, method=0xbe7d4,
args=0x0)
at nativeglue.c:500
#4 0xff36f53c in _hungryJNI_CallStaticVoidMethodA (env=0x2fc80,
clazz=0xb4958, methodID=0xbe7d4, args=0x0) at jnismeth.c:175
#5 0xff36f668 in _hungryJNI_CallStaticVoidMethodV (env=0x2fc80,
clazz=0xb4958, methodID=0xbe7d4, args=0xffbeeef0) at jnismeth.c:226
#6 0xff36f510 in _hungryJNI_CallStaticVoidMethod (env=0x2fc80,
clazz=0xb4958, methodID=0xbe7d4) at jnismeth.c:165
#7 0xff2abfcc in lowlevel_thread_init (env=0x2fc80, is_primordial=24
'\030',
name=0xff370c98 "main", threadgroup=0xeb838, priority=957320)
at init.c:230
#8 0xff36aa54 in JNI_CreateJavaVM (p_vm=0xffbeefe4, p_env=0xffbeefe0,
vm_args=0xffbeefe8) at jniinvoc.c:625
#9 0x13b6c in main (argc=2, argv=0xffbef06c) at japhar.c:292
(gdb)
I was wondering if any one had any comments or suggestions before I spend
time on figuring out something that might be obvious to someone who has gone
through this before.
Thanks a lot,
Nat.