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 12-20-2003, 12:27 AM   #1
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Rep: Reputation: 30
Unable to install lm_sensors 2.8.2


Code:
kcc -M -MG  -DMODVERSIONS -include /lib/modules/2.4.23.2-fzx/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/include  -I/lib/modules/2.4.23.2-fzx/build/include -nostdinc -I /opt/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include  -Wall -O2  kernel/busses/i2c-ali1535.c | \
        sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-ali1535.d kernel/busses/i2c-ali1535.o: Makefile '`dirname kernel/busses/i2c-ali1535.d`/Module.mk' @' > kernel/busses/i2c-ali1535.d
kcc -M -MG  -DMODVERSIONS -include /lib/modules/2.4.23.2-fzx/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/include  -I/lib/modules/2.4.23.2-fzx/build/include -nostdinc -I /opt/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include  -Wall -O2  kernel/busses/i2c-nforce2.c | \
        sed -e 's@^\(.*\)\.o:@kernel/busses/i2c-nforce2.d kernel/busses/i2c-nforce2.o: Makefile '`dirname kernel/busses/i2c-nforce2.d`/Module.mk' @' > kernel/busses/i2c-nforce2.d
cat kernel/include/sensors.h.template > kernel/include/sensors.h
awk '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' kernel/chips/*.c >> kernel/include/sensors.h
echo '#endif' >> kernel/include/sensors.h
kcc -M -MG -I. -Ikernel/include -I/usr/include  -Wall -O2  prog/sensors/chips.c | \
        sed -e 's@^\(.*\)\.o:@prog/sensors/chips.rd prog/sensors/chips.ro: Makefile '`dirname prog/sensors/chips.rd`/Module.mk' @' > prog/sensors/chips.rd
kcc -M -MG -I. -Ikernel/include -I/usr/include  -Wall -O2  lib/proc.c | \
        sed -e 's@^\(.*\)\.o:@lib/proc.ad lib/proc.ao: Makefile '`dirname lib/proc.ad`/Module.mk' @' > lib/proc.ad
kcc -M -MG -I. -Ikernel/include -I/usr/include  -Wall -O2  lib/chips.c | \
        sed -e 's@^\(.*\)\.o:@lib/chips.ad lib/chips.ao: Makefile '`dirname lib/chips.ad`/Module.mk' @' > lib/chips.ad
kcc -M -MG -I. -Ikernel/include -I/usr/include  -fpic -Wall -O2  lib/proc.c | \
        sed -e 's@^\(.*\)\.o:@lib/proc.ld lib/proc.lo: Makefile '`dirname lib/proc.ld`/Module.mk' @' > lib/proc.ld
kcc -M -MG -I. -Ikernel/include -I/usr/include  -fpic -Wall -O2  lib/chips.c | \
        sed -e 's@^\(.*\)\.o:@lib/chips.ld lib/chips.lo: Makefile '`dirname lib/chips.ld`/Module.mk' @' > lib/chips.ld
kcc  -DMODVERSIONS -include /lib/modules/2.4.23.2-fzx/build/include/linux/modversions.h -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/include  -I/lib/modules/2.4.23.2-fzx/build/include -nostdinc -I /opt/gcc-2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include  -Wall -O2  -c kernel/busses/i2c-nforce2.c -o kernel/busses/i2c-nforce2.o
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/module.h:12,
                 from kernel/busses/i2c-nforce2.c:34:
/usr/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:56: requested alignment is not a constant
In file included from /usr/include/linux/rwsem.h:29,
                 from /usr/include/asm/semaphore.h:42,
                 from /usr/include/linux/fs.h:200,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:9,
                 from /usr/include/linux/mm.h:4,
                 from /usr/include/linux/slab.h:14,
                 from /usr/include/asm/pci.h:37,
                 from /usr/include/linux/pci.h:654,
                 from kernel/busses/i2c-nforce2.c:35:
/usr/include/asm/rwsem.h: In function `__down_write_trylock':
/usr/include/asm/rwsem.h:176: warning: implicit declaration of function `cmpxchg'
make: *** [kernel/busses/i2c-nforce2.o] Error 1
Note: the command 'kcc' above is merely short for kernel-cc, which is just an alias to gcc 2.95 in the /opt dir.

Basically, I unpacked linux-2.4.23, compiled it, copied the image, system.map over, etc, etc. I made sure i2c was not enabled in the kernel. I then compiled i2c 2.8.2 without any problems (using gcc 2.95 again for modules).

Then, I've been trying to get lm_sensors to compile for several days now. I keep getting this same error. You'd think I'd simply hack the make file so it would skip over this driver (since it might not even be needed, though, my board is Nforce2...). I tried to skip it, and it did skip it. But it errored the same error on the next iteration.

Regardless...I have no idea what to do. Any help is appreciated. Thanks.
 
Old 12-20-2003, 02:26 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
When you want those sensors you have to build in i2c and the isa bus. It has to have both. If you can't find it, I think it is under character devices or something, let me know. I can maybe get gentoo to run long enough to find it. It locks up on me OK. I'm working on it. Get off my back about it.

I like my Gentoo, I just can't never get it "just right". Always something. It's just like women, nice to have around when things are good but if something is wrong, throw them out.

Yep, I'm single. You do the math on that one. I'm busy.

Later



My hummor is going to get me in trouble tonight. Flu is better though.
 
Old 12-20-2003, 02:34 PM   #3
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Original Poster
Rep: Reputation: 30
O_o.... ok.


Code:
[root@FRoZiX /usr/src/linux]# cat .config | grep ISA
# CONFIG_X86_TSC_DISABLE is not set
CONFIG_ISA=y
# CONFIG_EISA is not set
# CONFIG_ISAPNP is not set
# CONFIG_BLK_DEV_ISAPNP is not set
# CONFIG_NET_ISA is not set
Before doing that, I found the ISA bus support in the General Setup of the menuconfig. It is already selected.
 
Old 12-21-2003, 05:33 PM   #4
fr0zen
Member
 
Registered: Nov 2003
Location: 127.0.0.1
Distribution: xubuntu
Posts: 217

Original Poster
Rep: Reputation: 30
Still isn't working. What's odd is on my MDK install, I can simply use the lm_sensors that is on the CD and it works just fine.
 
Old 12-21-2003, 07:40 PM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
But the 2.6 kernel works differently. Gkrellm works differently too.

I'm about to restart my Gentoo and will post the config file when I get mine working. You should be able to use it as a guide.

Later

 
  


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
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 06:40 PM
Unable to Install :( Deadly Dude Fedora - Installation 5 08-29-2004 12:30 AM
lm_sensors and i2c install help Giallo998 Linux - Software 0 11-08-2003 12:16 AM
lm_sensors install problem. nidua18 Linux - Software 1 10-18-2003 01:58 PM
lm_sensors - help with install? clemensp Linux - Hardware 0 08-09-2003 06:07 AM

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

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