Link to home
Start Free TrialLog in
Avatar of Q010797
Q010797

asked on

PPP 2.3.4 compile problems

Heya all..

after make kernel for pppd
i try to remake my 2.0.33 kernel.. and here's the error I get...

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.33/drivers/net'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.0.33/drivers/net'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.33/drivers'
make: *** [linuxsubdirs] Error 2

Need this fixed.. but how?

Thanks
Andrew
q@qonline.com.au
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Could you please post:

 grep -C dev_kfree_skb /usr/src/linux/{driver/net/ppp.c,include/linux/skbuff.h}
Avatar of Q010797
Q010797

ASKER

entering:
grep -C dev_kfree_skb /usr/src/linux/{drivers/net/ppp.c,include/linux/skbuff.h}

gave me:
/usr/src/linux/drivers/net/ppp.c- */
/usr/src/linux/drivers/net/ppp.c-#if LINUX_VERSION_CODE < VERSION(2,1,86)
/usr/src/linux/drivers/net/ppp.c:#define FREE_SKB(skb)  dev_kfree_skb(skb)
/usr/src/linux/drivers/net/ppp.c-#else
/usr/src/linux/drivers/net/ppp.c:#define FREE_SKB(skb)  dev_kfree_skb(skb, FREE_
WRITE)
/usr/src/linux/drivers/net/ppp.c-#endif
/usr/src/linux/drivers/net/ppp.c-
--
/usr/src/linux/include/linux/skbuff.h-extern void                       skb_devi
ce_lock(struct sk_buff *skb);
/usr/src/linux/include/linux/skbuff.h-extern void                       skb_devi
ce_unlock(struct sk_buff *skb);
/usr/src/linux/include/linux/skbuff.h:extern void                       dev_kfre
e_skb(struct sk_buff *skb, int mode);
/usr/src/linux/include/linux/skbuff.h-extern int                        skb_devi
ce_locked(struct sk_buff *skb);
/usr/src/linux/include/linux/skbuff.h-extern unsigned char *            skb_put(
struct sk_buff *skb, int len);
Hm, you have a strange  ppp.c

Please comment out the ifdefs about  FREE_SKB, use
  #define FREE_SKB(skb)  dev_kfree_skb(skb, FREE_WRITE)
instead.
Tell me what happens.
Avatar of Q010797

ASKER

I assume it's fixed... when I type make zlilo now there are no errors...

offer same comment as answer and you can have the points
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Q010797

ASKER

working lovely :)