LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-24-2016, 11:44 PM   #1
Altiris
Member
 
Registered: Mar 2013
Posts: 556

Rep: Reputation: Disabled
Do I need to re-compile software if I update the kernel?


For example, I just compiled qemu, libvirt, and virt-manager, I have realized Slackware 14.2 has updates available for the 4.4. kernel, if I update to the latest, will the software listed above still be compatible or will I need to recompile the software? Thanks!
 
Old 08-25-2016, 12:00 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Only software that includes kernel modules will need to be recompiled. VirtualBox and the binary NVidia driver are the two that I know about.
 
3 members found this post helpful.
Old 08-25-2016, 02:18 AM   #3
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 152

Rep: Reputation: 64
In some cases, software on new kernel not work, even latest version, like nvidia or vbox.
You need read changelog in kernel and in software.
If kernel version minor (only fixes) it maybe work as stable kernel, but if you upgrade to major version, be careful.

Last edited by StreamThreader; 08-25-2016 at 02:19 AM.
 
1 members found this post helpful.
Old 08-25-2016, 06:32 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,496
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
If you're building software locally, your installed kernel headers need to be the ones that your libc was built against. The actual running kernel can usually be different without it causing problems.
 
Old 08-25-2016, 09:48 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,198

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by StreamThreader View Post
In some cases, software on new kernel not work, even latest version, like nvidia or vbox. You need read changelog in kernel and in software. If kernel version minor (only fixes) it maybe work as stable kernel, but if you upgrade to major version, be careful.
Uhm, no. The situation with both Nvidia and VirtualBox is that they install kernel modules into /lib/modules/4.4.17 or whatever the kernel version is. That path needs to change if the kernel version changes.
 
1 members found this post helpful.
Old 08-25-2016, 10:03 AM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dugan View Post
Uhm, no. The situation with both Nvidia and VirtualBox is that they install kernel modules into /lib/modules/4.4.17 or whatever the kernel version is. That path needs to change if the kernel version changes.
I think he means really new kernel versions that the software hasn't explicitely added support for. I know we've seen that with nvidia and AMD binary drivers, but these can usually be solved with a quick patch. I don't think I've ever noticed any posts about that with VirtualBox, so I don't know if they artificially limit the high end of the kernel version or not.

That being said, for OP, this won't be one of those situations, because both nvidia and virtualbox have support for the 4.4.x kernel. It doesn't matter if it's 4.4.14 or 4.4.19. They'll work fine after a recompile.

EDIT: You can check your SBo packages for anything that contains kernel modules so you know what packages need to be recompiled.

Code:
grep ".*\.ko$" /var/log/packages/*SBo*
On my system, I would need to recompile the lirc and virtualbox-kernel packages.

Last edited by bassmadrigal; 08-25-2016 at 10:08 AM.
 
1 members found this post helpful.
Old 08-25-2016, 12:12 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,463

Rep: Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373Reputation: 8373
Quote:
Originally Posted by hazel View Post
If you're building software locally, your installed kernel headers need to be the ones that your libc was built against. The actual running kernel can usually be different without it causing problems.
As far as I know, I've never encountered any issues with upgrading the kernel headers without recompiling glibc. I'd be interested to hear if anyone ever has, and under what circumstances.
 
3 members found this post helpful.
Old 08-25-2016, 12:16 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
In my Gentoo system the only package that needs headers is glibc. So obviously nothing breaks when headers are upgraded.
 
Old 08-25-2016, 12:36 PM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,496
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
I think I read somewhere that programs could perhaps make use of constants from the headers, which could then conflict with the ones assumed by glibc. It sounds very theoretical but it isn't actually illegal, is it?

Certainly most distros upgrade the kernel and glibc in lockstep, and LFS treats the kernel headers as one of the four things you shouldn't upgrade between releases (the others are binutils, gcc and glibc).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Crackling sound after kernel update/compile - AC97 SuSE 9.1 ianunderwood Linux - General 3 12-06-2004 10:51 AM
re-compile xfree with kernel update? breakerfall Linux - General 2 11-11-2003 04:32 AM

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

All times are GMT -5. The time now is 11:56 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