LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-28-2004, 02:08 PM   #1
Ragnarol
LQ Newbie
 
Registered: Aug 2003
Location: Spain
Distribution: Suse Linux 8.2 Pro
Posts: 2

Rep: Reputation: 0
I can't compile neither i2c neither lm-sensors


Hi guys,

I've a problem compiling i2c, and the same problem with lm-sensors. The make output is this one (i only include the last part with the error):

----------------------------------------------------------------------------

juan@linux:/almacen/Drivers/i2c/i2c-2.8.4> make
gcc -DMODVERSIONS -include /lib/modules/2.4.21-202-athlon/build/include/linux/mo
dversions.h -I/lib/modules/2.4.21-202-athlon/build/include -nostdinc -I /usr/lib /gcc-lib/i586-suse-linux/3.3.1/include -Wall -O2 -DLM_SENSORS -D__KERNEL__ -DMOD ULE -fomit-frame-pointer -DEXPORT_SYMTAB -c kernel/i2c-philips-par.c -o kernel/i 2c-philips-par.o
In file included from /lib/modules/2.4.21-202-athlon/build/include/linux/list.h: 3,
from /lib/modules/2.4.21-202-athlon/build/include/linux/module. h:12,
from kernel/i2c-philips-par.c:28:
/lib/modules/2.4.21-202-athlon/build/include/asm/system.h: En la función `__set_ 64bit_var':
/lib/modules/2.4.21-202-athlon/build/include/asm/system.h:189: aviso: dereferenc ing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.21-202-athlon/build/include/asm/system.h:189: aviso: dereferenc ing type-punned pointer will break strict-aliasing rules
kernel/i2c-philips-par.c: En el nivel principal:
kernel/i2c-philips-par.c:142: error: el elemento inicializador no es constante
kernel/i2c-philips-par.c:142: error: (near initialization for `bit_lp_data.timeo ut')
kernel/i2c-philips-par.c:151: error: el elemento inicializador no es constante
kernel/i2c-philips-par.c:151: error: (near initialization for `bit_lp_data2.time out')
make: *** [kernel/i2c-philips-par.o] Error 1

----------------------------------------------------

The error translation is something like: "error: the initialicer item isn't constant"

I'm using a Suse 9.0 with a 2.4 kernel. Someone knows what is wrong?

Thanks for all,
 
Old 04-29-2004, 06:00 PM   #2
Ragnarol
LQ Newbie
 
Registered: Aug 2003
Location: Spain
Distribution: Suse Linux 8.2 Pro
Posts: 2

Original Poster
Rep: Reputation: 0
I have fond the problem.

There's some problem with HZ macro, from <asm/param.h>. I have replaced all the HZ references with its numeric value (1000 in my asm/param.h) and i finally compiled i2c and lm-sensors.

Someone know why i have this problem???? It's a bit confusing

Thanks anyway...

---
Ragna

Last edited by Ragnarol; 04-29-2004 at 06:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Help, Can't access procfs/sysfs file Unable to find i2c bus information; Whiskers Linux - Software 16 11-03-2008 04:58 PM
i2c and lm_sensors, sensors-detect johnnydangerous Fedora 2 03-15-2005 04:28 PM
lm-sensors and i2c Klitscho Debian 9 01-20-2005 04:30 AM
lm sensors , i2c & 2.6.5 kernel Braveheart1980 Linux - General 11 04-17-2004 04:54 AM
Need Help Installing I2C & LM-Sensors CompEng Linux - Software 0 11-07-2003 01:11 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration