GNOME Bugzilla – Bug 657679
build error (missing libs)
Last modified: 2021-06-10 20:53:15 UTC
libtool: link: gcc -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -DLOCALEDIR=\"/scratch/jhbuild/share/locale\" -DGETTEXT_PACKAGE=\"libepc\" -D_REENTRANT -pthread -I/scratch/jhbuild/include/glib-2.0 -I/scratch/jhbuild//lib64/glib-2.0/include -I/scratch/jhbuild/include/libsoup-2.4 -I/usr/include/uuid -I/usr/include/libxml2 -g3 -O0 -o examples/.libs/service-browser examples/examples_service_browser-service-browser.o -L/scratch/jhbuild/lib64 libepc/.libs/libepc-1.0.so -pthread -Wl,-rpath -Wl,/scratch/jhbuild//lib64 examples/service-browser.c:19: error: undefined reference to 'avahi_proto_to_string' examples/service-browser.c:19: error: undefined reference to 'g_print' examples/service-browser.c:29: error: undefined reference to 'g_print' examples/service-browser.c:54: error: undefined reference to 'g_type_init' ...
Created attachment 195166 [details] [review] Link service browser to glib
Another one afterwards, examples/consumer-ui.c:38: error: undefined reference to 'gtk_combo_box_append_text' examples/consumer-ui.c:74: error: undefined reference to 'gtk_combo_box_get_active_text' examples/consumer-ui.c:123: error: undefined reference to 'gtk_combo_box_new_text'
It's odd that it's happening only now, but feel free to push such obvious fixes.
I pushed the patch, but the gtk_combo_box_* errors are another story; libepc-ui is still looking for GTK+ 2, but there is also a reference to avahi-gtk3, making it possible for both to get linked in. This calls for more changes (pretty easy from a quick glance), and the rename of libepc-ui-1.0.
(In reply to comment #4) > I pushed the patch, but the gtk_combo_box_* errors are another story; libepc-ui > is still looking for GTK+ 2, but there is also a reference to avahi-gtk3, > making it possible for both to get linked in. Done. Thanks for noticing this. I am amazed that I had not done it before. I guess I'm only using the non-UI part in Glom. > This calls for more changes (pretty easy from a quick glance), and the rename > of libepc-ui-1.0. libepc has never been declared stable, and has few users, so that doesn't seem necessary. OK?
I have released a 0.4.1 tarball with the changes so far.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version of libepc, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libepc/-/issues/ Thank you for your understanding and your help.