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