Solved

Kernel won't compile RedHat 5.1 & pppd 2.3.4

Posted on 1998-11-01
3
248 Views
Last Modified: 2010-03-18
I have a runing Redhat 5.1 I need some of the features
               of pppd 2.3.4 (connect to NT server). I cannot get the
               kernel to compile. I get the following errors. I've seen this
               on the web but cannot find answer
               make[3]: Entering directory
               `/usr/src/linux-2.0.34/drivers/net'
               gcc -D__KERNEL__ -I/usr/src/linux-2.0.34/include -Wall
               -Wstrict-prototypes -O2 -fomit-frame-pointer
               -fno-strength-reduce -pipe -m486 -malign-loops=2
               -malign-jumps=2 -malign-functions=2 -DCPU=586
               -DMODVERSIONS -DEXPORT_SYMTAB -c ppp.cppp.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 1make[3]: Leaving directory
               `/usr/src/linux-2.0.34/drivers/net'make[2]: *** [first_rule]
               Error 2make[2]: Leaving directory
               `/usr/src/linux-2.0.34/drivers/net'
               make[1]: *** [sub_dirs] Error 2
               make[1]: Leaving directory
               `/usr/src/linux-2.0.34/drivers'make: *** [linuxsubdirs] Error
               2
0
Comment
Question by:dpdr
3 Comments
 
LVL 19

Expert Comment

by:xterm
ID: 1587610
Why are you doing this?  The default kernel that comes with
5.1 already has modular ppp support.

If you do feel you need to recompile (for whatever reason) at
least go get the latest kernel source from ftp.kernel.org
(although it'd probably be kind of a pain in the butt to split
that 7mb file into a bunch of floppies since you have no net
support....)
0
 
LVL 7

Accepted Solution

by:
HalldorG earned 200 total points
ID: 1587611
Check the ppp.c code
it sayes

#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 line LINUX_VERSION_CODE < VERSION(2,1,86)

to LINUX_VERSION_CODE < VERSION(2.0.30)


and you should be in business

the ppp.c is located in

/usr/src/linux-2.0.34/drivers/net

on your computer


                     
0
 

Author Comment

by:dpdr
ID: 1587612
that is what I was looking for
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ACK Attack 5 58
How to minimize the path of packets to my application? 3 71
OpenVPN running on Ubuntu 14.4 x64 5 92
Postfix DNS lookups setup 5 41
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now