Leif Erlingsson wrote:
> I've had the exact same problems -- with the exact same software
> versions, both for linux and ppp.
>
> I solved those problems and intended to publish my patch, only
> my sucessfully compiled sources act strange and I have had too
> little time to trace that down. I will give you an excerpt of
> the patches I've done, that should be sufficient for your
> compile to go through:
>
> *** ppp-2.3.5/linux/ppp.c.orig Wed Mar 25 00:54:59 1998
> --- ppp-2.3.5/linux/ppp.c Sat Nov 7 20:56:32 1998
> ***************
> *** 7,13 ****
> * Dynamic PPP devices by Jim Freeman <[EMAIL PROTECTED]>.
> * ppp_tty_receive ``noisy-raise-bug'' fixed by Ove Ewerlid <[EMAIL PROTECTED]>
> *
> ! * ==FILEVERSION 980319==
> *
> * NOTE TO MAINTAINERS:
> * If you modify this file at all, please set the number above to the
> --- 7,13 ----
> * Dynamic PPP devices by Jim Freeman <[EMAIL PROTECTED]>.
> * ppp_tty_receive ``noisy-raise-bug'' fixed by Ove Ewerlid <[EMAIL PROTECTED]>
> *
> ! * ==FILEVERSION 981107==
> *
> * NOTE TO MAINTAINERS:
> * If you modify this file at all, please set the number above to the
> ***************
> *** 3076,3085 ****
> /*
> * Send a frame to the remote.
> */
> ! #if LINUX_VERSION_CODE < VERSION(2,1,86)
> ! #define FREE_SKB(skb) dev_kfree_skb(skb)
> #else
> ! #define FREE_SKB(skb) dev_kfree_skb(skb, FREE_WRITE)
> #endif
>
> static int
> --- 3076,3085 ----
> /*
> * Send a frame to the remote.
> */
> ! #if (LINUX_VERSION_CODE >= VERSION(2,1,86) || LINUX_VERSION_CODE >=
>VERSION(2,0,30) && LINUX_VERSION_CODE < VERSION(2,1,0))
> ! #define FREE_SKB(skb) dev_kfree_skb(skb, FREE_WRITE)
> #else
> ! #define FREE_SKB(skb) dev_kfree_skb(skb)
> #endif
>
> static int
>
> That should do it. I'll get back when I have a more complete
> patch, I was trying to port back some updates made in the
> ppp code in the linux kernel tree, that has evolved separate
> from the ppp tree, but not very successfully -- the code
> kind of works, but I have problems sending chunks of data
> larger than one kilobyte at a time or so.... Something
> timeouts. I have been too occupied at work so I haven't
> had time to track this down. Am using CSLIP at the
> moment, have for the last few years, but thought I just
> _had_ to start using ppp. ;-)
>
> Leif Erlingsson
>
> On Wed, 11 Nov 1998, Minh Van Le wrote:
>
> > > > i need to know various sites, or given information where i can solve my
> > > > ppp-2.3.5 compile problems please.
> > >
> > > Err... what *are* the problems?
>
> The problem is that ppp.c in linux-2.0.35 has a later
> "Fileversion" than the ppp.c in the ppp-2.3.5, because
> inconsequential updates has been done to it. But we need the
> version in ppp-2.3.5, which we won't get. This is solved just
> by changing the "Fileversion" in ppp-2.3.5 ppp.c. One more
> thing is wrong with ppp-2.3.5 ppp.c, see my patch.
>
> Good Luck, and stay in touch -- I will mail you my finished
> patch when I get it working right, and I'd appreciate to hear
wow. that's a lot of patching :)
here is what i found to work for me, immediately :),
-----------------------------------
Subject: Re: ppp-2.3.5 compile problems
Date: Wed, 11 Nov 1998 11:05:01 +1000 (EST)
From: Paul Freeman <[EMAIL PROTECTED]>
To: Minh Van Le <[EMAIL PROTECTED]>
Hi,
I can provide a little help but it may only be relevant for the 2.0.35
kernel.
I presume you have compiled ppp into to kernel permanently rather than as
a module?
Anyway, your problem with the make, particularly the sys-linux.c problem
(pppstats.c will give you the same error) has to do with locating the
include file <asm/types.h>. I got around this problem by editing
sys-linux.c (located in the pppd subdirectory of the ppp-2.3.5 code) and
pppstats.c (located in the pppstats subdirectory of the ppp-2.3.5 code) as
follows.
sys-linux.c
Insert the following line after line 67.
#include <asm/types.h>
ie the group of include lines starting at line 67 will now look like
#include <linux/types.h>
#include <asm/types.h> <------- this has to be added manually
#include <linux/ppp_defs.h>
#include <linux/if_ppp.h>
For pppstats.c do exactly the same thing except the lines start at line
64.
Start the make process again and all should work OK (barring any problems
with the later kernel).
I am not sure this is the "proper" way to fix the problem but it works!
ALSO, make sure when you did 'make kernel' that the version of ppp.c in
the 2.3.5 distribution DID replace the version in
/usr/src/linux/drivers/net (at least this is important with kernel 2.0.35
since the version included with this kernel DOES NOT get replaced because
of a mismatch with internal version numbers that the make kernel process
checks).
Please let me know if this does not work.
Regards
Paul Freeman
-----------------------------------
thanks go to Paul Freeman for such an easy solution ! i now have ppp-2.3.5 working
under linux.
cheers to you Mr Erlingsson :)
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]