LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 09-11-2006, 02:16 PM   #946
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422

Quote:
Originally Posted by Old_Fogie
Oh, btw, is bit-torrent the best way to get slackware 11 when it comes out, can the mirror's keep up?
I've bittorrented the few Slackware releases and it downloads just fine. I usually can get all four .iso files overnight. FTP is probably faster, but bittorrent is definitely easier on the mirrors.
 
Old 09-11-2006, 07:19 PM   #947
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,446
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Bruce Hill
Do NOT use the /usr/src/linux area! Build your kernel under /home is the part I meant.
These instructions date back to a time when kernel headers were kept under /usr/src/linux. This hasn't been true of Slackware for many years now. These days, kernel headers are kept under /usr/include.

Back when Linus wrote that spiel, the kernel source tarball would untar into a directory simply called 'linux' as opposed to the modern behaviour of untarring itself into a directory with the version number (eg: linux-2.6.17.11). Essentially, this meant that you couldn't keep more than one source tree under /usr/src.

Nowadays, we can keep as many different source trees as we want under /usr/src, and also because the glibc kernel headers are no longer kept under /usr/src/linux the whole argument about not using this area is moot.
 
Old 09-11-2006, 07:28 PM   #948
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
All distros don't do as Slackware does, so it is not a moot point.

The instructions first appear in the kernel README file in 2.4.0.
 
Old 09-11-2006, 07:43 PM   #949
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
Kernel headers are stored in /usr/include in every single modern distro, and it does not matter how a distro places it's header files, as for a very long time untarring the kernel source creates a /usr/src/linux-version instead of /usr/src/linux like it used to, so nothing can ever get overwritten by using /usr/src, except for previous kernel source directories(and then only the very exact same version).

You can safely build in /usr/src, and infact I am pretty sure it is strongly recommended to do so now too, because a lot of drivers search in /usr/src/ for the kernel source.
 
Old 09-11-2006, 08:52 PM   #950
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
Hmm, I've been putting my updated kernel source code in my /home directory. I just checked and the 2.4.33.2 source is in /usr/src. And all the headers are 2.4.33.2. But my kernel is 2.6.17.7.

When I compile source code, everything seems to work all right. But is it?

And what would happen if I DID put the kernel source for 2.6 under /usr/src, but the header files were still 2.4???

--vonSt
PS: You want Slackware 2.6 headers? Look in the /extra/linux-2.6.17.11 directory! Of course, there's a warning that says "your OS may break," but if you want an ALL 2.6 version of Slackware...

Last edited by vonst; 09-11-2006 at 08:53 PM.
 
Old 09-11-2006, 08:54 PM   #951
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I have been building kernels under /home for over 2 years now
and have never had one problem.
 
Old 09-11-2006, 09:03 PM   #952
vonst
Member
 
Registered: May 2004
Location: Wash DC Metro Area
Distribution: Slackware 11
Posts: 108

Rep: Reputation: 15
Oops, this time I wasn't clear....

When I compile source code for other applications, everything seems to work all right. I suppose, given what we've been discussing, if I don't change my /usr/src/linux-2.4 (and my headers are 2.4), then when I compile something like Timidity++, I'm really compiling it under 2.4! Right?

And then, the follow-on question is:

If I DO change to /usr/src/linux-2.6 (and my headers are 2.4). What do I get when I compile Timidity++?

--vonSt
 
Old 09-11-2006, 09:12 PM   #953
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
One major problem with building in /home. Build and run your kernel, then delete the original source dir, then try and build an out-of-tree module. I'd rather be able to just let my kernel source sit in a generic spot, than to be forced into leaving my kernel source alone in /home.
 
Old 09-11-2006, 09:36 PM   #954
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
This is a copy and paste from my response to this question. I think it relates to this discussion as well.

Quote:
You need to keep the 2.4.x headers installed. The headers are used by GCC when compiling programs and it will expect to find the headers it was compiled against. If you need to compile something specific to your kernel (such as a kernel modules), it will look for the headers installed in the /usr/src/linux-<version>. The most common method is to follow the link '/lib/modules/<version #>/source'. However, If you are compiling a regular program, it will usually look for headers GCC was compiled against in /usr/include/linux (IE. The headers package).
It's ok to get rid of the kernel headers GCC was compiled against, but you will need to recompile your "toolchain" as it's refered to in Linux From Scratch. If you build the source in your home directory, I'm pretty sure the link I refered to above will point to it. I'm npt sure since I build in /usr/src/. Maybe one of you home builders can confirm the link will point to whereever the source is built from when you do "make modules_install".

