After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666375 - build problem
build problem
Status: RESOLVED FIXED
Product: gcr
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
: 664758 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-12-16 16:59 UTC by Matthias Clasen
Modified: 2019-02-22 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a fix (660 bytes, patch)
2011-12-16 17:00 UTC, Matthias Clasen
none Details | Review
fix build errors (350 bytes, patch)
2011-12-22 20:21 UTC, darkxst
none Details | Review

Description Matthias Clasen 2011-12-16 16:59:57 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
Comment 1 Matthias Clasen 2011-12-16 17:00:41 UTC
Created attachment 203684 [details] [review]
a fix

Here is a patch that fixes the problem for me.
Comment 2 Stef Walter 2011-12-19 08:35:12 UTC
Fixed slightly differently in commit: 060eb446aa46fb6ad217d249af1b06397c6262b8
Comment 3 Stef Walter 2011-12-19 08:54:19 UTC
*** Bug 664758 has been marked as a duplicate of this bug. ***
Comment 4 darkxst 2011-12-20 22:32:42 UTC
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'
Comment 5 Stef Walter 2011-12-22 14:55:53 UTC
Hmmm, I think this should be fixed now. Could you try again?
Comment 6 darkxst 2011-12-22 20:21:36 UTC
Created attachment 204110 [details] [review]
fix build errors

This fixes the build errors, on Ubuntu 11.10
Comment 7 Stef Walter 2011-12-23 09:38:45 UTC
Thanks. Pushed to gcr master.