PAM compile error

Jared Wiltshire jaredwiltshire at gmail.com
Fri Jul 1 00:24:09 UTC 2005


Could someone help me out with this - I'm trying to compile Linux-PAM-0.79.

I read something about adding -ldl somewhere, but have no idea what to do.

Thanks.

==========================
make[2]: Entering directory `/tmp/Linux-PAM-0.79/modules/pam_tally'
mkdir -p ./dynamic
gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align 
-Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow 
-Dlinux -g -O2 -I./include -I/tmp/Linux-PAM-0.79/libpam/include 
-I/tmp/Linux-PAM-0.79 -I/tmp/Linux-PAM-0.79/libpamc/include -fPIC 
-I../pammodutil/include -o pam_tally dynamic/pam_tally_app.o -L../pammodutil 
-lpammodutil -L../../libpam -lpam
../../libpam/libpam.so: undefined reference to `dlerror'
../../libpam/libpam.so: undefined reference to `dlclose'
../../libpam/libpam.so: undefined reference to `dlopen'
../../libpam/libpam.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[2]: *** [pam_tally] Error 1
make[2]: Leaving directory `/tmp/Linux-PAM-0.79/modules/pam_tally'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/Linux-PAM-0.79/modules'
make: *** [modules] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pam-list/attachments/20050701/bb50ae6f/attachment.htm>


More information about the Pam-list mailing list