On Fri, 20 Nov 1998, Tanju Aktug wrote:
|Date: Fri, 20 Nov 1998 13:26:31 +0000
|From: Tanju Aktug <[EMAIL PROTECTED]>
|To: [EMAIL PROTECTED]
|Subject: Help for compile error of kernel during installation of ppp-2.3.
|
|I'am using Slacware (2.0.30 kernel) on a intel box.
|
|For instalation of ppp-2.3.5 I made ./configure and make kernel.
|These worked properly. While compiling kernel with new source, I
|recieved error message :
|
|make[3]: Entering directory `/usr/src/linux-2.0.30/drivers/net'
|gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall
|-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce
|-pipe -m486 -DCPU=486 -c -o ppp.o ppp.c ppp.c: In function
|`ppp_dev_xmit': ppp.c:3104: too few arguments to function
|`dev_kfree_skb' ppp.c:3115: too few arguments to function
|`dev_kfree_skb' ppp.c:3128: too few arguments to function
|`dev_kfree_skb' ppp.c:3169: too few arguments to function
|`dev_kfree_skb' ppp.c:3177: too few arguments to function
|`dev_kfree_skb' ppp.c:3182: too few arguments to function
|`dev_kfree_skb' make[3]: *** [ppp.o] Error 1 make[3]: Leaving
|directory `/usr/src/linux-2.0.30/drivers/net' make[2]: ***
|[first_rule] Error 2 make[2]: Leaving directory
|`/usr/src/linux-2.0.30/drivers/net' make[1]: *** [sub_dirs] Error 2
|make[1]: Leaving directory `/usr/src/linux-2.0.30/drivers' make: ***
|[linuxsubdirs] Error 2
|
|How can solve the problem?
My stock answer below.
--------------------------------------------------------------------------
Sun Jul 12 00:47:56 CDT 1998
If you have such errors then, whatever the reason or kernel version, the
cure should be the same. With a pristine ppp-2.3.5 source tree, starting
at line 3079 in ppp-2.3.5/linux/ppp.c you have:
#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
Change the "<" to ">=" . Then copy the modified file to the kernel
source directory /usr/src/linux/drivers/net, replacing the old ppp.c
there, and recompile the kernel. The cautious may want to save the
old kernel ppp.c first. (The exact change may be "<" to ">" but the
difference won't affect most folks.)
If the ppp-2.3.x version is other than ppp-2.3.5 or your particular
Linux distribution you use has chosen to modify the ppp.c code, you still
should be able to use this as a guide to find this code near line 3079.
-------------------------------------------------------------------------
Ciao
---
Clifford Kite Not a guru. (tm)
[EMAIL PROTECTED] Not even close.
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]