GNOME Bugzilla – Bug 666375
build problem
Last modified: 2019-02-22 11:59:06 UTC
Trying to package gcr for Fedora, I am seeing the following problem when building in mock: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/p11-kit-1 -DG_LOG_DOMAIN=\"Gcr\" -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -DLOCALEDIR=\""/usr/share/locale"\" -DGCR_API_SUBJECT_TO_CHANGE -Wall ▸‧‧‧‧‧‧‧-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes ▸‧-Wnested-externs -Wpointer-arith ▸‧‧‧‧‧‧-Wcast-align -Wsign-compare ▸‧‧‧-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -g -Wno-strict-aliasing -Wno-sign-compare -c -o gcr_viewer-gcr-viewer-tool.o `test -f 'gcr-viewer-tool.c' || echo './'`gcr-viewer-tool.c LC_ALL=C /usr/bin/intltool-merge -d -u -c ../po/.intltool-merge-cache ../po gcr-viewer.desktop.in gcr-viewer.desktop cp gcr.pc gcr-3.pc cp gcr-base.pc gcr-base-3.pc CCLD libgcr-base-3.la CCLD libgcr-testable.la libtool: link: cannot find the library `./libgcr-base-3.la' or unhandled argument `./libgcr-base-3.la' make[4]: *** [libgcr-testable.la] Error 1
Created attachment 203684 [details] [review] a fix Here is a patch that fixes the problem for me.
Fixed slightly differently in commit: 060eb446aa46fb6ad217d249af1b06397c6262b8
*** Bug 664758 has been marked as a duplicate of this bug. ***
Build on ubuntu 11.10 via jhbuild fails with the following message CCLD libgcr-3.la CCLD gcr-viewer CCLD gcr-prompter GISCAN Gcr-3.gir ./.libs/libgcr-3.so: undefined reference to `gcr_prompt_set_warning' ./.libs/libgcr-3.so: undefined reference to `gcr_prompt_get_type' collect2: ld returned 1 exit status make[4]: *** [gcr-viewer] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory `/home/gnome-shell/source/gcr/gcr'
Hmmm, I think this should be fixed now. Could you try again?
Created attachment 204110 [details] [review] fix build errors This fixes the build errors, on Ubuntu 11.10
Thanks. Pushed to gcr master.