[asterisk-users] Error compiling patched pppd for zapras

Alex alex at kopiright.com
Fri May 4 04:51:44 MST 2007


hi everybody,

i'm tryint to install a asterisk system which acts as a dialin server
using a Digium Wildcard 205P.
acording to http://www.voip-info.org/wiki/view/Asterisk+cmd+ZapRAS i
need a patched version of pppd, but it does not compile on my system.

Linux box 2.6.17-gentoo-r8 #1 SMP Tue Sep 26 13:17:23 CEST 2006 x86_64
AMD Athlon(tm) 64 Processor 3200+ GNU/Linux
gcc -4.1.1, glibc-2.4
output of make is below.

any suggestions ?


Alex


cd chat; make  all
make[1]: Entering directory `/usr/src/ppp-2.4.1b2.WORKING/chat'
cc -c -O2 -g -pipe -DTERMIOS                    
-DSIGTYPE=void                 -UNO_SLEEP                      
-DFNDELAY=O_NDELAY              -o chat.o chat.c
chat.c:215: warning: conflicting types for built-in function 'logf'
chat.c:1275:22: warning: trigraph ??) ignored, use -trigraphs to enable
cc -o chat chat.o
make[1]: Leaving directory `/usr/src/ppp-2.4.1b2.WORKING/chat'
cd pppd/plugins; make  all
make[1]: Entering directory `/usr/src/ppp-2.4.1b2.WORKING/pppd/plugins'
gcc -o minconn.so -shared -g -O2 -I.. -I../../include -fPIC minconn.c
gcc -o passprompt.so -shared -g -O2 -I.. -I../../include -fPIC passprompt.c
make -C pppoe -w pppoe.so
make[2]: Entering directory
`/usr/src/ppp-2.4.1b2.WORKING/pppd/plugins/pppoe'
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
pppoe.o pppoe.c
In file included from pppoe.c:21:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from pppoe.c:21:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from pppoe.c:21:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
pppoehash.o pppoehash.c
In file included from pppoehash.c:11:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from pppoehash.c:11:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from pppoehash.c:11:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
pppoe_client.o pppoe_client.c
In file included from pppoe_client.c:12:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from pppoe_client.c:12:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from pppoe_client.c:12:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
pppoe_relay.o pppoe_relay.c
In file included from pppoe_relay.c:12:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from pppoe_relay.c:12:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from pppoe_relay.c:12:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
pppoe_server.o pppoe_server.c
In file included from pppoe_server.c:11:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from pppoe_server.c:11:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from pppoe_server.c:11:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
gcc -g  -I.. -I../.. -I../../../include -D_linux_=1 -fPIC   -c -o
utils.o utils.c
In file included from utils.c:42:
pppoe.h:109:1: warning: "PTT_SRV_NAME" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:88:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:110:1: warning: "PTT_AC_NAME" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:89:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:111:1: warning: "PTT_HOST_UNIQ" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:90:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:112:1: warning: "PTT_AC_COOKIE" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:91:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:113:1: warning: "PTT_VENDOR" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:92:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:114:1: warning: "PTT_RELAY_SID" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:93:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:115:1: warning: "PTT_SRV_ERR" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:94:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:116:1: warning: "PTT_SYS_ERR" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:95:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:117:1: warning: "PTT_GEN_ERR" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:96:1: warning: this is the location of the
previous definition
In file included from utils.c:42:
pppoe.h:118:1: warning: "PTT_EOL" redefined
In file included from pppoe.h:37,
                 from utils.c:42:
/usr/include/linux/if_pppox.h:87:1: warning: this is the location of the
previous definition
utils.c: In function 'vpoe_slprintf':
utils.c:186: error: invalid use of non-lvalue array
make[2]: *** [utils.o] Error 1
make[2]: Leaving directory `/usr/src/ppp-2.4.1b2.WORKING/pppd/plugins/pppoe'
make[1]: *** [pppoe/pppoe.so] Error 2
make[1]: Leaving directory `/usr/src/ppp-2.4.1b2.WORKING/pppd/plugins'
make: *** [all] Error 2



More information about the asterisk-users mailing list