From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20373 invoked from network); 27 Oct 1998 02:27:41 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 27 Oct 1998 02:27:41 -0000 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id VAA11376 for ; Mon, 26 Oct 1998 21:17:12 -0500 Received: (qmail 23510 invoked from network); 27 Oct 1998 02:17:04 -0000 Received: from rotary933-pri.voicenet.com (HELO voicenet.com) (209.71.52.33) by mail11.voicenet.com with SMTP; 27 Oct 1998 02:17:04 -0000 Message-ID: <36352C7C.6925B915@voicenet.com> Date: Mon, 26 Oct 1998 21:14:21 -0500 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: Simon Kenyon CC: "axp-list@redhat.com" , "java-linux@java.blackdown.org" , "Jay.Estabrook@digital.com" , Richard Henderson Subject: So Whats Wrong with the JAVA demo/molecule program. References: <199809161331.OAA16341@killala.koala.ie> <35FFCA33.C153DCF7@voicenet.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit well in essence there is nothing wrong with the demo/molecule program as it is run on the JDK that I produce for the ALPHA. You get a blank screen because the client ( appletviewer ), and the X server are unable to communicate SHM ( shared memory info ) to each other !!!. This is simply due to the kernel ( 2.0.33) , or glibc's ( 2.0.7 - i think -19 ) incompatible definition of struct ipc_perm. The kernel thinks that most of the members are ushort, whereas glibc thinks that most of the members are unsigned int. Anyway, when X asks for the size of the shared segment, it appears to get a size of 0 bytes, and gives a EACCESS boo boo - refusing to get the image that is to be painted. Changing the ipc_perm in linux/include/linux/ipc.h to #if 0 struct ipc_perm { key_t key; ushort uid; /* owner euid and egid */ ushort gid; ushort cuid; /* creator euid and egid */ ushort cgid; ushort mode; /* access modes see mode flags below */ ushort seq; /* sequence number */ }; #else struct ipc_perm { key_t key; unsigned int uid; /* owner euid and egid */ unsigned int gid; unsigned int cuid; /* creator euid and egid */ unsigned int cgid; unsigned int mode; /* access modes see mode flags below */ unsigned short int seq; /* sequence number */ }; #endif and then rebuilding the kernel made my java/demo working again. It also makes the program ipcs also work again. I cannot tell u who is right, but it is easier to change 1 kernel, than rebuild all sorts of other peripheral programs quickly. gat BTW the demo's are now a part of the JDK 117 src pkg. Uncle George wrote: > its not surprising to me, but there is no demos directory that comes with the > jdk source from javasoft et al. if its packaged somewhere else, can u tell me? > There are probably other things that are missing from the jdk bin's, but that > is what javasoft gave to me, and thats how its build proceeds. > gat > > Simon Kenyon wrote: > > > > anyway - where can i find the molecule viewer/demo - THE ONE U ARE > > > USING. > > > > it is the one that comes with the jdk (the stuff you didn't ship as part of > > the alpha port in demos/MolecularViewer > > -- > > simon