bug report?!
Dear LM-Sensors Team,
I tried to compile i2c and lm_sensors on this machine:
Linux dhcp230 2.4.21-99-athlon #1 Wed Sep 24 13:34:32 UTC 2003 i686 athlon i386
GNU/Linux).
gcc version 3.3.1 (SuSE Linux)
While compilation i get on both i2c and lm_sensors the following error:
kernel/i2c-pport.c:154: error: initializer element is not constant kernel/i2c-pport.c:154: error: (near initialization for `bit_pport_data.timeout'
Not only for i2c-pport.c. I spent some time covering this bug. I found out that you take the HZ Value out of asm/param.h for the timeouts in many of your modules. For me i switch to a hardcoded value so that the element is constant. I took the value defined for userspace in asm/param.h. (On my system 100) and everything compiled fine. I'am not a very good c programmer so i don't know how to cover this i think you need this timeout HZ definition because param.h makes a difference between kernelmode and userspace.
The other problem i spotted is that your tar.gz archive of i2c-2.8.7 is not a gzip archive.
dhcp230:~ # file i2c-2.8.7.tar.gz
i2c-2.8.7.tar.gz: POSIX tar archive
A not that much confidant user could be very confused if he is downloading a tar.gz from you website which is a tar.
Regards,
Timo Bolse
Quoted 11 lines
I tried to compile i2c and
lm_sensorson this machine:Linux dhcp230 2.4.21-99-athlon #1 Wed Sep 24 13:34:32 UTC 2003 i686 athlon i386 GNU/Linux).
gcc version 3.3.1 (SuSE Linux)While compilation i get on both i2c and
lm_sensorsthe following error:
kernel/i2c-pport.c:154: error: initializer element is not constantkernel/i2c-pport.c:154: error: (near initialization for `bit_pport_data.timeout'
Suse hacked their kernel tree in a way which makes it incompatible with our sources. Several users already reported about that.
We do not support that. Either complain to Suse, or use their packages for lm_sensors (if such packages exist) or use a vanilla kernel instead of a Suse one. Our packages are tested to work perfectly with vanilla kernels.
Jean Delvare
Quoted 9 lines
The other problem i spotted is that your tar.gz archive of i2c-2.8.7 is not a gzip archive.
dhcp230:~ # file i2c-2.8.7.tar.gz
i2c-2.8.7.tar.gz: POSIX tar archiveA not that much confidant user could be very confused if he is downloading a tar.gz from you website which is a tar.
I just checked, the file is really a tar.gz file, sent by the HTTP server with type application/x-tar. This seems to be reasonably standard (Savannah does the same for example).
So I suspect that your web browser gunzip'ed the file on the fly. You most probably can configure it not to do so. Else you can still use an external download tool such as wget.
At any rate, a web browser gunzip'ing files on the fly without removing the .gz suffix is obviously not doing the right thing and needs fixing.
Thanks for reporting.
Jean Delvare