You are not logged in.

#1 2020-12-04 19:56:39

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

rofi can not load mode plugin due to undefined symbol: cairo_image_sur

Using rofi and json-menu.
After an update (can't tell which one, sorry), json-menu stopped working.
Rofi displays the following error:

(process:2644): Rofi-WARNING **: 20:49:12.742: Failed to open 'mode' plugin: 'jsonmenu.so', error: /usr/lib/rofi/jsonmenu.so: undefined symbol: cairo_image_surface_create_from_svg

I tried reinstalling rofi, json-menu and cairo.

Any ideas/hints on where I could look?

Offline

#2 2020-12-04 21:54:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,685

Re: rofi can not load mode plugin due to undefined symbol: cairo_image_sur

cairo_image_surface_create_from_svg used to be defined in /usr/bin/rofi, but is no longer.
It's still used by json-menu: https://github.com/marvinkreis/rofi-jso … enu.c#L310
So you'd have to downgrade rofi and file a bug against json-menu

Offline

#3 2020-12-04 23:54:48

jeroentbt
Member
From: .be
Registered: 2014-03-29
Posts: 25

Re: rofi can not load mode plugin due to undefined symbol: cairo_image_sur

A downgrade to rofi 1.6.0 did indeed do the trick.
Opened an issue for json-menu here https://github.com/marvinkreis/rofi-json-menu/issues/4

cairo_image_surface_create_from_svg does still seem to be present in rofi though... https://github.com/davatorium/rofi/blob … per.h#L317. My C in not up to par though hmm

I'll see what the issue turns up.

Thank you for your help!

Offline

#4 2020-12-05 00:09:52

loqs
Member
Registered: 2014-03-06
Posts: 19,040

Re: rofi can not load mode plugin due to undefined symbol: cairo_image_sur

The function declaration is still in the header file while the definition was removed in https://github.com/davatorium/rofi/comm … 7f190L1140

Last edited by loqs (2020-12-05 00:11:13)

Offline

Board footer

Powered by FluxBB