[pptp-server] Follow-up to problem compiling ppp.c

Matthias Suencksen msuencks at marcant.de
Mon Feb 12 13:45:06 CST 2001


robert <berzerke at swbell.net> wrote:
> > 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
> 

this looks like a problem with version of the modules
vs. version of the kernel.

I usuallay check that /usr/src/linux is really a symlink to
the source directory of the currently running kernel.

If unshure I about the status of it I do the full build again ( make dep; 
make bzImage ; make modules; make_modules_install ; depmod -a ; and  aquainting 
lilo with the new image)

My personal experence with 2.2.17 is that after un-tarring a fresh
tar-ball of kernel source and doing "make kernel" with ppp-2.3.11
I only had to adjust if_ppp.h ( as said in section 7.3.5 in the RedHat Howto).

--
Matthias


> 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 think's covered 

> 
> 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.
> _______________________________________________
> pptp-server maillist  -  pptp-server at lists.schulte.org
> http://lists.schulte.org/mailman/listinfo/pptp-server
> List services provided by www.schulteconsulting.com!
> 
> 
> 

--
Out-of-order Execution
	(Feature von modernen Microprozessoren)



More information about the pptp-server mailing list