GNOME Bugzilla – Bug 590268
PAM_BAD_ITEM is Linux-PAM only
Last modified: 2009-07-31 17:06:52 UTC
The current HEAD revision of gnome-keyring fails to build on OpenSolaris because it references a constant defined only by Linux PAM, PAM_BAD_ITEM. Build log available at http://build.gnome.org/builders/gnome-keyring-opensol-gcc/builds/16/steps/gnome-keyring%20build/logs/stdio based on git revision b51aaae5133686190ca8aced6b44f14274feeff0 It may be appropriate to redefine this consonant on operating systems which do not support it such as FreeBSD and OpenSolaris. Some useful manpages for standard PAM return values include http://docs.sun.com/app/docs/doc/819-2247/pam-3pam?a=view#Return%20Values and http://www.freebsd.org/cgi/man.cgi?query=pam#RETURN_VALUES Full uname: SunOS manduba 5.11 snv_101 sun4u sparc SUNW,Ultra-Enterprise
Created attachment 139604 [details] [review] Committed patch to fix the problem. I think this should fix the problem. Vincent, since this is your code, can you give it a look and see if it's correct? commit 9c505e89975af6d8849987e4d1ecb88d1e8482f9 Author: Stef Walter <stef@memberwebs.com> Date: Fri Jul 31 03:25:32 2009 +0000 [pam] Fix use of constant not found in Solaris or FreeBSD. The PAM_BAD_ITEM constant is linux specific. We don't need to use it, so I've removed usage. Fixes bug #590268
Oh, didn't know it was linux-specific, sorry about this! (fix is right, thanks Stef!)
Confirming based on http://build.gnome.org/builders/gnome-keyring-opensol-gcc/builds/18/steps/gnome-keyring%20build/logs/stdio