socket.h errors in ppp compile

Dwight Johnson (dwj@aaronsrod.com)
Sat, 20 Dec 1997 00:03:43 -0800 (PST)


I am attempting to compile ppp-2.3.2 with kernel 2.0.33.

I get this:

------------
#make HAS_SHADOW=1
cd chat; make all
make[1]: Entering directory `/usr/src/ppp-2.3.2.patched/chat'
cc -c -O2 -pipe -DTERMIOS -DSIGTYPE=void -UNO_SLEEP -DFNDELAY=O_NDELAY -o chat.o chat.c
cc -s -O2 -o chat chat.o
make[1]: Leaving directory `/usr/src/ppp-2.3.2.patched/chat'
cd pppd; make all
make[1]: Entering directory `/usr/src/ppp-2.3.2.patched/pppd'
cc -O2 -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAS_SHADOW -c main.c -o main.o
. . .
cc -O2 -D_linux_=1 -DHAVE_PATHS_H -DIPX_CHANGE -DHAS_SHADOW -c sys-linux.c -o sys-linux.o
In file included from /usr/include/linux/if.h:23,
from sys-linux.c:52:
/usr/include/linux/socket.h:41: warning: `SOCK_STREAM' redefined
/usr/include/socketbits.h:40: warning: this is the location of the previous definition
/usr/include/linux/socket.h:42: warning: `SOCK_DGRAM' redefined
/usr/include/socketbits.h:43: warning: this is the location of the previous definition
. . .
/usr/include/linux/socket.h:82: warning: `PF_MAX' redefined
/usr/include/socketbits.h:71: warning: this is the location of the previous definition
In file included from /usr/include/linux/if.h:23,
from sys-linux.c:52:
/usr/include/linux/socket.h:9: redefinition of `struct sockaddr'
/usr/include/linux/socket.h:14: redefinition of `struct linger'
/usr/include/linux/socket.h:26: redefinition of `struct msghdr'
make[1]: *** [sys-linux.o] Error 1
make[1]: Leaving directory `/usr/src/ppp-2.3.2.patched/pppd'
make: *** [all] Error 2
---------------

I am not a great Linux programmer or kernel hacker.

Any help you can offer to get a successful compile, much appreciated.

Dwight