GNOME Bugzilla – Bug 698031
Cannot link libgdk (-lrt required)
Last modified: 2014-09-08 03:04:46 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.
Created attachment 241537 [details] [review] gdk/Makefile.am patch
Review of attachment 241537 [details] [review]: Given that these functions are used by gdkbroadway-server, thats where -lrt should be added