Package: scm
Version: 5e5-2
Severity: whislist
Tags: patch

Hello,

when building 'scm' on ppc64/unstable, I get the following error:

./scmlit -fr4rstest.scm -e'(test-sc4)(test-delay)(gc)' \
        -e '(or (null? errs) (quit 1))'
add
#define SHORT_INT
in scmfig.h and recompile scm
make[2]: *** [checklit] Error 1

With the attached patch 'scm' can be compiled on ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/scm-5e5/scmfig.h ./scmfig.h
--- ../tmp-orig/scm-5e5/scmfig.h        2008-01-31 01:50:56.000000000 +0000
+++ ./scmfig.h  2008-04-19 09:09:49.000000000 +0000
@@ -256,11 +256,7 @@
 #ifdef __alpha
 # define SHORT_INT
 #endif
-#ifdef __ia64__
-# define SHORT_INT
-# define CDR_DOUBLES
-#endif
-#ifdef __x86_64
+#if defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__)
 # define SHORT_INT
 # define CDR_DOUBLES
 #endif
@@ -393,14 +389,10 @@
 # define WHITE_SPACES  ' ':case '\t':case '\r':case '\f'
 #endif
 
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__)
 # define PTR2INT(x) ((long)(x))
 #else
-# ifdef __x86_64
-#  define PTR2INT(x) ((long)(x))
-# else
-#  define PTR2INT(x) ((int)(x))
-# endif
+# define PTR2INT(x) ((int)(x))
 #endif
 
 /* Define BIGDIG to an integer type whose size is smaller than long if



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

Reply via email to