[Pkg-shadow-devel] LIBPAM=-lpam on non-PAM systems

Matthew Burgess matthew at linuxfromscratch.org
Sun May 3 18:39:22 UTC 2009


Hi,

I'm trying to compile shadow-4.1.3.1 under a non-PAM environment.

./configure --sysconfdir=/etc
make

results in:

libtool: link: gcc -g -O2 -o login login.o login_nopam.o  ../libmisc/libmisc.a .
./lib/.libs/libshadow.a -lpam -lcrypt
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
make[2]: *** [login] Error 1

src/Makefile shows login_LDADD references $(LIBPAM) and, sure enough, LIBPAM=-lpam
in config.log.

I can workaround this by specifying --without-libpam to ./configure, but I kind of
hoped that configure should be able to figure out that -lpam doesn't exist
automatically.

Thanks,

Matt.




More information about the Pkg-shadow-devel mailing list