Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239554 - [gnome overlay] sys-auth/policykit-0.9 fails to build without PAM
Summary: [gnome overlay] sys-auth/policykit-0.9 fails to build without PAM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-04 15:49 UTC by virdiq
Modified: 2008-11-27 21:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,86.93 KB, text/plain)
2008-10-04 15:52 UTC, virdiq
Details
emerge --info (emerge.info,3.36 KB, text/plain)
2008-10-04 15:54 UTC, virdiq
Details
Patch from Kaj-Michael Lang (see https://bugs.freedesktop.org/show_bug.cgi?id=16131) (policykit-0.9-pam_appl_h.patch,393 bytes, patch)
2008-10-04 17:09 UTC, virdiq
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description virdiq 2008-10-04 15:49:06 UTC
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
Comment 1 virdiq 2008-10-04 15:52:32 UTC
Created attachment 167172 [details]
build.log
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2008-10-04 15:53:02 UTC
Could you please attach the full build.log as suggested by emerge?

Thanks
Comment 3 virdiq 2008-10-04 15:54:52 UTC
Created attachment 167174 [details]
emerge --info
Comment 4 virdiq 2008-10-04 16:19:11 UTC
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...?
Comment 5 Mart Raudsepp gentoo-dev 2008-10-04 16:52:54 UTC
(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...?
Comment 6 virdiq 2008-10-04 17:07:56 UTC
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).
Comment 7 virdiq 2008-10-04 17:09:31 UTC
Created attachment 167192 [details, diff]
Patch from Kaj-Michael Lang (see https://bugs.freedesktop.org/show_bug.cgi?id=16131)
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-27 21:40:08 UTC
in overlay as 0.9-r1, thanks for reporting.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-27 21:44:44 UTC
closing fixed :)