On 26.01.2012 16:42, Dmitry V. Levin wrote:
[...]
>> I wonder how do you deal with this dependency loop.
>
> Yes, there was a problem, but I can't reproduce it now. IIRC changing
> SUBDIRS to 'libpam modules libpam...' helps.
When you build "libpam" before "modules" in STATIC_MODULES mode, you
get
libpam.la without all these modules/pam_*/*.a linked in.
The result libpam.a in this case is full of undefined references to
_pam_*_modstruct, and therefore is quite unusable, isn't it?
Well, you are definitely right... But I still can't reproduce this build
problem, so I can't say anything else.
[...]
I suppose you had to disable some modules (including pam_selinux)
and
build the tree several times with manual intervention to get it built
properly.
Sure, selinux has been disabled. That's the configure options I've used:
./configure --with-pic --disable-nis --disable-selinux \
--disable-prelude --disable-largefile --enable-static-modules