regards,
...drkstr


...drkstr

Last edited by drkstr; 09-11-2006 at 09:41 PM.
 
Old 09-11-2006, 09:46 PM   #955
theoffset
Member
 
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211

Rep: Reputation: 31
Quote:
Originally Posted by vonst
Oops, this time I wasn't clear....

When I compile source code for other applications, everything seems to work all right. I suppose, given what we've been discussing, if I don't change my /usr/src/linux-2.4 (and my headers are 2.4), then when I compile something like Timidity++, I'm really compiling it under 2.4! Right?

And then, the follow-on question is:

If I DO change to /usr/src/linux-2.6 (and my headers are 2.4). What do I get when I compile Timidity++?

--vonSt
Wheter you change your /usr/src/linux-2.{4,6} is irrelevant for Timidity++, since it doesn't use the kernel source/headers at all (the most system-level thing it links against is glibc (obviously) and alsa-lib, if enabled). And even if it used them, it won't matter whether you change it at all.

The thing which matters is (are? I need to retake my english classes) the linux headers (/usr/include/linux, which in some distros used to be a symlink to /usr/src/linux/include, which is a terribly wrong idea), but they only matter to low level stuff which needs to comunicate directly with the kernel using structures (like glibc, or X).

So, unless you compile a lot of that stuff, changing the kernel headers will probably never get you in trouble (but that doesn't mean that is a good idea). And changing /usr/src/linux* won't (or at least shouldn't) affect anything at all.
 
Old 09-11-2006, 11:28 PM   #956
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i like to compile the kernel in /tmp, and then make a slackpack of it (and another for the modules)... as for the source, i also make a slackpack of that (right after compilation)... then i just upgradepkg all three of them...

Last edited by win32sux; 09-11-2006 at 11:29 PM.
 
Old 09-11-2006, 11:38 PM   #957
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
That's a pretty heavy /tmp, and kind of breaks the rule of temp files as I understand it. /tmp is supposed to be able to be mounted tmpfs, where everything in /tmp dissappears when you reboot. Also, /tmp is a really insecure place to put something so critical like kernel source. Anybody might be able to modify the source to put in a backdoor while you are working on config and etc.
 
Old 09-11-2006, 11:47 PM   #958
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by tuxdev
That's a pretty heavy /tmp, and kind of breaks the rule of temp files as I understand it. /tmp is supposed to be able to be mounted tmpfs, where everything in /tmp dissappears when you reboot. Also, /tmp is a really insecure place to put something so critical like kernel source. Anybody might be able to modify the source to put in a backdoor while you are working on config and etc.
my /tmp doesn't use tmpfs, it's a regular sticky bit directory...

Last edited by win32sux; 09-11-2006 at 11:50 PM.
 
Old 09-12-2006, 12:07 AM   #959
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
11 must realy be allmost ready, no changes, just bug fixes. I realy believe it will come out the same date previus did this time
 
Old 09-12-2006, 12:31 AM   #960
jp-lack
Member
 
Registered: Mar 2005
Location: NJ - US
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
2 more days and 10.2 will be 1 year old ...it will be nice to have 11 that day
 
  


Closed Thread

Tags
advice, chat, far, general, upgrade



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
Slack 10.2 slack 10.2 ran xserver after all on sata with via board devafree LinuxQuestions.org Member Success Stories 5 05-30-2006 11:54 PM
Frozen-Bubble(from slack 8.2) Not Running in slack 9 bongski55 Slackware 8 01-02-2006 04:10 PM
Slack 10.1 will a Slack 10 Wine pkg work? acummings Slackware 1 03-25-2005 04:55 AM
Using Slack 10's 2.6.7 kernel packages on Slack 10.1? SocialEngineer Slackware 1 03-05-2005 11:53 AM
cd rom error on installation media (With both slack 9,1 and slack 10) busbarn Slackware - Installation 6 07-15-2004 03:03 PM

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

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