Package: ppxp
Severity: normal
Tags: patch

When building 'ppxp' with gcc-3.4 I get the following error:

make[3]: Entering directory `/ppxp-0.2001080415/src/dev'
gcc -O2 -g -W -I../../lib -I.. -I../../OS/Linux   -c -o device.o device.c
gcc -O2 -g -W -I../../lib -I.. -I../../OS/Linux   -c -o pty.o pty.c
gcc -O2 -g -W -I../../lib -I.. -I../../OS/Linux   -c -o serial.o serial.c
serial.c: In function `SioOpen':
serial.c:360: error: label at end of compound statement
serial.c:371: error: label at end of compound statement
serial.c: In function `SioSetup':
serial.c:464: warning: missing initializer
serial.c:464: warning: (near initialization for `sioenv[7].d')
make[3]: *** [serial.o] Error 1
make[3]: Leaving directory `/ppxp-0.2001080415/src/dev'
make[2]: *** [subdirs] Error 2
make[2]: Leaving directory `/ppxp-0.2001080415/src'
make[1]: *** [subdirs] Error 2
make[1]: Leaving directory `/ppxp-0.2001080415'
make: *** [build-stamp] Error 2

With the attached patch 'ppxp' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/ppxp-0.2001080415/src/chat.c ./src/chat.c
--- ../tmp-orig/ppxp-0.2001080415/src/chat.c    2000-12-04 13:23:14.000000000 
+0100
+++ ./src/chat.c        2004-07-15 20:59:43.993324819 +0200
@@ -261,7 +261,6 @@
            return(csp->a_cmd);
        }
        break;
-    default:
     }
     return(CHAT_NEXT);
 }
diff -urN ../tmp-orig/ppxp-0.2001080415/src/dev/serial.c ./src/dev/serial.c
--- ../tmp-orig/ppxp-0.2001080415/src/dev/serial.c      2000-12-04 
13:23:22.000000000 +0100
+++ ./src/dev/serial.c  2004-07-15 20:59:17.575402635 +0200
@@ -356,7 +356,6 @@
     case PARITY_EVEN:
        newtio.c_cflag |= (CS7|PARENB);
        break;
-    default:
     }
     switch (sioOpt.flow) {
     case FLOW_CRTSCTS:
@@ -367,7 +366,6 @@
        newtio.c_cc[VSTART] = 0x11;
        newtio.c_cc[VSTOP] = 0x13;
        break;
-    default:
     }
     pppInfo.minfo = 0;
 #if 0
diff -urN ../tmp-orig/ppxp-0.2001080415/src/lcp.c ./src/lcp.c
--- ../tmp-orig/ppxp-0.2001080415/src/lcp.c     2004-07-15 21:00:17.892808774 
+0200
+++ ./src/lcp.c 2004-07-15 21:00:02.594749342 +0200
@@ -847,7 +847,6 @@
     case RUN_ACTIVE:
        lcpFsm.opt_p = 0;
        break;
-    default:
     }
     FsmOpen(&lcpFsm);
     /*    pppInfo.p[PINFO_LCP].st = PIST_RUN;*/

Reply via email to