LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   polkit-0.107 fail (http://www.linuxquestions.org/questions/linux-from-scratch-13/polkit-0-107-fail-4175432011/)

spiky0011 10-13-2012 10:04 AM

polkit-0.107 fail
 
Hi

Just trying to install polkit-0.107 BLFS I have some errors
Code:

polkitbackendjsauthority.c:70:10: error: field 'rkt_init_mutex' has incomplete type
polkitbackendjsauthority.c:71:9: error: field 'rkt_init_cond' has incomplete type
polkitbackendjsauthority.c: In function 'polkit_backend_js_authority_constructed':
polkitbackendjsauthority.c:480:3: warning: implicit declaration of function 'g_mutex_init' [-Wimplicit-function-declaration]
polkitbackendjsauthority.c:480:3: warning: nested extern declaration of 'g_mutex_init' [-Wnested-externs]
polkitbackendjsauthority.c:481:3: warning: implicit declaration of function 'g_cond_init' [-Wimplicit-function-declaration]
polkitbackendjsauthority.c:481:3: warning: nested extern declaration of 'g_cond_init' [-Wnested-externs]
polkitbackendjsauthority.c:483:3: warning: implicit declaration of function 'g_thread_new' [-Wimplicit-function-declaration]
polkitbackendjsauthority.c:483:3: warning: nested extern declaration of 'g_thread_new' [-Wnested-externs]
polkitbackendjsauthority.c:483:42: warning: assignment makes pointer from integer without a cast [enabled by default]
polkitbackendjsauthority.c: In function 'polkit_backend_js_authority_finalize':
polkitbackendjsauthority.c:509:3: warning: implicit declaration of function 'g_mutex_clear' [-Wimplicit-function-declaration]
polkitbackendjsauthority.c:509:3: warning: nested extern declaration of 'g_mutex_clear' [-Wnested-externs]
polkitbackendjsauthority.c:510:3: warning: implicit declaration of function 'g_cond_clear' [-Wimplicit-function-declaration]
polkitbackendjsauthority.c:510:3: warning: nested extern declaration of 'g_cond_clear' [-Wnested-externs]
polkitbackendjsauthority.c: In function 'set_property_strv':
polkitbackendjsauthority.c:640:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[4]: *** [libpolkit_backend_1_la-polkitbackendjsauthority.lo] Error 1
make[4]: Leaving directory `/home/spiky/Downloads/polkit-0.107/src/polkitbackend'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/spiky/Downloads/polkit-0.107/src/polkitbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/spiky/Downloads/polkit-0.107/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/spiky/Downloads/polkit-0.107'
make: *** [all] Error 2

I,m not finding alot in config.log to help, and google not much help

Keith Hedger 10-13-2012 01:37 PM

Compiled fine on mine this is my configure:
Code:

./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --libexecdir=/usr/lib/polkit-1 --with-authfw=shadow --disable-static
LIBDIRSUFFIX is set to "64"

What configure switches are you using?

spiky0011 10-13-2012 01:42 PM

Hi Keith

I followed the book switches
Code:

--prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --libexecdir=/usr/lib/polkit-1 \
            --with-authfw=shadow \
            --disable-static


Keith Hedger 10-13-2012 02:22 PM

Much the same must be a problem in something auto detected is PAM installed it's not on my system, the other stuff I have installed.
The errors seem to point to "polkitbackendjsauthority" js is the lib from spidermonkey, maybe the problem is there my installed version is js-1.8.5.

spiky0011 10-13-2012 02:33 PM

No I havn't installed pam spidermonkey is js-1.8.5 as well there were no errors in spidermonkey maybe i,ll go back and reinstall

spiky0011 10-13-2012 03:00 PM

Hi

The return from
Code:

groupadd -fg 27 polkitd &&
useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
        -g polkitd -s /bin/false polkitd

useradd: UID 27 is not unique. << is this the correct output.

Although
polkitd:x:1001: in /etc/group
polkituser:x:27:27:Policy Kit Daemon User:/dev/null:/bin/false in /etc/passwd

Keith Hedger 10-14-2012 06:11 AM

Quote:

Originally Posted by spiky0011 (Post 4804913)
Hi

The return from
Code:

groupadd -fg 27 polkitd &&
useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
        -g polkitd -s /bin/false polkitd

useradd: UID 27 is not unique. << is this the correct output.

Although
polkitd:x:1001: in /etc/group
polkituser:x:27:27:Policy Kit Daemon User:/dev/null:/bin/false in /etc/passwd

Have a look at the man page and /etc/login.defs its usual to keep system gids between SYS_GID_MIN and SYS_GID_MAX and normal gids between GID_MIN and GID_MAX.
Having a system gid in the normal user gid range probably won't do any harm but why cause potential problems for yourself?

spiky0011 10-14-2012 12:46 PM

Ok

Problem overcome thks to some help, I reverted back to older version polkit-0.105 all seems to have worked out colord didn't complain


All times are GMT -5. The time now is 08:38 AM.