1.4.2 doesn't build

Bug #1745254 reported by Tobias Wolter
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Lifeograph
Fix Released
Low
Unassigned

Bug Description

Building on Archlinux fails:

[ 48%] Building CXX object CMakeFiles/lifeograph.dir/src/widget_textview.cpp.o
/home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp: In member function ‘virtual void LIFEO::LinkUri::go()’:
/home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp:167:62: warning: ‘gboolean gtk_show_uri(GdkScreen*, const gchar*, guint32, GError**)’ is deprecated: Use 'gtk_show_uri_on_window' instead [-Wdeprecated-declarations]
     gtk_show_uri (NULL, m_url.c_str(), GDK_CURRENT_TIME, &err);
                                                              ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:196:0,
                 from /usr/include/gtkmm-3.0/gtkmm/enums.h:28,
                 from /usr/include/gtkmm-3.0/gtkmm/widget.h:47,
                 from /usr/include/gtkmm-3.0/gtkmm/action.h:31,
                 from /usr/include/gtkmm-3.0/gtkmm/toggleaction.h:29,
                 from /usr/include/gtkmm-3.0/gtkmm.h:95,
                 from /home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/lifeograph.hpp:27,
                 from /home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp:30:
/usr/include/gtk-3.0/gtk/gtkshow.h:33:10: note: declared here
 gboolean gtk_show_uri (GdkScreen *screen,
          ^~~~~~~~~~~~
/home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp: In member function ‘void LIFEO::TextbufferDiary::add_word_to_dictionary(const Glib::ustring&)’:
/home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp:2520:5: error: ‘enchant_dict_add_to_pwl’ was not declared in this scope
     enchant_dict_add_to_pwl( m_enchant_dict, word.c_str(), word.size() );
     ^~~~~~~~~~~~~~~~~~~~~~~
/home/towo/.cache/pacaur/lifeograph/src/lifeograph-1.4.2/src/widget_textview.cpp:2520:5: note: suggested alternative: ‘enchant_dict_add_to_session’
     enchant_dict_add_to_pwl( m_enchant_dict, word.c_str(), word.size() );
     ^~~~~~~~~~~~~~~~~~~~~~~
     enchant_dict_add_to_session
make[2]: *** [CMakeFiles/lifeograph.dir/build.make:615: CMakeFiles/lifeograph.dir/src/widget_textview.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/lifeograph.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

enchant is at 2.1.2-3 in arch.

Revision history for this message
Ahmet Öztürk (dmxe) wrote :

This is due to a deprecation in newer enchant versions. This was fixed in trunk. But enchant-2.2 breaks the compatibility again by bumping the API name to enchant-2. This will be addressed shortly. This changes may never be ported to 1.4 branch, but a separate branch may be created.

Changed in lifeograph:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
ivar persson (bitter.lemon) wrote :

@ Tobias Wolter : Hello, I had the same problem and it is caused by the change in naming convention from libenchant 2.1 to libenchant 2.2

The relevant file goes from being /usr/lib/libenchant.so.2.1.2 to /usr/lib/libenchant-2.so.2.2.3 which causes the problem. On Arch, the workaround is to create a symlink like this

sudo ln -s /usr/lib/libenchant-2.so.2 /usr/lib/libenchant.so.2

This resolves the problem for me and it also sorts out other breaking packages like WikidPad and Empathy

Before doing the symlink you can either look into usr/lib/libenchant.xxx to see it the file naming is indeed the problem or run the command below to see the output:

pacman -Qo /usr/lib/libenchant.so.2

Ahmet Öztürk (dmxe)
Changed in lifeograph:
milestone: none → 1.5.0.rc1
status: Confirmed → Fix Committed
Ahmet Öztürk (dmxe)
Changed in lifeograph:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.