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 698031 - Cannot link libgdk (-lrt required)
Cannot link libgdk (-lrt required)
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-15 01:57 UTC by Dimitri
Modified: 2014-09-08 03:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdk/Makefile.am patch (360 bytes, patch)
2013-04-15 01:58 UTC, Dimitri
needs-work Details | Review

Description Dimitri 2013-04-15 01:57:51 UTC
When trying to build on Mageia Linux 3, I'm getting the following:

  GEN      gdkconfig.h
  CCLD     libgdk-3.la
broadway/.libs/libgdk-broadway.a(gdkbroadway-server.o): In function `shm_data_destroy':
/home/mageia/gtk+3.0/BUILD/gtk+-3.8.0/gdk/broadway/gdkbroadway-server.c:564: undefined reference to `shm_unlink'
broadway/.libs/libgdk-broadway.a(gdkbroadway-server.o): In function `create_random_shm':
/home/mageia/gtk+3.0/BUILD/gtk+-3.8.0/gdk/broadway/gdkbroadway-server.c:537: undefined reference to `shm_open'
collect2: error: ld returned 1 exit status

The functions are provided by librt.so from glibc. I had to patch gdk/Makefile.am for the build to succeed. Please see the attachment, though maybe it's not the best way to provide missing dependency.
Comment 1 Dimitri 2013-04-15 01:58:28 UTC
Created attachment 241537 [details] [review]
gdk/Makefile.am patch
Comment 2 Matthias Clasen 2013-05-13 04:35:03 UTC
Review of attachment 241537 [details] [review]:

Given that these functions are used by gdkbroadway-server, thats where -lrt should be added