cannot compile libgcj
Andrew Haley
aphATpasanda.cygnus.co.uk
Thu Sep 16 07:43:00 GMT 1999
> Date: 1999年9月16日 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;
}
More information about the Java
mailing list