Seem to be missing a declaration or dependency in the glib-2.22.4 ebuild. Compile error is: libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -DG_DISABLE_SINGLE_INCLUDES -pthread -DG_LOG_DOMAIN=\"GLib-GIO\" -I../.. -I../../glib -I../../gmodule -I../../gio -I../../gio -DG_ENABLE_DEBUG -DGIO_MODULE_DIR=\"/usr/lib/gio/modules\" -DGIO_COMPILATION -DG_DISABLE_DEPRECATED -O2 -march=prescott -pipe -Wall -MT libinotify_la-inotify-kernel.lo -MD -MP -MF .deps/libinotify_la-inotify-kernel.Tpo -c inotify-kernel.c -fPIC -DPIC -o .libs/libinotify_la-inotify-kernel.o inotify-kernel.c: In function '_ik_startup': inotify-kernel.c:194: warning: implicit declaration of function 'inotify_init1' inotify-kernel.c:194: error: 'IN_CLOEXEC' undeclared (first use in this function) inotify-kernel.c:194: error: (Each undeclared identifier is reported only once inotify-kernel.c:194: error: for each function it appears in.) Reproducible: Always Steps to Reproduce: 1. emerge glib Actual Results: Emerge fails. Expected Results: It should emerge. USE="debug doc fam -hardened (-selinux) -xattr"
Created attachment 218689 [details] emerge --info I try to use the cutting edge release of all of the system libraries.
Seems you've got a stale header somewhere, /usr/include/linux/inotify.h defines IN_CLOEXEC and your version of linux-headers seems recent enough.
I'll accept this explanation for now. The are older files under /usr/local/bin, /usr/local/include, etc. that sometimes get picked up in my compiles particularly when libtool, cmake and a handful of other "intelligent" build commands get involved. I don't know how to make libtool stop using /usr/local and so have implemented workarounds (like renaming /usr/local temporarily). The packaging for that exercise sometimes works and sometimes has problems. Attempting to emerge glib again worked ok and there were minor differences between the packaging scripts today and during previous attempts. So I'll mark it as fixed for now.