Package: xawtv
Severity: normal
Tags: patch

When building 'xawtv' 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 `/xawtv-3.94/work/xawtv-3.94'
make: *** [build-it] Error 2

With the attached patch 'xawtv' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xawtv-3.94/dist/gcc4.diff ./dist/gcc4.diff
--- ../tmp-orig/xawtv-3.94/dist/gcc4.diff       1970-01-01 01:00:00.000000000 
+0100
+++ ./dist/gcc4.diff    2005-03-19 10:16:58.964273102 +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]

Reply via email to