* lm_sensors compiled problem
@ 2005-05-19 6:25 Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Adrian Mariano @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
I'm trying to compile lm_sensors 2.8.7. I compiled and installed
i2c-2.8.7, and I am compiling against the kernel source for the
running kernel and the source tree is the one used to compile the
current kernel. However, it is a SuSE kernel, version 2.4.16, not one
of the pristine kernels from kernel.org.
I poked around briefly in the code to try to understand what is going
on, but basically I found that I was as confused as the compiler by
the code. My compiler is gcc 2.95.3.
adrian> make
gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.16/build/include -nostdinc -I /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -Wall -O2 -c kernel/busses/i2c-ali1535.c -o kernel/busses/i2c-ali1535.o
kernel/busses/i2c-ali1535.c:571: warning: implicit declaration of function `__devexit_p'
kernel/busses/i2c-ali1535.c:571: initializer element is not constant
kernel/busses/i2c-ali1535.c:571: (near initialization for `ali1535_driver.remove')
kernel/busses/i2c-ali1535.c:572: initializer element is not constant
kernel/busses/i2c-ali1535.c:572: (near initialization for `ali1535_driver')
make: *** [kernel/busses/i2c-ali1535.o] Error 1
^ permalink raw reply [flat|nested] 4+ messages in thread* lm_sensors compiled problem
2005-05-19 6:25 lm_sensors compiled problem Adrian Mariano
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
> I'm trying to compile lm_sensors 2.8.7. I compiled and installed
> i2c-2.8.7, and I am compiling against the kernel source for the
> running kernel and the source tree is the one used to compile the
> current kernel. However, it is a SuSE kernel, version 2.4.16, not one
> of the pristine kernels from kernel.org.
>
> I poked around briefly in the code to try to understand what is going
> on, but basically I found that I was as confused as the compiler by
> the code. My compiler is gcc 2.95.3.
>
> adrian> make
> gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I.
> -Ikernel/include -I/usr/local/include
> -I/lib/modules/2.4.16/build/include -nostdinc -I
> /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -Wall -O2 -c
> kernel/busses/i2c-ali1535.c -o kernel/busses/i2c-ali1535.o
> kernel/busses/i2c-ali1535.c:571: warning: implicit declaration of
> function `__devexit_p' kernel/busses/i2c-ali1535.c:571: initializer
> element is not constant kernel/busses/i2c-ali1535.c:571: (near
> initialization for `ali1535_driver.remove')
> kernel/busses/i2c-ali1535.c:572: initializer element is not constant
> kernel/busses/i2c-ali1535.c:572: (near initialization for
> `ali1535_driver') make: *** [kernel/busses/i2c-ali1535.o] Error 1
Yeah, known problem. We pretend to support kernels starting from 2.4.9
but there are several changes that broke compatibility after lm_sensors
2.7.0 and you actually need a kernel >= 2.4.17. Feel free to submit
fixes if you know what to do. Or you have two choices:
1* Upgrade kernel to 2.4.17.
2* Downgrade lm_sensors to 2.7.0.
Good luck.
--
Jean Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* lm_sensors compiled problem
2005-05-19 6:25 lm_sensors compiled problem Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
2 siblings, 0 replies; 4+ messages in thread
From: Adrian Mariano @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Jul 4, 17:34, Jean Delvare <khali@linux-fr.org> wrote:
> > I'm trying to compile lm_sensors 2.8.7. I compiled and installed
> > i2c-2.8.7, and I am compiling against the kernel source for the
> > running kernel and the source tree is the one used to compile the
> > current kernel. However, it is a SuSE kernel, version 2.4.16, not one
> > of the pristine kernels from kernel.org.
> >
> > I poked around briefly in the code to try to understand what is going
> > on, but basically I found that I was as confused as the compiler by
> > the code. My compiler is gcc 2.95.3.
> >
> > adrian> make
> > gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I.
> > -Ikernel/include -I/usr/local/include
> > -I/lib/modules/2.4.16/build/include -nostdinc -I
> > /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include -Wall -O2 -c
> > kernel/busses/i2c-ali1535.c -o kernel/busses/i2c-ali1535.o
> > kernel/busses/i2c-ali1535.c:571: warning: implicit declaration of
> > function `__devexit_p' kernel/busses/i2c-ali1535.c:571: initializer
> > element is not constant kernel/busses/i2c-ali1535.c:571: (near
> > initialization for `ali1535_driver.remove')
> > kernel/busses/i2c-ali1535.c:572: initializer element is not constant
> > kernel/busses/i2c-ali1535.c:572: (near initialization for
> > `ali1535_driver') make: *** [kernel/busses/i2c-ali1535.o] Error 1
>
> Yeah, known problem. We pretend to support kernels starting from 2.4.9
> but there are several changes that broke compatibility after lm_sensors
> 2.7.0 and you actually need a kernel >= 2.4.17. Feel free to submit
> fixes if you know what to do. Or you have two choices:
> 1* Upgrade kernel to 2.4.17.
> 2* Downgrade lm_sensors to 2.7.0.
I get a similar problem when I downgrade lm_sensors to 2.7.0. I tried
using my existing i2c 2.8.7, and I also tried dropping back to i2c
2.7.0. Using the approved combination of lm_sensors 2.70 with i2c
2.7.0 I got this:
gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.16/build/include -O2 -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
kernel/busses/i2c-amd8111.c:500: initializer element is not constant
kernel/busses/i2c-amd8111.c:500: (near initialization for `amd8111_driver.remove')
kernel/busses/i2c-amd8111.c:501: initializer element is not constant
kernel/busses/i2c-amd8111.c:501: (near initialization for `amd8111_driver')
make: *** [kernel/busses/i2c-amd8111.o] Error 1
I'm afraid that I don't know how to write the fixes, so I guess that
leaves upgrading the kernel as the sole option. (I'm planning to move
to a 2.6 kernel.)
^ permalink raw reply [flat|nested] 4+ messages in thread
* lm_sensors compiled problem
2005-05-19 6:25 lm_sensors compiled problem Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Adrian Mariano
@ 2005-05-19 6:25 ` Jean Delvare
2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
>I get a similar problem when I downgrade lm_sensors to 2.7.0. I tried
>using my existing i2c 2.8.7, and I also tried dropping back to i2c
>2.7.0. Using the approved combination of lm_sensors 2.70 with i2c
>2.7.0 I got this:
>
>gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.16/build/include -O2 -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o
>kernel/busses/i2c-amd8111.c:500: initializer element is not constant
>kernel/busses/i2c-amd8111.c:500: (near initialization for `amd8111_driver.remove')
>kernel/busses/i2c-amd8111.c:501: initializer element is not constant
>kernel/busses/i2c-amd8111.c:501: (near initialization for `amd8111_driver')
>make: *** [kernel/busses/i2c-amd8111.o] Error 1
My bad. I thought the problem had been introduced after 2.7.0, while it
obviously has been introduced before.
This means you would need to go back to 2.6.x. It only makes sense if you
don't have any recent hardware, else such an old version won't be of
any help to you anyway. BTW I believe that Suse has packages for
lm_sensors 2.6.x so you shouldn't have to compile it by yourself.
>I'm afraid that I don't know how to write the fixes, so I guess that
>leaves upgrading the kernel as the sole option. (I'm planning to move
>to a 2.6 kernel.)
Moving to a 2.6 kernel would definitely help since drivers are now part
of the main kernel tree. Not all drivers have been ported though, but
the more popular ones tend to be.
Jean Delvare
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-19 6:25 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:25 lm_sensors compiled problem Adrian Mariano
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Adrian Mariano
2005-05-19 6:25 ` 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.