[Goodies-dev] sensors-plugin compile error with lm_sensors 3.0.0-rc3

Christoph Wickert christoph.wickert at nurfuerspam.de
Mon Nov 19 19:19:18 CET 2007


Hi,

sensors-plugin fails to compile with lm_sensors 3.0.0-rc3 here (Fedora
Devel with lm_sensors-3.0.0-0.1.rc3 gcc-4.1.2:

> + make -j2
> make  all-recursive
> make[1]: Entering directory `/builddir/build/BUILD/xfce4-sensors-plugin-0.10.99.2'
> Making all in panel-plugin
> make[2]: Entering directory `/builddir/build/BUILD/xfce4-sensors-plugin-0.10.99.2/panel-plugin'
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT xfce4_sensors_plugin-middlelayer.o -MD -MP -MF ".deps/xfce4_sensors_plugin-middlelayer.Tpo" -c -o xfce4_sensors_plugin-middlelayer.o `test -f 'middlelayer.c' || echo './'`middlelayer.c; \
> 	then mv -f ".deps/xfce4_sensors_plugin-middlelayer.Tpo" ".deps/xfce4_sensors_plugin-middlelayer.Po"; else rm -f ".deps/xfce4_sensors_plugin-middlelayer.Tpo"; exit 1; fi
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT xfce4_sensors_plugin-lmsensors.o -MD -MP -MF ".deps/xfce4_sensors_plugin-lmsensors.Tpo" -c -o xfce4_sensors_plugin-lmsensors.o `test -f 'lmsensors.c' || echo './'`lmsensors.c; \
> 	then mv -f ".deps/xfce4_sensors_plugin-lmsensors.Tpo" ".deps/xfce4_sensors_plugin-lmsensors.Po"; else rm -f ".deps/xfce4_sensors_plugin-lmsensors.Tpo"; exit 1; fi
> middlelayer.c: In function 'sensors_get_feature_wrapper':
> middlelayer.c:156: warning: implicit declaration of function 'sensors_get_feature'
> if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I/usr/include/xfce4/ -I/usr/include/xfce4 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -DPACKAGE_LOCALE_DIR=\"/usr/share/locale\" -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT xfce4_sensors_plugin-acpi.o -MD -MP -MF ".deps/xfce4_sensors_plugin-acpi.Tpo" -c -o xfce4_sensors_plugin-acpi.o `test -f 'acpi.c' || echo './'`acpi.c; \
> 	then mv -f ".deps/xfce4_sensors_plugin-acpi.Tpo" ".deps/xfce4_sensors_plugin-acpi.Po"; else rm -f ".deps/xfce4_sensors_plugin-acpi.Tpo"; exit 1; fi
> lmsensors.c: In function 'setup_chip':
> lmsensors.c:50: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'sensors_bus_id'
> lmsensors.c:55: warning: passing argument 1 of 'sensors_get_adapter_name' makes pointer from integer without a cast
> lmsensors.c: In function 'find_chipfeature':
> lmsensors.c:90: warning: implicit declaration of function 'sensors_get_ignored'
> lmsensors.c:92: error: incompatible type for argument 1 of 'sensors_get_label'
> lmsensors.c:92: warning: passing argument 2 of 'sensors_get_label' makes pointer from integer without a cast
> lmsensors.c:92: error: too many arguments to function 'sensors_get_label'
> lmsensors.c:92: warning: assignment makes integer from pointer without a cast
> lmsensors.c:95: warning: implicit declaration of function 'sensors_get_feature'
> lmsensors.c: In function 'initialize_libsensors':
> lmsensors.c:119: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
> lmsensors.c:119: error: 'sfd' undeclared (first use in this function)
> lmsensors.c:119: error: (Each undeclared identifier is reported only once
> lmsensors.c:119: error: for each function it appears in.)
> lmsensors.c:137: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
> lmsensors.c:137: error: too few arguments to function 'sensors_get_detected_chips'
> lmsensors.c:148: warning: implicit declaration of function 'sensors_get_all_features'
> lmsensors.c:158: warning: passing argument 1 of 'sensors_get_detected_chips' from incompatible pointer type
> lmsensors.c:158: error: too few arguments to function 'sensors_get_detected_chips'
> make[2]: *** [xfce4_sensors_plugin-lmsensors.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> acpi.c: In function 'get_acpi_value':
> acpi.c:128: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
> make[2]: Leaving directory `/builddir/build/BUILD/xfce4-sensors-plugin-0.10.99.2/panel-plugin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/builddir/build/BUILD/xfce4-sensors-plugin-0.10.99.2'
> make: *** [all] Error 2

Has SVN already been updated for latest lm_sensors?

Christoph




More information about the Goodies-dev mailing list