Package: ppxp
Severity: normal
Tags: patch

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

gcc -O2 -g -W  -I../../lib -I.. -I../../import -I../../OS/Linux   -c -o dns.o 
dns.c
dns.c: In function 'DoRelay':
dns.c:105: warning: passing argument 6 of 'recvfrom' from incompatible pointer 
type
dns.c:131: warning: passing argument 6 of 'recvfrom' from incompatible pointer 
type
dns.c: In function 'DnsRelay':
dns.c:164: error: invalid storage class for function 'SigQuit'
make[3]: *** [dns.o] Error 1
make[3]: Leaving directory `/ppxp-0.2001080415/src/ip'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/ppxp-0.2001080415/src/ip/dns.c ./src/ip/dns.c
--- ../tmp-orig/ppxp-0.2001080415/src/ip/dns.c  2000-12-04 13:23:33.000000000 
+0100
+++ ./src/ip/dns.c      2004-12-30 23:11:01.047890464 +0100
@@ -161,7 +161,7 @@
     }
     if (!dns) return;
     if ((relayPid = fork()) == 0) {
-       static void SigQuit(int sig) {
+       void SigQuit(int sig) {
            exit(0);
        }
 
diff -urN ../tmp-orig/ppxp-0.2001080415/src/main.c ./src/main.c
--- ../tmp-orig/ppxp-0.2001080415/src/main.c    2004-12-30 23:12:14.288756160 
+0100
+++ ./src/main.c        2004-12-30 23:11:16.157593440 +0100
@@ -244,7 +244,7 @@
     parent = getpid();
     if ((child = fork()) == -1) return;
     if (child) {
-       static void QuitParent(int sig) {
+       void QuitParent(int sig) {
            exit(0);
        }
        signal(SIGTERM, QuitParent);

Reply via email to