Package: motv Severity: normal Tags: patch When building 'motv' on amd64 with gcc-4.0, I get the following error:
CC console/scantv.o In file included from console/scantv.c:19: ./common/channel.h:93: error: array type has incomplete element type ./common/channel.h:94: error: array type has incomplete element type console/scantv.c: In function 'event': console/scantv.c:53: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness console/scantv.c:54: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness console/scantv.c:54: warning: pointer targets in passing argument 1 of '__strdup' differ in signedness make[1]: *** [console/scantv.o] Error 1 make[1]: Leaving directory `/motv-3.94/work/xawtv-3.94' make: *** [build-it] Error 2 With the attached patch 'motv' can be compiled on amd64 using gcc-4.0. The patch includes the fix from BTS #297183. Regards Andreas Jochens diff -urN ../tmp-orig/motv-3.94/debian/control ./debian/control --- ../tmp-orig/motv-3.94/debian/control 2005-03-18 20:20:56.625382182 +0100 +++ ./debian/control 2005-03-18 19:56:38.916095016 +0100 @@ -1,7 +1,7 @@ Source: motv Section: contrib/graphics Priority: extra -Build-Depends: debhelper (>=2.0), libjpeg-dev, libncurses5-dev, xlibs-dev (>= 4.0.1), libxaw7-dev, liblircclient-dev, debhelper, xutils, xbase-clients, libmotif-dev (>= 2.2.2-4), libasound2-dev, libzvbi-dev, libxft2-dev, libpng12-dev +Build-Depends: debhelper (>=2.0), fakeroot, libjpeg-dev, libncurses5-dev, xlibs-dev (>= 4.0.1), libxaw7-dev, liblircclient-dev, debhelper, xutils, xbase-clients, libmotif-dev (>= 2.2.2-4), libasound2-dev, libzvbi-dev, libxft2-dev, libpng12-dev Maintainer: Gerd Knorr <[EMAIL PROTECTED]> Standards-Version: 3.6.1 diff -urN ../tmp-orig/motv-3.94/dist/gcc4.diff ./dist/gcc4.diff --- ../tmp-orig/motv-3.94/dist/gcc4.diff 1970-01-01 01:00:00.000000000 +0100 +++ ./dist/gcc4.diff 2005-03-18 19:58:32.987827224 +0100 @@ -0,0 +1,49 @@ +diff -urN ../xawtv-3.94/console/fbtv.c xawtv-3.94/console/fbtv.c +--- ../xawtv-3.94/console/fbtv.c 2004-06-30 12:26:52.000000000 +0000 ++++ xawtv-3.94/console/fbtv.c 2005-02-27 19:22:24.811259997 +0000 +@@ -187,7 +187,6 @@ + + #define NKEYTAB (sizeof(keytab)/sizeof(struct KEYTAB)) + +-static char *snapbase; + static char default_title[128] = "???"; + static char message[128] = ""; + +diff -urN tmp/xawtv-3.94/common/channel.c xawtv-3.94/common/channel.c +--- tmp/xawtv-3.94/common/channel.c 2003-03-28 13:22:06.000000000 +0100 ++++ xawtv-3.94/common/channel.c 2005-03-18 19:55:18.725753547 +0100 +@@ -181,6 +181,9 @@ + { -1, NULL, }, + }; + ++extern struct STRTAB booltab[]; ++extern struct STRTAB captab[]; ++ + /* just malloc memory for a new channel ... */ + struct CHANNEL* + add_channel(char *name) +diff -urN tmp/xawtv-3.94/common/channel.h xawtv-3.94/common/channel.h +--- tmp/xawtv-3.94/common/channel.h 2003-02-14 15:14:04.000000000 +0100 ++++ xawtv-3.94/common/channel.h 2005-03-18 19:43:32.462851013 +0100 +@@ -90,8 +90,6 @@ + + /* ----------------------------------------------------------------------- */ + +-extern struct STRTAB booltab[]; +-extern struct STRTAB captab[]; + + int str_to_int(char *str, struct STRTAB *tab); + const char* int_to_str(int n, struct STRTAB *tab); +diff -urN tmp/xawtv-3.94/common/commands.c xawtv-3.94/common/commands.c +--- tmp/xawtv-3.94/common/commands.c 2004-04-19 18:24:05.000000000 +0200 ++++ xawtv-3.94/common/commands.c 2005-03-18 19:55:48.485941906 +0100 +@@ -162,6 +162,9 @@ + + static int keypad_state = -1; + ++extern struct STRTAB booltab[]; ++extern struct STRTAB captab[]; ++ + /* ----------------------------------------------------------------------- */ + + void add_attrs(struct ng_attribute *new) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]