LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-07-2004, 12:18 AM   #16
starionwolf
Member
 
Registered: Nov 2004
Location: Washington D.C., USA
Distribution: S.u.S.E, Ubantu, Puppy
Posts: 47

Original Poster
Rep: Reputation: 15

This is what I see in /usr/src/linux/

total 264
drwxr-xr-x 15 root root 4096 Dec 5 00:07 .
drwxr-xr-x 3 root root 4096 Nov 24 1993 ..
drwxrwxrwx 32 root root 4096 Dec 5 00:04 Documentation
-rwxrwxrwx 1 root root 48066 Feb 18 2004 MAINTAINERS
-rwxrwxrwx 1 root root 19064 Feb 18 2004 Makefile
-rwxrwxrwx 1 root root 2818 Jun 13 2003 REPORTING-BUGS
-rwxrwxrwx 1 root root 9325 Feb 18 2004 Rules.make
drwxrwxrwx 20 root root 4096 Dec 4 23:57 arch
-rwxrwxrwx 1 root root 18691 Aug 2 2002 copying
-rwxrwxrwx 1 root root 82295 Feb 18 2004 credits
drwxrwxrwx 2 root root 4096 Dec 4 23:41 crypto
drwxrwxrwx 40 root root 4096 Dec 4 23:50 drivers
drwxrwxrwx 48 root root 4096 Dec 4 23:41 fs
drwxrwxrwx 28 root root 4096 Dec 4 23:43 include
drwxrwxrwx 2 root root 4096 Dec 4 23:43 init
drwxrwxrwx 2 root root 4096 Dec 4 23:50 ipc
drwxrwxrwx 2 root root 4096 Dec 4 23:43 kernel
drwxrwxrwx 4 root root 4096 Dec 4 23:43 lib
drwxrwxrwx 2 root root 4096 Dec 4 23:43 mm
drwxrwxrwx 29 root root 4096 Dec 4 23:49 net
-rwxrwxrwx 1 root root 14287 Aug 25 2003 readme
drwxrwxrwx 4 root root 4096 Dec 5 00:04 scripts
 
Old 12-07-2004, 07:02 AM   #17
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
that sure looks like a kernel-tree.
now look at the output of : ls -l /lib/modules/2.4.25/build
that should be a link to the kerneltree--->/usr/src/linux ?

egag
 
Old 12-11-2004, 06:45 PM   #18
starionwolf
Member
 
Registered: Nov 2004
Location: Washington D.C., USA
Distribution: S.u.S.E, Ubantu, Puppy
Posts: 47

Original Poster
Rep: Reputation: 15
Here's the output of "ls -l /lib/modules/2.4.25/build". I don't know what it means though:

lrwxrwxrwx 1 root root 21 Apr 4 2004 /lib/modules/2.4.25/build -> /usr/src/linux-2.4.25
 
Old 12-11-2004, 06:54 PM   #19
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
then just do a " # mv /usr/src/linux /usr/src/linux-2.4.25 "
i think that works.

egag
 
Old 12-11-2004, 07:02 PM   #20
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
......and for anyone who still thinks the "/usr/src/linux"-link is needed, read this.

http://uwsg.iu.edu/hypermail/linux/k...07.3/0587.html

egag
 
Old 12-11-2004, 07:06 PM   #21
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
A-HA!

That is a symlink, but it is broken.

There is no /usr/src/linux-2.4.25 in the /usr/src folder, if the previous information is accurate-- the source tree is directly in /usr/src/linux.

You have two choices, if I am correct.

You can adjust the symlink to conform to your current sourcetree, or you can adjust your sourcetree so that it conforms to the symlink.

To adjust the symlink (leaving your sourcetree as it is):

1) open a terminal

2) su to root

3) type mc to open the Midnight Commander file manager.

4) browse to /lib/modules/2.4.25/

5) select the "build" item.

6) Click on the File menu at the top of the MC screen and choose "edit sYmlink"

7) in the resulting dialog, change the symlink target to read /usr/src/linux.

8) exit MC and try the compile again.


To change your sourcetree to conform to the current symlink target:

1) Open any file manager as root (meaning if KDE, use Konqueror file manager (Super User Mode), or open a terminal, su to root and type the name of any file manager you might normally use) and browse to /usr/src.

2) rename the current "linux" directory to "linux-2.4.25".

3) symlink linux-2.4.25 to a symlink called "linux" using the command

ln -s /usr/src/linux-2.4.25 /usr/src/linux

4) close the file manager and try the compile again.

Hope this helps.
 
Old 12-26-2004, 11:06 PM   #22
starionwolf
Member
 
Registered: Nov 2004
Location: Washington D.C., USA
Distribution: S.u.S.E, Ubantu, Puppy
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for the suggestions everyone. I'll try them after I download the Alsa drivers again. I think I forgot to download a the lib and oss-lib archives.

I forgot how to extract the tar file from the bz2 and how to untar the file.

I think I need to use bunzip2 *.bz2 then tar xvzf *.tar

I don't think I have midnight commander installed because the command "MC" doesn't work. Any suggestions? I can access a shell window from Window Maker though.

Thanks for being so patient with me.

Last edited by starionwolf; 12-26-2004 at 11:08 PM.
 
Old 12-27-2004, 07:30 AM   #23
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
for the tar.bz2-arch.'s ; use: " $tar xvjf <filename>.tar.bz2 "

and you don't really need MC, you can rename the kernel-source with:

" #mv /usr/src/linux /usr/src/linux-2.4.25 "

then you should be able to compile.

egag
 
Old 02-18-2005, 12:11 PM   #24
starionwolf
Member
 
Registered: Nov 2004
Location: Washington D.C., USA
Distribution: S.u.S.E, Ubantu, Puppy
Posts: 47

Original Poster
Rep: Reputation: 15
Hi! Sorry for not replying in a while. I had to fix my computer and reinstall Amigo Linux / Slackware 9. I'm halfway finished. After Linux is running, I'll try to follow these directions and compile the sources again.

Thanks for all your help everyone.
 
  


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
ALSA compile problem Ziggydisturbed Linux - Software 3 07-25-2005 02:53 PM
Can't compile Alsa under Slack 10.0 ProtoformX Slackware 8 11-28-2004 04:30 AM
Can't Compile ALSA Drivers AFI_Flame Linux - General 3 07-01-2004 02:59 PM
Do We Have to Compile ALSA As a Module? johnleemk Linux - Hardware 1 02-04-2004 01:06 PM
compile alsa 0.5.12a under RH 8.0 ? null_mind Linux - Hardware 0 01-01-2003 09:07 PM

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

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