LinuxQuestions.org
Visit Jeremy's Blog.
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 03-24-2003, 09:46 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Slack 9 "k" tree


I just installed slack 9 from the iso. The new iso doesn't have the kernel source installed so i downloaded the 2.4.20 kernel source-no arch from the "k" tree figuring that was what i needed. It came will a few folders and had a file in /install/doinst.sh

Here is what that file has

( cd usr/src/linux-2.4.20/include ; rm -rf asm )
( cd usr/src/linux-2.4.20/include ; ln -sf asm-i386 asm )
( cd usr/src ; rm -rf linux )
( cd usr/src ; ln -sf linux-2.4.20 linux )


Why is this needed?? can't i just take the actuall 2.4.20 directory and throw it in /usr/src, make a symlink and be done??

Also what does no-arch mean??

-thanks


EDIT: Well, just realized its a darn package, lol.....i never deal with these so completely overlooked that.

Last edited by wr3ck3d; 03-24-2003 at 10:33 PM.
 
Old 03-24-2003, 10:38 PM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
The doinst.sh script is the install script for the Slack package program; pkgtool. Run the program "pkgtool" from the directory where you downloaded the kernel package. then select to install from current directory. When the package is displayed on the list select to install it.

The "no-arch" indicates that the package has not been compiled for a particular architecture. It would be difficult for it to be compiled since it is a source file. But that is why they include the "no-arch" in the filename. Once a package is compiled then it will state what architecture the package was built for.
 
Old 03-25-2003, 01:35 AM   #3
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
ok, now that i got the kernel in i was going to install all the programs that use modules.....having a problem with i2c-2.7.0 and lm_sensors2.7.0.......... i2c installs fine, i run the depmod -a, move on to lm_sensors and run the make

lude -I/usr/local/include -I/lib/modules/2.4.20/build/include -O2 -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required!

But i just installed 2.7.0!!!!

Now i have installed this multiple times with the stock 8.1 (2.4.18) kernel and even installled it with the 2.4.20 kernel in 8.1....got this error with the stock 2.4.20 slack 9 kernel......then i tried something else, i extracted the 2.4.20-no-arch kernel, grabbed the config from the stock 2.4.18 kernel from 8.1, ran a 'make oldconfig' recompiled, installed the kernel. Same error, Basically i was trying to retrace my steps from when i got it to work with the 2.4.20 kernel in 8.1, the only difference is this kernel is from the slacware tree and may be different??? I am about to start to download a regular 2.4.20 kernel but won't get around to compiling it until tomorrow afternoon so maybe someone can help by then so i can just stick with this kernel. -thanks

PS, sorry if this sounds confusing...

Last edited by wr3ck3d; 03-25-2003 at 01:36 AM.
 
Old 03-25-2003, 11:18 AM   #4
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
Ok, i have tried every possibility of kernels.....still getting that error...here is the whole thing from lm_sensors when i do a 'make'


gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/inc
lude -I/usr/local/include -I/lib/modules/2.4.20/build/include -O2 -c kernel/
busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or grea
ter required!
kernel/busses/i2c-amd8111.c: In function `amd8111_access':
kernel/busses/i2c-amd8111.c:238: `I2C_CLIENT_PEC' undeclared (first use in this
function)
kernel/busses/i2c-amd8111.c:238: (Each undeclared identifier is reported only on
ce
kernel/busses/i2c-amd8111.c:238: for each function it appears in.)
kernel/busses/i2c-amd8111.c:298: `I2C_SMBUS_BLOCK_PROC_CALL' undeclared (first u
se in this function)
kernel/busses/i2c-amd8111.c:309: `I2C_SMBUS_WORD_DATA_PEC' undeclared (first use
in this function)
kernel/busses/i2c-amd8111.c:310: `I2C_SMBUS_BLOCK_DATA_PEC' undeclared (first us
e in this function)
kernel/busses/i2c-amd8111.c:311: `I2C_SMBUS_PROC_CALL_PEC' undeclared (first use
in this function)
kernel/busses/i2c-amd8111.c:312: `I2C_SMBUS_BLOCK_PROC_CALL_PEC' undeclared (fir
st use in this function)
kernel/busses/i2c-amd8111.c: In function `amd8111_func':
kernel/busses/i2c-amd8111.c:385: `I2C_FUNC_SMBUS_BLOCK_PROC_CALL' undeclared (fi
rst use in this function)
kernel/busses/i2c-amd8111.c:386: `I2C_FUNC_SMBUS_HWPEC_CALC' undeclared (first u
se in this function)
kernel/busses/i2c-amd8111.c: In function `amd8111_probe':
kernel/busses/i2c-amd8111.c:426: `I2C_HW_SMBUS_AMD8111' undeclared (first use in
this function)
make: *** [kernel/busses/i2c-amd8111.o] Error 1


Hopefully someone can help me out -thanks
 
Old 03-25-2003, 11:32 PM   #5
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Original Poster
Rep: Reputation: 31
It was a problem with the new gcc...here is the fix because someone is bound to bump into this soon http://www2.lm-sensors.nu/~lm78/read...gi?ticket=1189
 
  


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
What does "Enter the new package tree limit" mean? BrianK Ubuntu 4 08-20-2019 01:34 PM
Linux equivalent to DOS "tree" command? XDude Linux - Newbie 10 09-25-2014 12:24 PM
how to use "touch" for a hole file tree mandavi Linux - General 11 07-05-2005 05:16 AM
Print a "Nice" Tree in C++ Hady Programming 3 02-21-2005 03:49 AM
strange group and user set to "573" in linux-2.4.27 tree structure xround Linux - General 2 10-12-2004 11:09 AM

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

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