LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2003, 06:58 PM   #1
malvu
LQ Newbie
 
Registered: Jan 2002
Posts: 6

Rep: Reputation: 0
lm_sensors help


Hello all

I have seen simular posts for what i am asking but I couldnt understand the one fix they had

I have a:


SMP 2 AMD 2000+
Tyan tiger mpx mobo
512 PC 2100 kingston ddr ecc
geforce 3 rev. 3a
sound blaster live value
3c59* linksys 10/100 E


This is the error I receive when trying to compile lm_sensors:

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

This is untarred 2.7.0 from the site strait from the archive. No changes have been made, I did not build modules for i2c in the kernel which if i read correctly says its ok not to build the modules and that you must to use the new 2.7.0 from the site anyway.

here is the link lmsensor question asking about this problem in the forum.

this link is to a proposed fix, but I dont understand it.

posted fix

Anyone know how to fix this problem I cant seem to figure it out.

thank you
 
Old 05-03-2003, 07:05 PM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
that fix in the last part of the page is a patch to the
makefile

# diff -u Makefile.orig Makefile
--- Makefile.orig 2003-03-19 18:20:38.000000000 +0100
+++ Makefile 2003-03-19 18:21:08.000000000 +0100
@@ -178,7 +178,7 @@
# PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are
linked into executables).
# ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries).
# LIBCPPFLAGS/LIBCFLAGS are for shared library objects.
-ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS)
+ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS)
ALL_CFLAGS := -O2

ifeq ($(DEBUG),1)

you are supposed to save that text as a file, and
patch something with it.
i can't tell if it is a kernel patch or a lm_sensors
patch, but i would guess it's for lm_sensors.
 
Old 05-03-2003, 07:17 PM   #3
malvu
LQ Newbie
 
Registered: Jan 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Do I copy the whole text from #diff to the end or just the first 4 lines , last 4 lines? I dont know what to copy. And thank you for the help I was kinda understanding it was a patch to something but I didnt know how to use it. hehe
 
Old 05-03-2003, 09:11 PM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
the whole thing.
 
Old 05-03-2003, 10:49 PM   #5
malvu
LQ Newbie
 
Registered: Jan 2002
Posts: 6

Original Poster
Rep: Reputation: 0
I have got the lm_sensors to compile makeing a patch file and installing with patch -p1 Makefile.orig Makefile, have no idea what -p1 did but I seen it used somewhere.

when i run sensors-detect it cant locate any of my modules either when I use modprobe, out put is:

modprobe: Can't locate module i2c-amd756

. i located it manually in where I suppose its supposed to be /lib/modules/2.4.20/kernel/drivers/i2c/ the module needed is i2c-amd756 which is located in the directory I listed?
Anyone know why?
 
Old 05-04-2003, 01:25 AM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
aren't there 2 or 3 packages you have to install for
sensors? an i2c package?
and maybe run depmod -a
 
Old 05-04-2003, 01:43 AM   #7
malvu
LQ Newbie
 
Registered: Jan 2002
Posts: 6

Original Poster
Rep: Reputation: 0
nice!! finally got it working depmod -a was a command needed.
I appologize due to my lack of paying attention and reading everything, and finding iportant information on the lm site, I overlooked the answers.

Another newbie not looking hard enough.

for anyone else who may be having probs with the Tyan tiger 760 boards check here, you most likely will find the fix

lm faq

and read carfully, unlike me

thanks for your patients
 
Old 05-04-2003, 08:13 AM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
goodly. i'm glad to see my patients were of some use.
 
  


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
lm_sensors Joey.Dale Linux - Software 14 01-24-2004 04:44 PM
lm_sensors Joey.Dale Slackware 3 12-23-2003 03:04 PM
How do I use lm_sensors? Kramer Linux - Hardware 13 11-15-2003 08:05 PM
lm_sensors CanadianPenguin Linux - Software 5 10-26-2003 02:13 PM
Trying to use lm_sensors... Kramer Linux - Hardware 5 10-10-2003 09:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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