Package: xpcd Severity: normal Tags: patch When building 'xpcd' on amd64 with gcc-4.0, I get the following error:
gcc -Wall -g -O2 -Wall -I.. -I./../libpcd -DSYSRC="\"/etc/xpcd/system.xpcdrc\"" -c -o shmalloc.o shmalloc.c shmalloc.c: In function 'sh_free': shmalloc.c:94: error: invalid lvalue in decrement make[2]: *** [shmalloc.o] Error 1 make[2]: Leaving directory `/xpcd-2.08/xpcd' With the attached patch 'xpcd' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/xpcd-2.08/xpcd/shmalloc.c ./xpcd/shmalloc.c --- ../tmp-orig/xpcd-2.08/xpcd/shmalloc.c 1998-09-27 09:34:16.000000000 +0200 +++ ./xpcd/shmalloc.c 2005-02-14 08:09:50.477378603 +0100 @@ -91,7 +91,7 @@ int size; if (shared_anonymous_mmap_works) { - ((int *) data)--; + data = ((int *) data) - 1; size = *(int *) data; munmap(data, size); } else diff -urN ../tmp-orig/xpcd-2.08/debian/control ./debian/control --- ../tmp-orig/xpcd-2.08/debian/control 2005-02-14 08:09:55.545390480 +0100 +++ ./debian/control 2005-02-14 08:07:56.369629153 +0100 @@ -3,7 +3,7 @@ Priority: extra Maintainer: Stephan A Suerken <[EMAIL PROTECTED]> Standards-Version: 3.6.1 -Build-Depends: debhelper (>=3.0.0), xlibs-dev, libxaw7-dev, libtiff4-dev, libjpeg62-dev, svgalibg1-dev [i386] +Build-Depends: debhelper (>=3.0.0), xlibs-dev, libxaw7-dev, libtiff4-dev, libjpeg62-dev, svgalibg1-dev [amd64 i386] Package: xpcd Architecture: any @@ -19,7 +19,7 @@ Also included is a PhotoCD viewing frontend for X (xpcd). Package: xpcd-svga -Architecture: i386 +Architecture: amd64 i386 Depends: ${shlibs:Depends} Conflicts: suidmanager (<< 0.50) Description: PhotoCD tool collection: SVGA Viewer diff -urN ../tmp-orig/xpcd-2.08/debian/rules ./debian/rules --- ../tmp-orig/xpcd-2.08/debian/rules 2005-02-14 08:09:55.547390091 +0100 +++ ./debian/rules 2005-02-14 08:08:20.625898846 +0100 @@ -22,7 +22,7 @@ # This must be in sync with control #svga_archs=i386 alpha arm -svga_archs=i386 +svga_archs=amd64 i386 #---------------------------------------------------------------------- # GENERIC PART -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]