This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: cannot compile libgcj
- To: mkgardne AT cs.uiuc dot edu
- Subject: Re: cannot compile libgcj
- From: Andrew Haley <aph AT pasanda.cygnus.co.uk>
- Date: 16 Sep 1999 14:43:35 -0000
- CC: tromey AT cygnus dot com, mdw AT cs.berkeley dot edu, java-discuss AT sourceware.cygnus dot com
> Date: Thu, 16 Sep 1999 08:54:25 -0500
> From: "Mark K. Gardner" <mkgardne@rtsl3.cs.uiuc.edu>
>
> I still cannot compile libgcj with the latest updates of both gcj and
> libgcj (as of 1999-09-16 0900 CDT).
Have you updated and rebuilt gcjh? Also make sure that you do a full
clean build of libjava.
You must have this patch to version 1.35:
Index: gjavah.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/java/gjavah.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -p -r1.34 -r1.35
*** gjavah.c 1999/09/02 23:44:04 1.34
--- gjavah.c 1999/09/10 21:45:39 1.35
*************** decode_signature_piece (stream, signatur
*** 726,732 ****
/* We have to generate a reference to JArray here, so that
our output matches what the compiler does. */
++signature;
! fputs ("JArray<::", stream);
while (signature < limit && *signature != ';')
{
int ch = UTF8_GET (signature, limit);
--- 726,732 ----
/* We have to generate a reference to JArray here, so that
our output matches what the compiler does. */
++signature;
! fputs ("JArray<", stream);
while (signature < limit && *signature != ';')
{
int ch = UTF8_GET (signature, limit);
*************** print_namelet (out, name, depth)
*** 1215,1221 ****
{
for (i = 0; i < depth; ++i)
fputc (' ', out);
! fputs ("};\n", out);
}
free (name->name);
--- 1215,1224 ----
{
for (i = 0; i < depth; ++i)
fputc (' ', out);
! fputs ("}\n", out);
! /* Only print a `;' when printing a class. C++ is evil. */
! if (name->is_class)
! fputs (";", out);
}
free (name->name);
*************** add_class_decl (out, jcf, signature)
*** 1247,1253 ****
/* If we see an array, then we include the array header. */
if (s[i] == '[')
{
! print_include (out, "java-array", -1);
continue;
}
--- 1250,1256 ----
/* If we see an array, then we include the array header. */
if (s[i] == '[')
{
! print_include (out, "gcj/array", -1);
continue;
}