LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-01-2012, 08:56 PM   #16
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3

Fresh off of burning my fingers with the soldering iron, I had a thought about this.

If I'm running multilib and I upgrade my kernel, is there any reason I would have to roll my own multilib to go with my new kernel? Or could I keep using Alien's (currently from 3.2.29) without problems? Of course the 3.2.29 header files would still be there, but let's say I was running a 3.5.4 kernel?

Or maybe it's just the bacon smell that's getting to me?!
 
Old 10-01-2012, 10:22 PM   #17
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,240

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
Quote:
Originally Posted by schultzter View Post
If I'm running multilib and I upgrade my kernel, is there any reason I would have to roll my own multilib to go with my new kernel? Or could I keep using Alien's (currently from 3.2.29) without problems? Of course the 3.2.29 header files would still be there, but let's say I was running a 3.5.4 kernel?
You can still use Alien Bob's multilib packages without any problems. They are glibc version-dependent but not kernel version-dependent (though, as you said, make sure you keep the original kernel headers).
 
Old 10-30-2012, 01:28 PM   #18
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled
I have a question about the kernel headers and glibc.
I am making packages for kernel-source kernel-huge and kernel-modules on my
slackware 14.0 64-bit system. The kernel-source package is done and I'm using
3.0.49 source tree. Nice build scrips from slackware.com will be used to build
renaming pkg. Witch is kernel-huge, kernel-modules and
?? kernel-headers ?? ?? rebuild glibc ??
(there is no builds script for kernel-header,only a slack-desc file?)

If the software is built from glibc that is built from kernel 3.2.29 headers
and now will be running along an older kernel like 3.0.x .

will my software still sync, work and compile correctly with older kernels runing?

I think like this:

software ---> glibc/elf ---> 3.2.29 headers -?-> >>>older kernel running different instructions<<<

Wish Linus was here now. But any answer is better then none.
 
Old 10-30-2012, 03:51 PM   #19
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 3,961

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
AFAIK there is no need to rebuild kernel-headers nor (hopefully!) glibc.

the kernel-headers package simply copy headers from the kernel tree to /usr/include, this is why:
(1) There is no need for a SlackBuild for it.
(2) These headers (in /usr/include) won't be overridden if you install a new kernel-source, so there is no need to update them when you install a new kernel-source package.

Oh, and in any case the sanitized kernel headers should be there *before* you re-build glibc (which is hopefully not necessary in your case anyway) as noted in glibc.SlackBuid:
Quote:
# NOTE!!! glibc needs to be built against the sanitized kernel headers,
# which will be installed under /usr/include by the kernel-headers package.
# Be sure the correct version of the headers package is installed BEFORE
# building glibc!
Long story short, just install your kernel 3.0.49, no need to change the kernel-headers nor glibc AFAIK.
 
Old 10-30-2012, 04:10 PM   #20
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 79

Rep: Reputation: Disabled
what kind of error could show up if there where problems.
or how do I know if I need to downgrade headers and rebuild glibc?
what symptoms do I look for or how to test if I'm not the lucky one?

I mean if my kernel boot and nothing special happens,
can I just go on and forget about it ??
 
Old 10-30-2012, 04:26 PM   #21
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 3,961

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Don't worry, just try and in case something looks weird, come back here.

Only add a new entry for the new (I should say old) kernel in /etc/lilo.conf instead or erasing the old one, just in case.
 
Old 11-01-2012, 07:13 AM   #22
frushiyama
Member
 
Registered: Oct 2010
Location: Brazil
Distribution: Slackware64 14.1, Slackware ARM
Posts: 47

Rep: Reputation: 0
With Alien Bob instructions and the .config from http://mirrors.slackware.com/slackwa...sting-3.6-rc4/ the 3.6.3 and 3.6.4 kernels works with only one new module not set on .config .
I'm also changed preemptive processor option and hostname, without any problems. On Alien tutorial need to change the x86 or x86_64 part of copying the new bzImage from tree if you're running x86 or x86_64 .config .
 
  


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
[SOLVED] Building kernel from source at /usr/src as user Alkin Slackware 17 04-06-2012 08:48 AM
Building largesmp kernel from source maxy7710 Linux - Newbie 3 09-08-2009 05:17 AM
Building nvidia-kernel-source error log jonasan Linux - Software 1 05-28-2006 09:52 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
help for building a kernel from source sh4d0w331 Slackware 5 09-28-2004 01:27 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration