[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Lm-sensors y kernel 2.6.3



Gracias, era eso, ahora ya funcionan perfectamente ;)

El Jueves, 18 de Marzo de 2004 05:13, Fernando Flores escribió:
> El mié, 17-03-2004 a las 07:16, SmasSive escribió:
> > Hola lista, veréis, tengo un problema al intentar instalar los
> > lm-sensors, más concretamente cuando intento instalar las sources de i2c.
> > Me he bajado la última versión de los sources de la página de lm-sensors,
> > ya que los que tengo en el apt están algo desfasados, pues bien, esto es
> > lo que hago:
> >
> > 1.- Copio el tar.gz en /usr/src
> > 2.- Descomprimo y entro en el directorio
> > 3.- Hago un make y aquí se queda, dándome el siguiente error:
> >
> > #### Últimas lineas del make ####
> >
> > gcc -I/lib/modules/2.6.3-ck2/build/include -nostdinc
> > -I /usr/lib/gcc-lib/i486-linux/3.3.3/include -Wall -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
> > /lib/modules/2.6.3-ck2/build/include/asm/processor.h:18, from
> > /lib/modules/2.6.3-ck2/build/include/asm/thread_info.h:13, from
> > /lib/modules/2.6.3-ck2/build/include/linux/thread_info.h:21, from
> > /lib/modules/2.6.3-ck2/build/include/linux/spinlock.h:12, from
> > /lib/modules/2.6.3-ck2/build/include/linux/capability.h:45, from
> > /lib/modules/2.6.3-ck2/build/include/linux/sched.h:7, from
> > /lib/modules/2.6.3-ck2/build/include/linux/module.h:10, from
> > kernel/i2c-core.c:26:
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h: En la función
> > `__set_64bit_var':
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h:193: aviso:
> > dereferencing type-punned pointer will break strict-aliasing rules
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h:193: aviso:
> > dereferencing type-punned pointer will break strict-aliasing rules
> > kernel/i2c-core.c: En la función `i2c_inc_use_client':
> > kernel/i2c-core.c:395: aviso: implicit declaration of function
> > `__MOD_INC_USE_COUNT'
> > kernel/i2c-core.c: En la función `i2c_dec_use_client':
> > kernel/i2c-core.c:403: aviso: implicit declaration of function
> > `__MOD_DEC_USE_COUNT'
> > gcc -I/lib/modules/2.6.3-ck2/build/include -nostdinc
> > -I /usr/lib/gcc-lib/i486-linux/3.3.3/include -Wall -O2 -DLM_SENSORS
> > -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -c
> > kernel/i2c-dev.c -o kernel/i2c-dev.o
> > In file included from
> > /lib/modules/2.6.3-ck2/build/include/asm/processor.h:18, from
> > /lib/modules/2.6.3-ck2/build/include/asm/thread_info.h:13, from
> > /lib/modules/2.6.3-ck2/build/include/linux/thread_info.h:21, from
> > /lib/modules/2.6.3-ck2/build/include/linux/spinlock.h:12, from
> > /lib/modules/2.6.3-ck2/build/include/linux/capability.h:45, from
> > /lib/modules/2.6.3-ck2/build/include/linux/sched.h:7, from
> > /lib/modules/2.6.3-ck2/build/include/linux/module.h:10, from
> > kernel/i2c-dev.c:34:
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h: En la función
> > `__set_64bit_var':
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h:193: aviso:
> > dereferencing type-punned pointer will break strict-aliasing rules
> > /lib/modules/2.6.3-ck2/build/include/asm/system.h:193: aviso:
> > dereferencing type-punned pointer will break strict-aliasing rules
> > kernel/i2c-dev.c: En el nivel principal:
> > kernel/i2c-dev.c:81: error: error de decodificación before "devfs_i2c"
> > kernel/i2c-dev.c:81: aviso: type defaults to `int' in declaration of
> > `devfs_i2c'
> > kernel/i2c-dev.c:81: aviso: data definition has no type or storage class
> > kernel/i2c-dev.c:82: error: error de decodificación before "devfs_handle"
> > kernel/i2c-dev.c:82: aviso: type defaults to `int' in declaration of
> > `devfs_handle'
> > kernel/i2c-dev.c:82: aviso: inicialización se crea un entero desde un
> > puntero sin una conversión
> > kernel/i2c-dev.c:82: aviso: data definition has no type or storage class
> > kernel/i2c-dev.c: En la función `i2cdev_open':
> > kernel/i2c-dev.c:377: error: called object is not a function
> > kernel/i2c-dev.c:399: aviso: implicit declaration of function
> > `__MOD_INC_USE_COUNT'
> > kernel/i2c-dev.c: En la función `i2cdev_release':
> > kernel/i2c-dev.c:417: aviso: implicit declaration of function
> > `__MOD_DEC_USE_COUNT'
> > kernel/i2c-dev.c: En la función `i2cdev_attach_adapter':
> > kernel/i2c-dev.c:443: aviso: implicit declaration of function
> > `devfs_register' kernel/i2c-dev.c:444: error: `DEVFS_FL_DEFAULT'
> > undeclared (first use in this function)
> > kernel/i2c-dev.c:444: error: (Each undeclared identifier is reported only
> > once kernel/i2c-dev.c:444: error: for each function it appears in.)
> > kernel/i2c-dev.c:452: aviso: implicit declaration of function
> > `devfs_unregister'
> > kernel/i2c-dev.c: En la función `i2c_dev_init':
> > kernel/i2c-dev.c:481: aviso: implicit declaration of function
> > `devfs_register_chrdev'
> > kernel/i2c-dev.c:490: aviso: demasiados argumentos para el formato
> > kernel/i2c-dev.c: En el nivel principal:
> > kernel/i2c-dev.c:512: aviso: type defaults to `int' in declaration of
> > `EXPORT_NO_SYMBOLS'
> > kernel/i2c-dev.c:512: aviso: data definition has no type or storage class
> > make: *** [kernel/i2c-dev.o] Error 1
> >
> > #### Final del make ####
> >
> > Alguien podria decirme que es lo que pasa? me falta algo?
> >
> > Gracias ;)
>
> Leiste la informacion en la pagina de lm-sensors?
> http://secure.netroedge.com/~lm78/kernel26.html
> No necesitas compilar el source i2c, de hecho no compilaran
> usa el i2c y los modulos para los sensores que viene con el kernel e
> instala el paquete de debian(sid) que hace poco lo pusieron al dia, si
> tienes suerte los drivers necesarios para tu hardware puede estar ya
> disponible... igual puedes revisar
> http://secure.netroedge.com/~lm78/supported.html aqui para ver el estado
> de los drivers.



Reply to: