[blfs-support] Polkit configure doesn't recognize PAM

Bruce Dubbs bruce.dubbs at gmail.com
Tue Aug 6 20:03:27 PDT 2013


Dave Wagler wrote:
> On Tue, Aug 6, 2013 at 9:37 PM, Bruce Dubbs <bruce.dubbs at gmail.com> wrote:
>
>>
>> # ln -s /lib/libpam.s0.83.1 /usr/lib/libpam.so
>>                       so not s0
>>
>>> There was no error, so I reran the polkit configure; still doesn't
>>> recognize PAM.
>>
>> Fix the link and try this:
>>
>> # ldconfig
>> $ cat > pamtest.c << "EOF"
>> char pam_start();
>> int main()
>> {
>>    return pam_start();
>> }
>> EOF
>>
>> $ gcc -o pamtest pamtest.c -lpam
>> $ ./pamtest
>>
>> There should be no output.
>>
>>     -- Bruce
>>
>
> root [ /usr/src ]# . x Linux-PAM-1.1.6.tar.bz2
> Created directory: Linux-PAM-1.1.6
> root [ /usr/src/Linux-PAM-1.1.6 ]# ls pamtest.c
> pamtest.c
> root [ /usr/src/Linux-PAM-1.1.6 ]# cat > pamtest.c << "EOF"
> char pam_start();
> int main()
> {
>    return pam_start();
> }
> EOF
> root [ /usr/src/Linux-PAM-1.1.6 ]# gcc -o pamtest pamtest.c -lpam
> root [ /usr/src/Linux-PAM-1.1.6 ]# ./pamtest
> *Segmentation fault*
> root [ /usr/src/Linux-PAM-1.1.6 ]#

Do you have:

$ ldd ./pamtest
         linux-vdso.so.1 (0x00007fff007ea000)
         libpam.so.0 => /lib/libpam.so.0 (0x00007fdf7aa8f000)
         libc.so.6 => /lib/libc.so.6 (0x00007fdf7a6e2000)
         libdl.so.2 => /lib/libdl.so.2 (0x00007fdf7a4de000)
         /lib64/ld-linux-x86-64.so.2 (0x00007fdf7ac9c000)

   -- Bruce





More information about the blfs-support mailing list