All of lore.kernel.org
 help / color / mirror / Atom feed
* i2c-2.7.0 compile errors... right place to ask?
@ 2005-05-19  6:24 Kris Jones
  2005-05-19  6:24 ` Kris Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kris Jones @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

I've been trying to get lm_sensors to work for several days now, but I'm 
having the hardest time getting i2c to compile.

I looked for a support forum mailing list or web-address, but this was about 
the only one I found. Is this the right place to ask some questions about 
compiling i2c?

Thanks!

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?pageþatures/junkmail

^ permalink raw reply	[flat|nested] 4+ messages in thread

* i2c-2.7.0 compile errors... right place to ask?
  2005-05-19  6:24 i2c-2.7.0 compile errors... right place to ask? Kris Jones
  2005-05-19  6:24 ` Kris Jones
@ 2005-05-19  6:24 ` Mark D. Studebaker 
  2005-05-19  6:24 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Mark D. Studebaker  @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors



Kris Jones wrote:
> I've been trying to get lm_sensors to work for several days now, but I'm 
> having the hardest time getting i2c to compile.
> 
> I looked for a support forum mailing list or web-address, but this was 
> about the only one I found. Is this the right place to ask some 
> questions about compiling i2c?
> 


yes. what's the problem?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* i2c-2.7.0 compile errors... right place to ask?
  2005-05-19  6:24 i2c-2.7.0 compile errors... right place to ask? Kris Jones
@ 2005-05-19  6:24 ` Kris Jones
  2005-05-19  6:24 ` Mark D. Studebaker 
  2005-05-19  6:24 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Kris Jones @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

First off, I am a novice at kernel-related stuff, I've only compiled one a 
few times, and that was with lots of help, and I've never done anything with 
modules.

So I was attempting this compile on a RH 8.0 box, but I ran up2date and 
updated the kernel, so I don't think the source matches. I think that 
might've been the cause of the problems on that one.

So I switched to a different box running RH 7.3, and I'm still getting 
errors, but they seem to be a bit more rational. I believe it has something 
to do with where the headers are installed, but I'm at a loss...

I'm running kernel 2.4.18-10 on it, and I downloaded the source from 
ftp.kernel.org, gunzipped it and untarred it in /usr/src, so all the source 
is located in /usr/src/linux.

I don't know what I should be doing to the kernel source from there, or if I 
should be doing anything at all. I did a "make clean" there, but that's all.

So I go to the i2c source dir and do a "make clean" and then a "make 
install" and I get this:
gcc -I/lib/modules/2.4.18-10/build/include -O2 -DLM_SENSORS -D__KERNEL__ 
-DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -c kernel/i2c-core.c -o 
kernel/i2c-core.o
In file included from /usr/include/linux/module.h:20, from 
kernel/i2c-core.c:26:
/usr/include/linux/modversions.h:1:2: #error Modules should never use 
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an 
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include 
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname 
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the 
currently-running kernel.
kernel/i2c-core.c:43:25: asm/uaccess.h: No such file or directory
make: *** [kernel/i2c-core.o] Error 1

I looked at the paths in the Makefile, but they seem ok set to default.

Also, how do I know if i2c support is compiled into my kernel?

Thanks!
>From: "Mark D. Studebaker " <mds@paradyne.com>
>Reply-To: LM Sensors <sensors@stimpy.netroedge.com>
>To: Kris Jones <shiny_razor@hotmail.com>
>CC: LM Sensors <sensors@stimpy.netroedge.com>
>Subject: Re: i2c-2.7.0 compile errors... right place to ask?
>Date: Sat, 21 Jun 2003 12:31:05 -0400
>
>
>
>Kris Jones wrote:
>>I've been trying to get lm_sensors to work for several days now, but I'm 
>>having the hardest time getting i2c to compile.
>>
>>I looked for a support forum mailing list or web-address, but this was 
>>about the only one I found. Is this the right place to ask some questions 
>>about compiling i2c?
>>
>
>
>yes. what's the problem?
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?pageþatures/virus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* i2c-2.7.0 compile errors... right place to ask?
  2005-05-19  6:24 i2c-2.7.0 compile errors... right place to ask? Kris Jones
  2005-05-19  6:24 ` Kris Jones
  2005-05-19  6:24 ` Mark D. Studebaker 
@ 2005-05-19  6:24 ` Jean Delvare
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> First off, I am a novice at kernel-related stuff, I've only compiled
> one a few times, and that was with lots of help, and I've never done
> anything with modules.

In this case, trying to install i2c and lm_sensors2 from sources is
*not* what you want to do. Look for packages from Red Hat instead. I
don't know if they are directly on the distribution disks or if you need
to use up2date or another tool to grab them. I think that "up2date
lm_sensors" should download and install everything needed, however.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-19  6:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 i2c-2.7.0 compile errors... right place to ask? Kris Jones
2005-05-19  6:24 ` Kris Jones
2005-05-19  6:24 ` Mark D. Studebaker 
2005-05-19  6:24 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.