[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>, "Kenneth Geisshirt" <kenneth geisshirt dk>
- Cc:
- Subject: Re: How to compile the PAM module
- Date: Thu, 8 Mar 2007 13:36:25 +0800
I compiled with -lc:
$ gcc -fPIC -lc pam_module.c -lpam -lpam_misc -lpamc
$ ld -x --shared -o pam_module.so pam_module.o
and found some functions are not found.
...
....:pam_module.c:undefined reference to '_set_ctrl'
...: pam_module.c:undefined reference to 'pam_syslog'
I have linked the libpam.so, libpamc.so and lpam_misc.so, why it can
not found the missing functions?
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]