Package: gauche
Severity: normal
Tags: patch

When building 'gauche' on amd64 with gcc-4.0,
I get the following error:

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I./../gc/include   -g -O2 -fPIC  -c 
compile.c
compile.c: In function 'compile_let':
compile.c:1470: error: invalid storage class for function 
'compile_named_let_body'
compile.c:1476: error: 'compile_named_let_body' undeclared (first use in this 
function)
compile.c:1476: error: (Each undeclared identifier is reported only once
compile.c:1476: error: for each function it appears in.)
make[2]: *** [compile.o] Error 1
make[2]: Leaving directory `/gauche-0.7.4.2/src'

With the attached patch 'gauche' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/gauche-0.7.4.2/src/compile.c ./src/compile.c
--- ../tmp-orig/gauche-0.7.4.2/src/compile.c    2004-01-25 12:11:38.000000000 
+0100
+++ ./src/compile.c     2005-03-01 17:19:46.725784494 +0100
@@ -1417,6 +1417,8 @@
     }
 }
 
+static ScmObj compile_named_let_body(ScmObj, ScmObj, int, int *);
+
 static ScmObj compile_let(ScmObj form, ScmObj env, int ctx, int *depth, void 
*data)
 {
     long type = (long)data;
@@ -1466,8 +1468,6 @@
                                   body, compile_body,
                                   env, ctx, depth);
     } else {
-        /* Named let. */
-        static ScmObj compile_named_let_body(ScmObj, ScmObj, int, int *);
         /* TODO: this is broken if lambda is locally bound! */
         ScmObj proc = Scm_Cons(id_lambda, Scm_Cons(vars, body));
         return compile_let_family(form, SCM_LIST1(name), SCM_LIST1(proc),


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to