canweriotnow / rpam-ruby19

PAM auth for Ruby - 1.9 compat version
https://rubygems.org/gems/rpam-ruby19
GNU General Public License v2.0
9 stars 5 forks source link

Gem fails to build on Ubuntu Linux #4

Closed tboyko closed 12 years ago

tboyko commented 12 years ago

Not a bug, but a suggestion for your docs. When installing this gem on Ubuntu Linux, it will generally fail. This is because you need to install the following first:

apt-get install libpam0g-dev

The error that will appear otherwise:

/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb 
checking for security/pam_appl.h... no
checking for security/pam_modules.h... no
checking for pam_start() in -lpam... no
checking for pam_end()... no
checking for pam_open_session()... no
checking for pam_close_session()... no
checking for pam_authenticate()... no
checking for pam_acct_mgmt()... no
creating Makefile

make
compiling rpam_ext.c
rpam_ext.c:23:31: error: security/pam_appl.h: No such file or directory
rpam_ext.c:46: warning: ‘struct pam_response’ declared inside parameter list
rpam_ext.c:46: warning: its scope is only this definition or declaration, which is probably not what you want
rpam_ext.c:46: warning: ‘struct pam_message’ declared inside parameter list
rpam_ext.c: In function ‘auth_pam_talker’:
rpam_ext.c:55: error: ‘PAM_CONV_ERR’ undeclared (first use in this function)
rpam_ext.c:55: error: (Each undeclared identifier is reported only once
rpam_ext.c:55: error: for each function it appears in.)
rpam_ext.c:58: error: invalid application of ‘sizeof’ to incomplete type ‘struct pam_response’ 
rpam_ext.c:65: error: invalid use of undefined type ‘struct pam_response’
rpam_ext.c:65: error: dereferencing pointer to incomplete type
rpam_ext.c:66: error: invalid use of undefined type ‘struct pam_response’
rpam_ext.c:66: error: dereferencing pointer to incomplete type
rpam_ext.c:69: error: dereferencing pointer to incomplete type
rpam_ext.c:70: error: ‘PAM_PROMPT_ECHO_ON’ undeclared (first use in this function)
rpam_ext.c:72: error: invalid use of undefined type ‘struct pam_response’
rpam_ext.c:72: error: dereferencing pointer to incomplete type
rpam_ext.c:74: error: ‘PAM_PROMPT_ECHO_OFF’ undeclared (first use in this function)
rpam_ext.c:75: error: invalid use of undefined type ‘struct pam_response’
rpam_ext.c:75: error: dereferencing pointer to incomplete type
rpam_ext.c:85: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
rpam_ext.c: In function ‘method_authpam’:
rpam_ext.c:93: error: variable ‘conv_info’ has initializer but incomplete type
rpam_ext.c:93: warning: excess elements in struct initializer
rpam_ext.c:93: warning: (near initialization for ‘conv_info’)
rpam_ext.c:93: warning: excess elements in struct initializer
rpam_ext.c:93: warning: (near initialization for ‘conv_info’)
rpam_ext.c:93: error: storage size of ‘conv_info’ isn’t known
rpam_ext.c:94: error: ‘pam_handle_t’ undeclared (first use in this function)
rpam_ext.c:94: error: ‘pamh’ undeclared (first use in this function)
rpam_ext.c:102: error: ‘PAM_SUCCESS’ undeclared (first use in this function)
rpam_ext.c:106: error: ‘PAM_DISALLOW_NULL_AUTHTOK’ undeclared (first use in this function)
make: *** [rpam_ext.o] Error 1
canweriotnow commented 12 years ago

Added to README. Thanks!

howdoicomputer commented 8 years ago

A google search brought me here. Only result. Neat.

jonas-ja commented 8 years ago

same