sys-auth/polkit-0.103 Fails to build: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE -DG_LOG_DOMAIN=\"polkitd-1\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O4 -march=prescott -pipe -fomit-frame-pointer -w -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o polkitd-gposixsignal.o `test -f 'gposixsignal.c' || echo './'`gposixsignal.c main.c:26:23: fatal error: glib-unix.h: No such file or directory compilation terminated. make[3]: *** [polkitd-main.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103/src/polkitd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103' make: *** [all] Error 2 * ERROR: sys-auth/polkit-0.103 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =sys-auth/polkit-0.103', * the complete build log and the output of 'emerge -pqv =sys-auth/polkit-0.103'. * The complete build log is located at '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/temp/environment'. * S: '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103' ~~~~~~~~~~~ $ locate glib-unix.h $ It indeed doesn't exist on my system. $ emerge -pqv =sys-auth/polkit-0.103 [ebuild U ] sys-auth/polkit-0.103 [0.102] USE="introspection kde nls pam -debug -doc -examples -gtk" (other outputs / logs to follow in attachments) M.
Created attachment 295163 [details] build.log for failed sys-auth/polkit-0.103 build.log for failed sys-auth/polkit-0.103
Created attachment 295165 [details] environment for failed sys-auth/polkit-0.103 environment for failed sys-auth/polkit-0.103
Created attachment 295167 [details] emerge --info =sys-auth/polkit-0.103 emerge --info =sys-auth/polkit-0.103
(In reply to comment #0) > sys-auth/polkit-0.103 Fails to build: > > i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src > -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" > -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" > -DPACKAGE_LOCALSTATE_DIR=\""/var"\" > -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT > -DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE -DG_LOG_DOMAIN=\"polkitd-1\" > -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O4 Notice that -I/usr/include/glib-2.0 is there. > main.c:26:23: fatal error: glib-unix.h: No such file or directory $ qfile -v glib-unix.h dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h) As shown above, glib-unix.h is part of dev-libs/glib which is a depend of polkit-0.103. Post full build.log of dev-libs/glib if the problem persists after re-emerging glib.
(In reply to comment #4) > Notice that -I/usr/include/glib-2.0 is there. > > > main.c:26:23: fatal error: glib-unix.h: No such file or directory > > $ qfile -v glib-unix.h > dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h) > > As shown above, glib-unix.h is part of dev-libs/glib which is a depend of > polkit-0.103. > > Post full build.log of dev-libs/glib if the problem persists after re-emerging > glib. Yeah... I kinda realized that /after/ I hit submit. Sorry about that. :-/ I should've tried that first, but now have: # emerge -aq1 dev-libs/glib [ebuild R ] dev-libs/glib-2.28.8 Would you like to merge these packages? [Yes/No] >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-libs/glib-2.28.8 >>> Installing (1 of 1) dev-libs/glib-2.28.8 # qfile -v glib-unix.h # ls -l /usr/include/glib-2.0/glib-unix.h ls: cannot access /usr/include/glib-2.0/glib-unix.h: No such file or directory # ls -l /usr/include/glib-2.0/ total 72 drwxr-xr-x 2 root root 20480 Dec 7 23:10 gio drwxr-xr-x 2 root root 12288 Dec 7 23:10 glib -rw-r--r-- 1 root root 2910 Dec 7 23:10 glib.h -rw-r--r-- 1 root root 1511 Dec 7 23:10 glib-object.h -rw-r--r-- 1 root root 3613 Dec 7 23:10 gmodule.h drwxr-xr-x 2 root root 4096 Dec 7 23:10 gobject build.log for glib attached below. Just for grins, I tried polkit again. Still fails with the same error (of course). M.
Created attachment 295169 [details] Successful dev-libs/glib build Successful dev-libs/glib build
+ 08 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> polkit-0.103.ebuild: + Raise dev-libs/glib depend to at least 2.30 wrt #393579 by Matt Palermo
reported upstream here: http://bugs.freedesktop.org/show_bug.cgi?id=43638
(sorry for the delay...) After unmasking the different glib: # echo "=dev-libs/glib-2.30.2 ~x86" >> /etc/portage/package.keywords/monolithic # qfile -v glib-unix.h dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h) sys-auth/polkit-0.103 Built just fine! Build.log attached. THANK YOU! M.
Created attachment 295289 [details] Successful sys-auth/polkit-0.103 build.log