GNOME Bugzilla – Bug 771206
Linking failure on midipix with slibtool
Last modified: 2018-05-24 19:05:22 UTC
Compiling glib on midipix ( http://midipix.org ) fails to link gio because of missing symbols in inotify, at least 'g_queue_peek_head', on PE targets, you need the -lglib-2.0 _after_ -linotify patch to fix the issue is adding libinotify_la_LIBADD = -L../../glib -lglib-2.0 to the end of gio/inotify/Makefile.am
Created attachment 335270 [details] [review] slibtool PE linking patch
Building inotify on Windows is kind of broken; inotify is a Linux kernel interface.
Review of attachment 335270 [details] [review]: Thanks for the patch. Could you please re-submit a patch generated by `git format-patch`? It makes applying and preserving authorship trivial, and allows keeping a reference to this bug. ::: glib.orig/gio/inotify/Makefile.am @@ +27,3 @@ -DG_DISABLE_DEPRECATED +libinotify_la_LIBADD = -L../../glib -lglib-2.0 You probably want to use `-l$(top_builddir)/glib/libglib-2.0.la` instead of changing th linker path.
Created attachment 358134 [details] [review] Updated linking patch Updated it to be in Makefile.am
Review of attachment 358134 [details] [review]: ::: gio/inotify/Makefile.am @@ +27,3 @@ -DG_DISABLE_DEPRECATED +libinotify_la_LIBADD = -L../../glib -lglib-2.0 As Emmanuele said: > You probably want to use `-l$(top_builddir)/glib/libglib-2.0.la` instead of changing th linker path.
At least with slibtool; that doesn't work. I've tried it, nor do I see what's wrong with -L../../glib -lglib-2.0?
(In reply to foxyred333 from comment #7) > what's wrong with -L../../glib -lglib-2.0? The use of -L will affect the linker path so that ../../glib will be searched for all future -l arguments. This could result in subsequent -l arguments being linked from the wrong place.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1201.