Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Kernel won't compile RedHat 5.1 & pppd 2.3.4

Posted on 1998-11-01
3
Medium Priority
?
286 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 800 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

927 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