[pptp-server] Follow-up to problem compiling ppp.c
robert
berzerke at swbell.net
Mon Feb 12 11:27:36 CST 2001
I've got a problem compiling ppp.c. This is with ppp 2.3.11, kernel 2.2.17
(Mandrake). Everything goes fine after applying all the patches until I get
the following errors:
ppp.c:188: warning: static declaration for
'ppp_register_compression_R9682e733' follows non-static
ppp.c:189: warning: static declaration for
'ppp_unregister_compression_Ra1b9928df' follows non-static
The showstopper is:
ppp.c: In function: 'rcv_proto_unknown': ppp.c:2563: too few arguments to
function 'kill_fasync_R8e941aa8'
The compile then exits with error 2.
I've found that editing the line of code for kill_fasync and adding ",
POLL_IN" (no quotes of course) before the closing ) allows the module to
compile. However, I get the unresolved symbols in ppp_register_compression
and in ppp_unregister_compression. I also still get the above error about
static following non-static.
I went through the patch code by hand and found the ppp_register_compression
and it's companion were declared EXTERN, so I changed the ppp.c code.
Compiles without a problem now . However, I still get the unresolved symbols
error when I try to use it.
I've checked for the <lf><cr> problem and it isn't in any of the patches (or
ppp.c code from pppd). Yes, I got the patch with the rc.4 "files". I'm
stumped. If anyone has this successfully running for a 2.2.17 kernel, I
would appreciate you emailing me (off the list) your ppp.c from
/usr/src/linux/drivers/net so I could do a diff and hopefully find out what's
wrong.
More information about the pptp-server
mailing list