Package: xawtv
Severity: normal
Tags: patch

When building 'xawtv' on amd64 with gcc-4.0,
I get the following error:

In file included from /usr/include/curses.h:136,
                 from console/fbtv.c:24:
/usr/lib/gcc/x86_64-linux/4.0.0/include/stdbool.h:36:1: warning: this is the 
location of the previous definition
console/fbtv.c:190: error: static declaration of 'snapbase' follows non-static 
declaration
./common/commands.h:53: error: previous declaration of 'snapbase' was here
console/fbtv.c: In function 'text_out':
console/fbtv.c:329: warning: pointer targets in passing argument 4 of 'fs_puts' 
differ in signedness
console/fbtv.c: In function 'text_width':
console/fbtv.c:335: warning: pointer targets in passing argument 2 of 
'fs_textwidth' differ in signedness
console/fbtv.c: In function 'main':
console/fbtv.c:801: warning: pointer targets in assignment differ in signedness
make[1]: *** [console/fbtv.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_fix.diff ./dist/gcc4_fix.diff
--- ../tmp-orig/xawtv-3.94/dist/gcc4_fix.diff   1970-01-01 01:00:00.000000000 
+0100
+++ ./dist/gcc4_fix.diff        2005-03-05 12:35:02.248227517 +0100
@@ -0,0 +1,21 @@
+diff -urN tmp/xawtv-3.94/console/fbtv.c work/xawtv-3.94/console/fbtv.c
+--- tmp/xawtv-3.94/console/fbtv.c      2004-06-30 14:26:52.000000000 +0200
++++ xawtv-3.94/console/fbtv.c  2005-03-05 12:33:50.767024708 +0100
+@@ -187,7 +187,7 @@
+ 
+ #define NKEYTAB (sizeof(keytab)/sizeof(struct KEYTAB))
+ 
+-static char              *snapbase;
++static char              *snapbase_fbtv;
+ static char              default_title[128] = "???";
+ static char              message[128] = "";
+ 
+@@ -634,7 +634,7 @@
+           fbdev = optarg;
+           break;
+       case 'o':
+-          snapbase = strdup(optarg);
++          snapbase_fbtv = strdup(optarg);
+           break;
+       case 's':
+           sscanf(optarg,"%dx%d",&ww,&hh);


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to