Package: speedtouch Severity: normal Tags: patch When building 'speedtouch' on amd64 with gcc-4.0, I get the following error:
make[3]: Entering directory `/speedtouch-1.3.1/build-tree/speedtouch-1.3.1/src' modem_run.c:94: error: static declaration of 'verbose' follows non-static declaration modem.h:42: error: previous declaration of 'verbose' was here modem_run.c: In function 'get_reference': modem_run.c:788: warning: pointer targets in passing argument 6 of 'pusb_control_msg' differ in signedness modem_run.c: In function 'report': modem_run.c:1222: warning: pointer targets in passing argument 1 of 'dump' differ in signedness modem_run.c: In function 'dump': modem_run.c:1283: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness modem_run.c:1292: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness modem_run.c:1301: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness make[3]: *** [modem_run.o] Error 1 make[3]: Leaving directory `/speedtouch-1.3.1/build-tree/speedtouch-1.3.1/src' With the attached patch 'speedtouch' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/speedtouch-1.3.1/debian/patches/01_gcc4_fix ./debian/patches/01_gcc4_fix --- ../tmp-orig/speedtouch-1.3.1/debian/patches/01_gcc4_fix 1970-01-01 01:00:00.000000000 +0100 +++ ./debian/patches/01_gcc4_fix 2005-03-04 09:52:34.372541462 +0100 @@ -0,0 +1,30 @@ +diff -urN tmp/src/modem_run.c speedtouch-1.3.1/src/modem_run.c +--- tmp/src/modem_run.c 2004-09-29 22:56:31.000000000 +0200 ++++ speedtouch-1.3.1/src/modem_run.c 2005-03-04 09:52:25.888179101 +0100 +@@ -91,7 +91,7 @@ + * Global variables + ******************************************************************************/ + +-static int verbose = 0; ++static int verbose_mode = 0; + FILE *flog = NULL; + + /***************************************************************************** +@@ -203,7 +203,7 @@ + } else if (strcmp(argv[i], "-t") == 0 && i+1<argc) { + timeout = atoi(argv[++i]); + } else if (strcmp(argv[i], "-v") == 0 && i+1<argc) { +- verbose = atoi(argv[++i]); ++ verbose_mode = atoi(argv[++i]); + } else if (strcmp(argv[i],"--help") == 0) { + usage(); + } else if (strcmp(argv[i],"-m") == 0) { +@@ -1159,7 +1159,7 @@ + char *buffer = NULL; + + +- if( verbose >= minlevel ) { ++ if( verbose_mode >= minlevel ) { + /* if log is null, try to open the log file */ + if(flog == NULL) { + -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]