LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I can't compile neither i2c neither lm-sensors (https://www.linuxquestions.org/questions/linux-software-2/i-cant-compile-neither-i2c-neither-lm-sensors-175599/)

Ragnarol 04-28-2004 02:08 PM

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,

Ragnarol 04-29-2004 06:00 PM

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 :confused:

Thanks anyway...

---
Ragna


All times are GMT -5. The time now is 05:20 PM.