Package: csmash
Version: 0.6.6-6.1
Severity: normal
Tags: patch
When building 'csmash' on ppc64/unstable, I get the following error:
if g++ -DLOCALEDIR=\"/usr/share/locale\"
-DCANNONSMASH_DATADIR=\"/usr/share/games/csmash\" -DHAVE_CONFIG_H -I. -I. -I.
-DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I
/usr/X11R6/include -Wall -I/usr/include/SDL -D_REENTRANT -MT loadparts.o -MD
-MP -MF ".deps/loadparts.Tpo" \
-c -o loadparts.o `test -f 'loadparts.cpp' || echo
'./'`loadparts.cpp; \
then mv -f ".deps/loadparts.Tpo" ".deps/loadparts.Po"; \
else rm -f ".deps/loadparts.Tpo"; exit 1; \
fi
loadparts.cpp: In static member function 'static bool parts::loadfile(const
char*)':
loadparts.cpp:251: error: no matching function for call to 'clamp(unsigned int,
long unsigned int, long unsigned int)'
loadparts.cpp: In member function 'void polyhedron_parts::render() const':
loadparts.cpp:578: warning: unused variable 'NanTheBLACK'
loadparts.cpp:579: warning: unused variable 'ManOfVirtue'
make[3]: *** [loadparts.o] Error 1
make[3]: Leaving directory `/csmash-0.6.6'
With the attached patch 'csmash' can be compiled on ppc64.
Regards
Andreas Jochens
diff -urN ../tmp-orig/csmash-0.6.6/debian/patches/01_loadparts.dpatch
./debian/patches/01_loadparts.dpatch
--- ../tmp-orig/csmash-0.6.6/debian/patches/01_loadparts.dpatch 2006-04-06
12:14:05.000000000 +0000
+++ ./debian/patches/01_loadparts.dpatch 2006-04-06 12:13:33.000000000
+0000
@@ -25,7 +25,7 @@
while ('\\' == line[l-1]) {
// concat next line(s)
-+#if (defined __ia64__) || (defined __alpha__) || (defined __s390__) ||
(defined __x86_64__)
++#if (defined __ia64__) || (defined __alpha__) || (defined __powerpc64__) ||
(defined __s390__) || (defined __x86_64__)
+ int bufsize = clamp((u_long) 0, sizeof(line)-l, sizeof(line)-1);
+#else
int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]