! 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 !
xfce4-places-plugin 1.7.0 crashes with undefined symbol
Status:
RESOLVED: FIXED
Product:
Xfce4-places-plugin
Component:
General

Comments

Description Kevin Fenzi 2015-05-28 14:12:39 CEST
Trying to add a places-plugin results in a crash with: 

(process:28473): xfce4-panel-wrapper-CRITICAL **: Wrapper places-12: Failed to open plugin module "/usr/lib64/xfce4/panel/plugins/libplaces.so": /usr/lib64/xfce4/panel/plugins/libplaces.so: undefined symbol: places_bookmark_destroy.
xfce4-panel-Message: Plugin places-12 has been automatically restarted after crash.
(process:28474): xfce4-panel-wrapper-CRITICAL **: Wrapper places-12: Failed to open plugin module "/usr/lib64/xfce4/panel/plugins/libplaces.so": /usr/lib64/xfce4/panel/plugins/libplaces.so: undefined symbol: places_bookmark_destroy.
Comment 1 ToZ editbugs 2015-06-04 15:29:28 CEST
If compiling with gcc 5, the new standard is GNU11 and deals with inline functions differently. For more information, see: https://gcc.gnu.org/gcc-5/porting_to.html.

You can force gnu89 inline processing bu changing the autogen script to:

./autogen.sh CFLAGS=-fgnu89-inline --prefix=/usr --sysconfdir=/etc --disable-static --disable-debug

...or the configure script to:

./configure CFLAGS='-fgnu89-inline' --prefix=/usr --sysconfdir=/etc --disable-static --disable-debug

This will allow the package to build.

Ideally, the code should be fixed to deal with gcc 5 compilation.
Comment 2 Pablo Lezaeta 2015-06-04 22:32:35 CEST
gcc6 plan on switch to c11, so I thing the real ideal is make Xfce4 build with std=c11 so in the future no problems will raise.
Comment 3 Kevin Fenzi 2015-06-22 16:36:25 CEST
Created attachment 6328 
patch from downstream fedora bug

Here's a patch we are using in Fedora that seems to fix things up...
Comment 4 Andrzej editbugs 2015-07-07 23:28:36 CEST
Patch pushed in:
94d583d Bug 11939:  xfce4-places-plugin 1.7.0 crashes with undefined symbol

Thank you.
Comment 5 Skunnyk editbugs 2019-05-23 13:44:01 CEST
*** Bug 11987 has been marked as a duplicate of this bug. ***

Bug #11939

Reported by:
Kevin Fenzi
Reported on: 2015-05-28
Last modified on: 2019-05-23
Duplicates (1):
  • 11987 places plugin doesn't build with gcc 5

People

Assignee:
Andrzej
CC List:
5 users

Version

Version:
unspecified

Attachments

patch from downstream fedora bug (1.33 KB, application/octet-stream)
2015-06-22 16:36 CEST , Kevin Fenzi
no flags

Additional information