Re: How to compile...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, I have tried the suggestions given but still no dice. Do you know of a good tutorial reference for specifically compiling source as a pam module? I have been googling for days and not found anything except some small tutorials on the available libraries, not compiling as a shared object which is the information I need.

Thanks again

Joe Lewis wrote:

Try:

gcc -o pam_test.so -lpam pam_test.c pam_test.h

That -libpam should be shortened to -lpam. -l on the command line expands the l to lib[rest].so or something similar.

Joe

Jason Gerfen wrote:

Hello, I am fairly new to this list and have been attempting to learn how to write PAM modules however the documentation on how to use the PAM api is bit vague on how to compile the existing C.

I am using SuSE 9.0 and using Emacs to edit my first pam module. The string I am using to compile is as so...

gcc -o pam_test.so -libpam pam_test.c pam_test.h

The errors I am recieving are...

libpam not found. I have made sure my header and source files are located in the Linux-PAM.Y.XX/modules directory which is stated in the documentation. If anyone can give me some insight into this I would apprecitate it.



_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list



-- Jason Gerfen

"...Sometimes I just yell at myself. And it
makes me sad, sometimes I make myself cry..."
			~ My nephew Dawsyn



_______________________________________________

Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux