gcj/227: compile error prims.cc
Bryce McKinlay
bryce@albatross.co.nz
Sun May 21 18:50:00 GMT 2000
The following reply was made to PR gcj/227; it has been noted by GNATS.
From: Bryce McKinlay <bryce@albatross.co.nz>
To: David Kidd <dkidd@gwn.com.au>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/227: compile error prims.cc
Date: Mon, 22 May 2000 13:44:44 +1200
David Kidd wrote:
> Thankyou for the quick response, much appreciated.
> gcc & libgcj are versions 2.95.1.
> I am not sure how to tell the version of (g)libc.
> There are several version numbers in the lib dir.
Please send me the output of ls -l /lib/libc*
I think that you may be using the old libc5 rather than glibc (libc6).
Newwer linux kernels define a "struct sigcontext" in their headers.
glibc has the following in its sigcontext.h:
#ifndef sigcontext_struct
/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but
we need sigcontext. */
# define sigcontext_struct sigcontext
As a workaround, you could try changing all the references to
"sigcontext_struct" in libgcj/libjava/include/i386-signal.h to
"sigcontext". Please let me know if it works if you try this.
Its possible that there are other issues that prevent libgcj from
working correctly on old libc's - the best solution may be to upgrade to
a glibc based linux distibution.
regards
[ bryce ]
More information about the Java-prs
mailing list