Package: tmview Severity: normal Tags: patch When building 'tmview' on amd64 with gcc-4.0, I get the following error:
gcc -c -O2 -g -Wall -I./src/ -I./lX/ ./src/readdvi.c -o ./src/lX.readdvi.o ./src/readdvi.c: In function 'runvfmacro': ./src/readdvi.c:987: error: label at end of compound statement ./src/readdvi.c: In function 'readpage': ./src/readdvi.c:1095: error: label at end of compound statement make[2]: *** [src/lX.readdvi.o] Error 1 make[2]: Leaving directory `/tmview-01.03' When this is fixed I get some 'invalid lvalue in assignment' errors in 'lX/writelx.c'. With the attached patch 'tmview' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/tmview-01.03/lX/writelx.c ./lX/writelx.c --- ../tmp-orig/tmview-01.03/lX/writelx.c 2005-02-09 14:24:18.204428055 +0100 +++ ./lX/writelx.c 2005-02-09 14:24:15.309986678 +0100 @@ -908,7 +908,7 @@ } srow+=sbmu_wide; sbmu=srow; - ((char*)ydest)+=ibytes_per_line; + ydest = ((unsigned char*)ydest)+ibytes_per_line; } if(directscreen) { XPutImage(dpy,dviwin,imagecopygc,offimage,tx,ty,tx,ty,w,h); @@ -996,7 +996,7 @@ } srow+=sbmu_wide; sbmu=srow; - ((char*)ydest)+=ibytes_per_line; + ydest = ((unsigned char*)ydest)+ibytes_per_line; } if(directscreen) { XPutImage(dpy,dviwin,imagecopygc,offimage,tx,ty,tx,ty,w,h); @@ -1034,7 +1034,7 @@ ISET_PIXEL(xdest,cpix); xdest++; } - ((char*)ydest)+=ibytes_per_line; + ydest = ((unsigned char*)ydest)+ibytes_per_line; } if(directscreen) { XSetForeground(dpy,winfillgc,cpix); @@ -1084,7 +1084,7 @@ #endif xdest++; } - ((char*)ydest)+=ibytes_per_line; + ydest = ((unsigned char*)ydest)+ibytes_per_line; } if(directscreen) { XPutImage(dpy,dviwin,imagecopygc,offimage,tx,ty,tx,ty,w,h); @@ -1126,7 +1126,7 @@ } xdest++; } - ((char*)ydest)+=ibytes_per_line; + ydest = ((unsigned char*)ydest)+ibytes_per_line; } if(directscreen) { XPutImage(dpy,dviwin,imagecopygc,offimage,tx,ty,tx,ty,w,h); diff -urN ../tmp-orig/tmview-01.03/src/readdvi.c ./src/readdvi.c --- ../tmp-orig/tmview-01.03/src/readdvi.c 2001-03-04 14:57:22.000000000 +0100 +++ ./src/readdvi.c 2005-02-09 14:21:10.195711539 +0100 @@ -983,7 +983,6 @@ case 250: case 251: case 252: case 253: case 254: case 255: pfprot("(skipping unknown opc > 249 within macro)");break; - default: } /* end switch o */ } @@ -1091,7 +1090,6 @@ case 250: case 251: case 252: case 253: case 254: case 255: pfprot("skipping unknown opc > 249 ");break; - default: } /* end switch o */ o = dvibyte(); } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]