[Date Prev][Date Next]
Re: Compile error - 'cannot find -lpam'
> I have successfully installed openldap-2.0.25 in my RH7.3 box a
> month before, and
> am going to install the 2.1.8 version . But when I compile the 2.1.8,the
> following error occurs.
> $./configure --prefix=/usr/local/openldap --enable-ldbm --disable-bdb
> --with-tls (OK!) $make depend (OK!)
> cc -g -O2 -o apitest apitest.o ./.libs/libldap.a
> -L/usr/kerberos/lib ../../libraries/liblber/.libs/liblber.a
> ../../libraries/liblutil/liblutil.a /usr/lib/libsasl.a
> /usr/lib/libgdbm.a -lcrypt -lpam -lssl -lcrypto -lresolv -ldl
> /usr/bin/ld: cannot find -lpam
> collect2: ld returned 1 exit status
> make: *** [apitest] Error 1
> make: Leaving directory
> `/download/ldap/openldap-2.1.8/libraries/libldap' make: ***
> [all-common] Error 1
> make: Leaving directory `/download/ldap/openldap-2.1.8/libraries'
> make: *** [all-common] Error 1
> What's mean of "-lpam"?
> It's a bug?
This has nothing to do with OpenLDAP since OpenLDAP does not use
PAM directly to any extent. Maybe some packages you're linking
have been compiled with libpam and libtool tries to link it, but
then it should be present (it is in /usr/lib in RedHat 7.3, so
I guess your compiler should be able to locate it without any
special -L flags). I assume you have pam installed on your system
(I think RedHad wouldn't even install without pam, though).