Author Topic: Need to recompile the kernel  (Read 1248 times)

Offline alansecker

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 59
Need to recompile the kernel
« on: October 21, 2009, 03:59:32 PM »
I have PCLinuxOS newly downloaded and installed but could not get Kaffeine to drive my TV card.
All the possible regular tests had been done but the Kaffeine boys were baffled. There are two steps I  had not yet taken:

1) Recompile the V4l modules; and
2) Recompile the kernel

The default kernel is 2.6.26.8.tex3. It's source does not appear in synaptic's listing
Attempting make menuconfig or make xconfig from the /usr/src/linux directory failed with errors.
I would ned to recomplile the kernel fot VMware if I chose to install it so this is doubly important if I decide to stick with this distro.

Needles to say trying to deploy Mercurial also ran into difficulty!

Any advice?
TIA



Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Need to recompile the kernel
« Reply #1 on: October 21, 2009, 04:06:42 PM »
Install kernel 2.6.27. It's newer. After installing and before rebooting into your new kernel, edit /etc/modprobe.preload to remove these four lines --->

amd64_agp
amd64_agp
amd64_agp

intel_agp


If you do not edit this file and remove those, your new kernel will be likely to seg-fault.



Offline alansecker

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 59
Re: Need to recompile the kernel
« Reply #2 on: October 23, 2009, 02:16:25 PM »
I'm stuck on make xconfig. This is the output:

Quote
[root@localhost linux-2.6.27.31.tex5]# make xconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:157,
                 from /usr/include/limits.h:145,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:122,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/syslimits.h:7,
                 from /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include/limits.h:11,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/local_lim.h:39:26: error: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
                 from /usr/include/netinet/in.h:25,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:117:
/usr/include/bits/socket.h:366:24: error: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:206: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:206: error: for each function it appears in.)
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:306: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[root@localhost linux-2.6.27.31.tex5]#

I would love an explanation.

Online muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Need to recompile the kernel
« Reply #3 on: October 23, 2009, 02:49:43 PM »

an explanation is that you do not have a package called "glibc-headers-devel" installed, install it and the errors will go away .. you could speed things up sometimes by searching the forum for any errors you might get when compiling stuff or when experiencing any other issues with your install
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline alansecker

  • PCLinuxOS Tester
  • Full Member
  • *******
  • Posts: 59
Re: Need to recompile the kernel
« Reply #4 on: October 24, 2009, 03:42:21 PM »
Thank you.
And I'll check in future.
Regards
Alan