The following error was produced from the compilation of sys-auth/policykit-0.9 from the Gnome overlay (~amd64 system, PolicyKit unmasked). PAM is not installed on my system, which is what I assume to be the problem in this case as a PAM header file is missing. [ebuild N ] sys-auth/policykit-0.9 USE="bash-completion -doc -pam (-selinux) -zsh-completion" 0 kB [1] Making all in polkit-dbus make[3]: Entering directory `/var/tmp/portage/sys-auth/policykit-0.9/work/PolicyKit-0.9/src/polkit-dbus' /bin/sh ../../libtool --tag=CC --mode=compile x86_64-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/lib64"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-dbus.lo -MD -MP -MF .deps/polkit-dbus.Tpo -c -o polkit-dbus.lo polkit-dbus.c /bin/sh ../../libtool --tag=CC --mode=compile x86_64-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/lib64"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-simple.lo -MD -MP -MF .deps/polkit-simple.Tpo -c -o polkit-simple.lo polkit-simple.c libtool: compile: x86_64-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/lib64\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-dbus.lo -MD -MP -MF .deps/polkit-dbus.Tpo -c polkit-dbus.c -fPIC -DPIC -o .libs/polkit-dbus.o libtool: compile: x86_64-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/lib64\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-simple.lo -MD -MP -MF .deps/polkit-simple.Tpo -c polkit-simple.c -fPIC -DPIC -o .libs/polkit-simple.o libtool: compile: x86_64-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/lib64\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-simple.lo -MD -MP -MF .deps/polkit-simple.Tpo -c polkit-simple.c -o polkit-simple.o >/dev/null 2>&1 libtool: compile: x86_64-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/lib64\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-dbus.lo -MD -MP -MF .deps/polkit-dbus.Tpo -c polkit-dbus.c -o polkit-dbus.o >/dev/null 2>&1 mv -f .deps/polkit-simple.Tpo .deps/polkit-simple.Plo x86_64-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/lib64"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -march=native -O2 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit_resolve_exe_helper-polkit-resolve-exe-helper.o -MD -MP -MF .deps/polkit_resolve_exe_helper-polkit-resolve-exe-helper.Tpo -c -o polkit_resolve_exe_helper-polkit-resolve-exe-helper.o `test -f 'polkit-resolve-exe-helper.c' || echo './'`polkit-resolve-exe-helper.c polkit-resolve-exe-helper.c:46:31: error: security/pam_appl.h: No such file or directory make[3]: *** [polkit_resolve_exe_helper-polkit-resolve-exe-helper.o] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/polkit-dbus.Tpo .deps/polkit-dbus.Plo make[3]: Leaving directory `/var/tmp/portage/sys-auth/policykit-0.9/work/PolicyKit-0.9/src/polkit-dbus' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-auth/policykit-0.9/work/PolicyKit-0.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-auth/policykit-0.9/work/PolicyKit-0.9' make: *** [all] Error 2 Reproducible: Always
Created attachment 167172 [details] build.log
Could you please attach the full build.log as suggested by emerge? Thanks
Created attachment 167174 [details] emerge --info
Someone provided a patch at the upstream bug report. See https://bugs.freedesktop.org/show_bug.cgi?id=16131 And there are other similar PAM build related bugs there dating back to 2006...?
(In reply to comment #4) > And there are other similar PAM build related bugs there dating back to > 2006...? From where are you getting the idea of year 2006 here...?
I was looking at a similar bug from 2006: https://bugs.freedesktop.org/show_bug.cgi?id=6476 Same problem, but in a different file. Removing the unwanted pam_appl.h inclusion allows me to continue building policykit-0.9 (although there is another bug I've filed relating to the use of the undefined _pk_debug function in polkit-authorization-db-dummy.c - it should be calling polkit_debug instead from what I can see).
Created attachment 167192 [details, diff] Patch from Kaj-Michael Lang (see https://bugs.freedesktop.org/show_bug.cgi?id=16131)
in overlay as 0.9-r1, thanks for reporting.
closing fixed :)