Subject: any hope to get Solaris jdk 1.2 running on i386?
To: None <current-users@netbsd.org, port-i386@netbsd.org>
From: Thorsten Frueauf <s_frueau@ira.uka.de>
List: port-i386
Date: 11/26/1998 17:26:30
Hello!

I tried to run the i386 Solaris jdk 1.2RC2 release under NetBSD/i386
current (src from 25.11.1998). I followed the steps mentioned in
compat_solaris(8) and used the libraries from the Solaris 2.6 release.

But (I somehow expected that, as java is really a monster) it seems as
java uses unfortunalty some unimplemented syscalls :-(

When I try `java -version` I get a java.core and the following out
of ktrace (I did not paste the whole thing here - if you want
to see the whole thing you can do that at
http://wwwipd.ira.uka.de/~frueauf/solaris-jdk1.2fcs-kdumpoutput):

[...]
   367 java     CALL  open(0x1016b18,0,0x10150d4)
   367 java     NAMI  "/emul/svr4/usr/lib/libmp.so.2"
   367 java     NAMI  "/emul/svr4"
   367 java     NAMI  "/emul/svr4/usr/lib/libmp.so.2"
   367 java     RET   open 3
   367 java     CALL  fxstat(0x2,0x3,0xefbfd0f8)
   367 java     RET   fxstat 0
   367 java     CALL  mmap(0x480c5000,0x1000,0x5,0x11,0x3,0)
   367 java     RET   mmap 1208766464/0x480c5000
   367 java     CALL  mmap(0,0x4000,0x5,0x2,0x3,0)
   367 java     RET   mmap 1210322944/0x48241000
   367 java     CALL  mmap(0x48244000,0x868,0x7,0x12,0x3,0x2000)
   367 java     RET   mmap 1210335232/0x48244000
   367 java     CALL  close(0x3)
   367 java     RET   close 0
   367 java     CALL  mprotect(0x8048000,0x2b57,0x7)
   367 java     RET   mprotect 0
   367 java     CALL  mprotect(0x8048000,0x2b57,0x5)
   367 java     RET   mprotect 0
   367 java     CALL  mprotect(0x4804c000,0xe1aa,0x7)
   367 java     RET   mprotect 0
   367 java     CALL  mprotect(0x4804c000,0xe1aa,0x5)
   367 java     RET   mprotect 0
   367 java     CALL  mprotect(0x4805c000,0x6020a,0x7)
   367 java     RET   mprotect 0
   367 java     CALL  mprotect(0x4805c000,0x6020a,0x5)
   367 java     RET   mprotect 0
   367 java     CALL  close(0x4)
   367 java     RET   close 0
   367 java     CALL  munmap(0x480c5000,0x1000)
   367 java     RET   munmap 0
   367 java     CALL  sysarch(0x28,0x4814e4ac)
   367 java     RET   sysarch 0
   367 java     CALL  sysconfig(0x6)
   367 java     RET   sysconfig 4096/0x1000
   367 java     CALL  break(0x804c1a0)
   367 java     RET   break 0
   367 java     CALL  break(0x804e1a0)
   367 java     RET   break 0
   367 java     CALL  #209 (unimplemented resolvepath)
   367 java     PSIG  SIGSYS SIG_DFL
   367 java     NAMI  "java.core"

So is it hopeless to get the jdk 1.2 from Solaris to work on NetBSD/i386?

Thanx for any help in advance!

Greets
      Thorsten