Package: scm
Severity: normal
Tags: patch

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

cc -c  repl.c -o repl.o
repl.c: In function 'wait_for_input':
repl.c:498: warning: cast to pointer from integer of different size
repl.c: At top level:
repl.c:852: error: static declaration of 's_read' follows non-static declaration
scm.h:687: error: previous declaration of 's_read' was here

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

The attached patch also changes the Build-Depends from 'libreadline4-dev'
to 'libreadline5-dev'.

Regards
Andreas Jochens

diff -urN ../tmp-orig/scm-5d9/repl.c ./repl.c
--- ../tmp-orig/scm-5d9/repl.c  2003-08-17 19:32:52.000000000 +0200
+++ ./repl.c    2005-02-13 14:17:31.058657128 +0100
@@ -849,7 +849,7 @@
 
 /* Top-level readers */
 static SCM p_read_numbered, p_read_for_load, p_read;
-static char s_read[] = "read";
+char s_read[] = "read";
 static char s_read_for_load[] = "read-for-load";
 static char s_read_numbered[] = "read-numbered";
 SCM scm_read(port)
diff -urN ../tmp-orig/scm-5d9/scmfig.h ./scmfig.h
--- ../tmp-orig/scm-5d9/scmfig.h        2003-09-22 01:42:46.000000000 +0200
+++ ./scmfig.h  2005-02-13 14:14:58.246164571 +0100
@@ -281,7 +281,7 @@
 #ifdef __alpha
 # define SHORT_INT
 #endif
-#ifdef __ia64
+#if defined __ia64 || defined __powerpc64__ || defined __x86_64__
 # define SHORT_INT
 # define CDR_DOUBLES
 #endif
diff -urN ../tmp-orig/scm-5d9/debian/rules ./debian/rules
--- ../tmp-orig/scm-5d9/debian/rules    2005-02-13 14:18:16.626857956 +0100
+++ ./debian/rules      2005-02-13 14:16:15.441258622 +0100
@@ -79,7 +79,7 @@
 
 clean:
        $(checkdir)
-       -rm -f scm.info* scm.html tmp1 tmp2 scmflags.h scmlit
+       -rm -f scm.info* scm.html tmp1 tmp2 scmlit
        -rm -f Xlibscm.info*
        -rm -f features.txi platform.txi
        -rm -f *.info
diff -urN ../tmp-orig/scm-5d9/debian/control ./debian/control
--- ../tmp-orig/scm-5d9/debian/control  2005-02-13 14:18:16.626857956 +0100
+++ ./debian/control    2005-02-13 14:15:12.381435143 +0100
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer:  James LewisMoss <[EMAIL PROTECTED]>
 Standards-Version: 3.1.1
-Build-Depends: slib (>> 3a1), libncurses5-dev, libreadline4-dev, texi2html, 
texinfo, xlibs-dev
+Build-Depends: slib (>> 3a1), libncurses5-dev, libreadline5-dev, texi2html, 
texinfo, xlibs-dev
 
 Package: scm
 Architecture: any



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

Reply via email to