! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
sensors plugin does not compile with gcc-10
Status:
RESOLVED: MOVED
Product:
Xfce4-sensors-plugin
Component:
General

Comments

Description Mukundan Ragavan 2020-02-08 22:15:45 CET
sensors plugin does not compile with gcc-10

Build log here - https://koji.fedoraproject.org/koji/taskinfo?taskID=41325319



/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:240: multiple definition of `temperature_unit_change'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:240: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:230: multiple definition of `maximum_changed'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:230: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:218: multiple definition of `minimum_changed'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:218: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:205: multiple definition of `list_cell_color_edited'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:205: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:193: multiple definition of `list_cell_toggle'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:193: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:182: multiple definition of `list_cell_text_edited'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:182: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:171: multiple definition of `sensor_entry_changed'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:171: first defined here
/usr/bin/ld: .libs/libxfce4sensors_la-configuration.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:161: multiple definition of `adjustment_value_changed'; .libs/libxfce4sensors_la-middlelayer.o:/builddir/build/BUILD/xfce4-sensors-plugin-1.3.92/lib/../include/sensors-interface-common.h:161: first defined here



The issue is most likely https://gcc.gnu.org/gcc-10/porting_to.html#common.
Comment 1 Robin Lee 2020-02-24 16:21:51 CET
Created attachment 9487 
Fix build for Fedora 32

This patch can fix the build, but it uses a method that seems never used in Xfce projects.
Comment 2 Git Bot editbugs 2020-05-23 00:43:37 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-sensors-plugin/-/issues/9.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16436

Reported by:
Mukundan Ragavan
Reported on: 2020-02-08
Last modified on: 2020-05-23

People

Assignee:
Fabian Nowak
CC List:
1 user

Version

Version:
unspecified

Attachments

Fix build for Fedora 32 (4.02 KB, patch)
2020-02-24 16:21 CET , Robin Lee
no flags

Additional information