LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-19-2005, 05:17 AM   #1
Sushy
Member
 
Registered: Sep 2005
Distribution: FreeBSD
Posts: 84

Rep: Reputation: 15
How to patch Kernel?


Hi!

I have Kernel 2.4.31
I want to upgrade to latest Kernel 2.6.13.4

So I`ve just downloaded full source file linux-2.6.13.4.tar.bz2 (36,5MB) from www.kernel.org

What should I do now with this file?

Thank you.
 
Old 10-19-2005, 05:20 AM   #2
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Have a look at this post and this post. I hope they help.
 
Old 10-19-2005, 07:16 AM   #3
Sushy
Member
 
Registered: Sep 2005
Distribution: FreeBSD
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by KMcD
Have a look at this post and this post. I hope they help.
when I run
make;make modules;make install;make modules_install
I have many errors and warnings
why?

Also I don`t understand if I want to upgrade to Kernel 2.6.13.4 I need also something to pach so I can use this .config file (2.6.13)?
 
Old 10-20-2005, 07:38 AM   #4
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Quote:
Originally posted by Sushy
when I run
make;make modules;make install;make modules_install
I have many errors and warnings
why?

There's something missing then from the config. Run make it's own and post any error here.

Quote:
Originally posted by Sushy
Also I don`t understand if I want to upgrade to Kernel 2.6.13.4 I need also something to pach so I can use this .config file (2.6.13)?
you don't need to patch the kernel at all unless you want to use some feature that the standard kernel doesn't contain.
 
Old 10-20-2005, 07:49 AM   #5
Sushy
Member
 
Registered: Sep 2005
Distribution: FreeBSD
Posts: 84

Original Poster
Rep: Reputation: 15
[QUOTE]Originally posted by KMcD
[B]There's something missing then from the config. Run make it's own and post any error here.

When I run "make"
--------------------------------------------------------------------------------------------
root@darkstar:/usr/src/linux# make
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/include/limits.h:122:75: limits.h: No such file or directory
scripts/mkdep.c:36:19: stdio.h: No such file or directory
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:69: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:78: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:93: warning: implicit declaration of function `realloc'
scripts/mkdep.c:93: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:94: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:94: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:94: error: for each function it appears in.)
scripts/mkdep.c:95: warning: implicit declaration of function `perror'
scripts/mkdep.c:95: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:111: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:126: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: At top level:
scripts/mkdep.c:148: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:163: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:164: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:176: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:204: warning: implicit declaration of function `access'
scripts/mkdep.c:204: error: `F_OK' undeclared (first use in this function)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:224: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:225: warning: implicit declaration of function `realpath'
scripts/mkdep.c:225: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:227: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:227: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:235: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:243: warning: implicit declaration of function `malloc'
scripts/mkdep.c:243: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:248: warning: implicit declaration of function `strcpy'
scripts/mkdep.c:221: warning: unused variable `resolved_path'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:271: warning: implicit declaration of function `isupper'
scripts/mkdep.c:271: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:493: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:526: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:528: error: storage size of `st' isn't known
scripts/mkdep.c:531: warning: implicit declaration of function `open'
scripts/mkdep.c:531: error: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:537: warning: implicit declaration of function `fstat'
scripts/mkdep.c:539: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:540: warning: implicit declaration of function `close'
scripts/mkdep.c:546: warning: implicit declaration of function `mmap'
scripts/mkdep.c:546: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:546: error: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:546: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/mkdep.c:546: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:562: warning: implicit declaration of function `puts'
scripts/mkdep.c:567: warning: implicit declaration of function `munmap'
scripts/mkdep.c:528: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:581: warning: implicit declaration of function `getenv'
scripts/mkdep.c:581: warning: assignment makes pointer from integer without a cast
scripts/mkdep.c:583: warning: implicit declaration of function `fputs'
scripts/mkdep.c:584: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:591: warning: implicit declaration of function `strncmp'
make: *** [scripts/mkdep] Error 1
------------------------------------------------------------------------------------

Last edited by Sushy; 10-20-2005 at 07:50 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 03:40 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration