The error is the following: gcc -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -g -O2 -o ebview bmh.o cellrendererebook.o dialog.o dictbar.o dirtree.o dump.o eb.o ebview.o external.o filter.o grep.o headword.o history.o hook.o jcode.o link.o log.o mainmenu.o mainwindow.o menu.o misc.o multi.o pixmap.o popup.o preference.o pref_color.o pref_dictgroup.o pref_dirgroup.o pref_external.o pref_font.o pref_grep.o pref_gui.o pref_io.o pref_search.o pref_selection.o pref_shortcut.o pref_stemming.o pref_weblist.o reg.o render.o selection.o shortcut.o shortcutfunc.o splash.o statusbar.o textview.o thread_search.o websearch.o xml.o xmlinternal.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpthread -L/usr/lib -leb -lz preference.o: In function `calculate_font_size': /home/zoe/work/ebview-0.3.6_new/src/preference.c:432: undefined reference to `pango_x_font_map_for_display' I sent a patch to the author of ebview but I do not know when the fixed version is released. I post the patch here too. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 70897 [details, diff] a patch to fix the error
same problem here. x86_64-pc-linux-gnu-gcc -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Wall -march=athlon64 -O2 -pipe -fforce-addr -ffast-math -msse2 -ftracer -m3dnow -o ebview bmh.o cellrendererebook.o dialog.o dictbar.o dirtree.o dump.o eb.o ebview.o external.o filter.o grep.o headword.o history.o hook.o jcode.o link.o log.o mainmenu.o mainwindow.o menu.o misc.o multi.o pixmap.o popup.o preference.o pref_color.o pref_dictgroup.o pref_dirgroup.o pref_external.o pref_font.o pref_grep.o pref_gui.o pref_io.o pref_search.o pref_selection.o pref_shortcut.o pref_stemming.o pref_weblist.o reg.o render.o selection.o shortcut.o shortcutfunc.o splash.o statusbar.o textview.o thread_search.o websearch.o xml.o xmlinternal.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lpthread -L/usr/lib64 -leb -lz preference.o: In function `calculate_font_size': preference.c:(.text+0xa44): undefined reference to `pango_x_font_map_for_display' collect2: ld returned 1 exit status make[2]: *** [ebview] Error 1 make[2]: Leaving directory `/var/tmp/portage/ebview-0.3.6/work/ebview-0.3.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/ebview-0.3.6/work/ebview-0.3.6' make: *** [all] Error 2
(In reply to comment #1) > Created an attachment (id=70897) [edit] > a patch to fix the error Works nicely for me. Could it get fixed in Portage?
Sorry for the delay. This is fixed in CVS tree. Thanks for the bug report.
Verified on ~amd64.