It seems that need the path of compiling the module. I just downloaded the tar package and untar in my /root. That means my PAM is in /root/Linux-PAM. Therefore, # gcc -fPIC -c pam_module.c -I/root/Linux-PAM;/root/Linux-PAM/libpam/include;/root/Linux-PAM/libpam_misc/include Oh... There also exist the errors.My code is the pam_limits.c, which I used directly from the tar package to test the compiling. If I ./configure in /root/Linux-PAM, that will finish compiling smoothly in modules/pam_limits/ by typing the make. However, using the gcc command, I can not succeed compiling the code. What should I do next? Thanks 2007/3/7, Kenneth Geisshirt <kenneth@xxxxxxxxxxxx>:
qin wrote: > I have no idea. Could sombody give me some advice? Try: $ gcc -fPIC -c pam_module.c $ ld -x --shared -o pam_module.so pam_module.o /kneth _______________________________________________ Pam-list mailing list Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list
_______________________________________________ Pam-list mailing list Pam-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/pam-list