[RP-PPPoE] rp-pppoe-3.12 make failed

Matei, Petre-Marius mat.marius at gmail.com
Thu Jul 20 09:55:41 EDT 2017


Hi Dianne,

Indeed, the debian package has 5 patches but the same thing happens with 
pristine sources.
I have installed before compiling ppp and ppp-dev version 2.4.7-1+4

The make errors starts with:
gcc -o pppoe-relay relay.o if.o debug.o common.o
gcc -DPLUGIN=1 '-DRP_VERSION="3.12"' -g -O2 -fno-strict-aliasing -Wall 
-Wstrict-prototypes    '-DPPPOE_PATH="/usr/sbin/pppoe"' 
'-DPPPD_PATH="/usr/local/sbin/pppd"' 
'-DPLUGIN_PATH="/etc/ppp/plugins/rp-pppoe.so"' 
'-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent 
-I/usr/local/include -c -o plugin/plugin.o -fPIC plugin.c
In file included from pppoe.h:134:0,
                  from plugin.c:31:
/usr/include/linux/in.h:28:3: error: redeclaration of enumerator 
‘IPPROTO_IP’
    IPPROTO_IP = 0,  /* Dummy protocol for TCP  */
    ^
/usr/include/netinet/in.h:42:5: note: previous definition of 
‘IPPROTO_IP’ was here
      IPPROTO_IP = 0,    /* Dummy protocol for TCP.  */
      ^~~~~~~~~~
/usr/include/linux/in.h:30:3: error: redeclaration of enumerator 
‘IPPROTO_ICMP’
    IPPROTO_ICMP = 1,  /* Internet Control Message Protocol */
    ^
/usr/include/netinet/in.h:44:5: note: previous definition of 
‘IPPROTO_ICMP’ was here
      IPPROTO_ICMP = 1,    /* Internet Control Message Protocol.  */
      ^~~~~~~~~~~~
/usr/include/linux/in.h:32:3: error: redeclaration of enumerator 
‘IPPROTO_IGMP’
    IPPROTO_IGMP = 2,  /* Internet Group Management Protocol */
    ^
/usr/include/netinet/in.h:46:5: note: previous definition of 
‘IPPROTO_IGMP’ was here
      IPPROTO_IGMP = 2,    /* Internet Group Management Protocol. */
      ^~~~~~~~~~~~
/usr/include/linux/in.h:34:3: error: redeclaration of enumerator 
‘IPPROTO_IPIP’
    IPPROTO_IPIP = 4,  /* IPIP tunnels (older KA9Q tunnels use 94) */
    ^
.....

Thanks


More information about the RP-PPPoE mailing list