[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to compile the PAM module
- From: qin <junying qin gmail com>
- To: "Pluggable Authentication Modules" <pam-list redhat com>
- Subject: Re: How to compile the PAM module
- Date: Wed, 7 Mar 2007 20:58:44 +0800
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 geisshirt dk>:
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 redhat com
https://www.redhat.com/mailman/listinfo/pam-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]