Package: mpage Severity: normal Tags: patch When building 'mpage' on amd64 with gcc-4.0, I get the following error:
gcc -O2 -s -DPAGE_DEF=\"A4\" -DLIBDIR=\"/usr/share/mpage\" -DDEFAULT_ENCODING=1 -DDEFAULT_DUPLEX=0 -DDEFAULTSMARGIN=18 -DSPOOLER=BSD_SPOOLER -Wall -DLIBPAPER -c -o mpage.o mpage.c In file included from mpage.c:20: mpage.h:180: error: array type has incomplete element type make[1]: *** [mpage.o] Error 1 make[1]: Leaving directory `/mpage-2.5.3' make: *** [build-stamp] Error 2 With the attached patch 'mpage' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/mpage-2.5.3/mpage.h ./mpage.h --- ../tmp-orig/mpage-2.5.3/mpage.h 2005-03-18 18:02:24.575165496 +0100 +++ ./mpage.h 2005-03-18 18:02:18.233380372 +0100 @@ -177,7 +177,6 @@ extern int ps_width; /* number of points in the X direction (8.5 inches) */ extern int ps_height; /* number of points in the Y direction (11 inches) */ extern char * media; /* name of output page media */ -extern struct page_desc paper[]; /* * a sheet describes the measurements and orientatation of a page for diff -urN ../tmp-orig/mpage-2.5.3/page.c ./page.c --- ../tmp-orig/mpage-2.5.3/page.c 2005-03-18 18:02:24.575165496 +0100 +++ ./page.c 2005-03-18 18:02:16.696674751 +0100 @@ -21,6 +21,7 @@ #include "mpage.h" #include "string.h" +extern struct page_desc paper[]; void -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]