Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lm-sensors compile error with 2.4.21 release kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ascompltd
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2002
Posts: 113
Location: UK

PostPosted: Sat Jun 21, 2003 4:38 am    Post subject: lm-sensors compile error with 2.4.21 release kernel Reply with quote

Hi Guys

I am having a strange problem with lm-sensors post migration to vanilla-sources 2.4.21 upgrade. I had lm-sensors working with 2.4.20r5 but get a strange compile error with the new kernel.

!!! ERROR: sys-apps/lm-sensors-2.7.0-r1 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! lm_sensors requires the source of a compatible kernel\nversion installed in /usr/src/linux and >=i2c-2.7.0 support built as a modules this support is included in gentoo-sources as of 2.4.20-r1

I checked the forums for a clue and one post suggested needing to replace i2c headers in /usr/include/linux but the version number in those files appear to suggest that they are already at 2.7.0 so I shouldn't need to do this.

I definitely have i2c as modules in my kernel output from lsmod

genlinux root # lsmod
Module Size Used by Tainted: P
i2c-proc 7280 0
i2c-core 13604 0 [i2c-proc]
printer 7488 0
nvidia 1541984 10
sr_mod 14392 0
cdrom 29600 0 [sr_mod]
sg 28428 0 (unused)
ide-scsi 10512 0

Any clues :? would be much appreciated as this is driving me mad. :!:
Back to top
View user's profile Send private message
Mafteah
Apprentice
Apprentice


Joined: 30 May 2003
Posts: 265
Location: IL

PostPosted: Sat Jun 21, 2003 7:09 am    Post subject: Reply with quote

i think you must use the 2.4.20 for the sensors
go back to the 2.4.20
or wait to a patch for the 2.4.20
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Sun Jun 22, 2003 11:28 am    Post subject: Reply with quote

Had some probleems too:
I emerged i2c-2.7.0 (should not be necessary, really) and lm_sensors,
and had a look at https://bugs.gentoo.org/show_bug.cgi?id=16847

This fixed the problem.
Back to top
View user's profile Send private message
alexbuell
Guru
Guru


Joined: 18 Jul 2002
Posts: 490
Location: "Hemp"shire, UK

PostPosted: Mon Jun 23, 2003 9:57 am    Post subject: Reply with quote

AlterEgo wrote:
Had some probleems too:
I emerged i2c-2.7.0 (should not be necessary, really) and lm_sensors,
and had a look at https://bugs.gentoo.org/show_bug.cgi?id=16847

This fixed the problem.


If you look at the bug report, you'll see that I've posted an alternative - much less painful it is.
_________________
Cheers,
Alex.

Linux - the best text adventure game ever.
Back to top
View user's profile Send private message
duffolonious
n00b
n00b


Joined: 04 Apr 2003
Posts: 34

PostPosted: Fri Jul 25, 2003 7:04 pm    Post subject: emerging lm-sensors Reply with quote

Thanks alex. I wonder why these headers were not updated. I'm using the 2.4.20-pre4 (pfeifer sources). And this fix worked.

More to the point, here's the bug fix, without having to scour bugzilla.

Alex's bug fix:
Quote:

Alternatively, try this:

cd /usr/include
# move 2.4.19 headers out of the way
mv asm asm.old
mv linux linux.old
# put our kernel headers in the way
ln -sf /usr/src/linux/include/asm .
ln -sf /usr/src/linux/include/linux .
emerge i2c
emerge lm-sensors

And it should work.


Now I can finally see the temp during a full load. Time to see how much I can oc this k6-2.

Thanks again.
_________________
~Duff
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum