Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: Simon Kenyon <simon@koala.ie>
Cc: "axp-list@redhat.com" <axp-list@redhat.com>,
	"java-linux@java.blackdown.org" <java-linux@java.blackdown.org>,
	"Jay.Estabrook@digital.com" <Jay.Estabrook@digital.com>,
	Richard Henderson <rth@cygnus.com>
Subject: So Whats Wrong with the JAVA demo/molecule program.
Date: Mon, 26 Oct 1998 21:14:21 -0500	[thread overview]
Message-ID: <36352C7C.6925B915@voicenet.com> (raw)
In-Reply-To: 35FFCA33.C153DCF7@voicenet.com

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 */\x7f
};
#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





  reply	other threads:[~1998-10-27  2:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199809131052.LAA09786@killala.koala.ie>
1998-09-16 13:00 ` ANNOUNCE: JAVA jdk116 for ALPHA Uncle George
1998-09-16 13:31   ` Simon Kenyon
1998-09-16 14:24     ` Uncle George
1998-10-27  2:14       ` Uncle George [this message]
1998-10-27  2:30         ` So Whats Wrong with the JAVA demo/molecule program Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox