libgcj/1447: compile error for prims.cc
sugar@mb.infosnow.ne.jp
sugar@mb.infosnow.ne.jp
Wed Dec 20 12:29:00 GMT 2000
>Number: 1447
>Category: libgcj
>Synopsis: compile error for prims.cc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: tromey
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:59 PST 2000
>Closed-Date: Wed Jun 07 01:41:16 PDT 2000
>Last-Modified: Wed Jun 7 01:50:00 PDT 2000
>Originator: sugar@mb.infosnow.ne.jp
>Release: libgcj-snapshot-1999-10-18
>Organization:
>Environment:
Linux version 2.0.27
>Description:
make was interrupted by following error
c++ -DHAVE_CONFIG_H -I. -I../../../libjava -I./include -I../../../libjava -Iinclude -I../../../libjava/include -I../../../libjava/../boehm-gc -I./../boehm-gc -DSILENT=1 -DNO_SIGNALS=1 -DNO_DEBUGGING=1 -DJAVA_FINALIZATION=1 -I../../../libjava/../compat-include -I../../../libjava/../zlib -I../../../libjava/../libffi/include -I../libffi/include -fno-rtti -fvtable-thunks -ffloat-store -W -Wall -g -O2 -Wp,-MD,.deps/prims.pp -c -fPIC -DPIC ../../../libjava/prims.cc -o .libs/prims.lo
../../../libjava/prims.cc: In function `void catch_segv (int)':
../../../libjava/prims.cc:76: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:76: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc:76: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:76: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc: In function `void catch_fpe (int)':
../../../libjava/prims.cc:87: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:87: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc:87: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:87: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc:87: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:87: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc:87: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:87: forward declaration of `struct sigcontext_struct'
../../../libjava/prims.cc:87: invalid use of undefined type `struct sigcontext_struct'
../../../libjava/prims.cc:87: forward declaration of `struct sigcontext_struct'
make[2]: *** [prims.lo] Error 1
make[2]: Leaving directory `/home1/sugar/gcj/libgcj-snapshot-1999-10-18/config/i586-pc-linux-gnulibc1/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home1/sugar/gcj/libgcj-snapshot-1999-10-18/config/i586-pc-linux-gnulibc1/libjava'
make: *** [all-target-libjava] Error 2
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR libgcj/68
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Wed Nov 3 15:12:24 1999
State-Changed-Why:
Try this patch. I don't know if it will work or not.
(I don't even know if it compiles...)
If so, tell me and I'll apply it, and close this PR.
If not, we'll need more help from you, because I can't
reproduce the problem here (I'm running a different
kernel, etc, than you I guess)
Index: include/i386-signal.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/i386-signal.h,v
retrieving revision 1.5
diff -u -r1.5 i386-signal.h
--- i386-signal.h 1999/07/07 09:09:39 1.5
+++ i386-signal.h 1999/11/03 23:10:39
@@ -17,6 +17,7 @@
#define JAVA_SIGNAL_H 1
#include <signal.h>
+#include <sigcontext.h>
#define HANDLE_SEGV 1
#define HANDLE_FPE 1
@@ -28,7 +29,7 @@
do \
{ \
void **_p = (void **)&_dummy; \
- struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \
+ struct sigcontext *_regs = (struct sigcontext *)++_p; \
\
register unsigned long _ebp = _regs->ebp; \
register unsigned char *_eip = (unsigned char *)_regs->eip; \
@@ -47,7 +48,7 @@
do \
{ \
void **_p = (void **)&_dummy; \
- struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \
+ struct sigcontext *_regs = (struct sigcontext *)++_p; \
\
register unsigned long *_ebp = (unsigned long *)_regs->ebp; \
register unsigned char *_eip = (unsigned char *)_regs->eip; \
From: tromey@cygnus.com
To: java-gnats@sourceware.cygnus.com, sugar@mb.infosnow.ne.jp,
tromey@cygnus.com
Cc:
Subject: Re: libgcj/68
Date: 3 Nov 1999 23:12:24 -0000
Synopsis: compile error for prims.cc
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Wed Nov 3 15:12:24 1999
State-Changed-Why:
Try this patch. I don't know if it will work or not.
(I don't even know if it compiles...)
If so, tell me and I'll apply it, and close this PR.
If not, we'll need more help from you, because I can't
reproduce the problem here (I'm running a different
kernel, etc, than you I guess)
Index: include/i386-signal.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/i386-signal.h,v
retrieving revision 1.5
diff -u -r1.5 i386-signal.h
--- i386-signal.h 1999/07/07 09:09:39 1.5
+++ i386-signal.h 1999/11/03 23:10:39
@@ -17,6 +17,7 @@
#define JAVA_SIGNAL_H 1
#include <signal.h>
+#include <sigcontext.h>
#define HANDLE_SEGV 1
#define HANDLE_FPE 1
@@ -28,7 +29,7 @@
do \
{ \
void **_p = (void **)&_dummy; \
- struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \
+ struct sigcontext *_regs = (struct sigcontext *)++_p; \
\
register unsigned long _ebp = _regs->ebp; \
register unsigned char *_eip = (unsigned char *)_regs->eip; \
@@ -47,7 +48,7 @@
do \
{ \
void **_p = (void **)&_dummy; \
- struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p; \
+ struct sigcontext *_regs = (struct sigcontext *)++_p; \
\
register unsigned long *_ebp = (unsigned long *)_regs->ebp; \
register unsigned char *_eip = (unsigned char *)_regs->eip; \
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=68
State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Wed Jun 7 01:41:16 2000
State-Changed-Why:
You need to use glibc (libc6) to build libgcj on Linux.
Please refer to the new FAQ answer about this here:
http://sourceware.cygnus.com/java/faq.html#3_4
From: bryce@albatross.co.nz
To: java-gnats@sourceware.cygnus.com, sugar@mb.infosnow.ne.jp,
tromey@cygnus.com
Cc:
Subject: Re: libgcj/68
Date: 7 Jun 2000 08:41:16 -0000
Synopsis: compile error for prims.cc
State-Changed-From-To: feedback->closed
State-Changed-By: bryce
State-Changed-When: Wed Jun 7 01:41:16 2000
State-Changed-Why:
You need to use glibc (libc6) to build libgcj on Linux.
Please refer to the new FAQ answer about this here:
http://sourceware.cygnus.com/java/faq.html#3_4
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=68&database=java
>Unformatted:
More information about the Gcc-prs
mailing list