Hullo Users,<br><br>I am having a compilation problem of Cyrus-sasl2 with Pam . The Pam authentication mechanism is missing and unknown<br><br><b>root@xxxxx:/usr/local/src/cyrus-sasl2_2.1.23.dfsg1# saslauthd -v</b><br>saslauthd 2.1.23<br>
<br>authentication mechanisms: getpwent rimap shadow ldap<br><br><b>root@xxxxx:/usr/local/src/cyrus-sasl2_2.1.23.dfsg1# saslauthd -a pam</b><br><br>saslauthd[31056] :set_auth_mech : unknown authentication mechanism: pam<br>
<br><br><u><b>Configure statement:</b></u><br><br> ./configure --enable-anon --enable-pam --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mys<br>ql=/usr/local/mysql/lib/mysql --with-pam=/usr/include/security --with-pwcheck=/var/state/saslauthd --with-openssl=/usr/local/ssl --with-dblib=berkeley --with<br>
-plugindir=/usr/local/lib/sasl2 --with-bdblibdir=/usr/local/berkeley/lib --with-bdb-incdir=/usr/local/berkeley/include --with-dbpath=/var/lib/sasl/sasldb2 --<br>with-saslauthd=/var/state/saslauthd --with-ldap --enable-ldapdb<br>
<br><br><b><u>Errors in config.log:</u></b><br><b>root@xxxxx:/usr/local/src/cyrus-sasl2_2.1.23.dfsg1# cat config.log |grep pam</b><br><br> $ ./configure --enable-anon --enable-pam --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql/lib/mysql --with-pam=/usr/include/security --with-pwcheck=/var/state/saslauthd --with-openssl=/usr/local/ssl --with-dblib=berkeley --with-plugindir=/usr/local/lib/sasl2 --with-bdblibdir=/usr/local/berkeley/lib --with-bdb-incdir=/usr/local/berkeley/include --with-dbpath=/var/lib/sasl/sasldb2 --with-saslauthd=/var/state/saslauthd --with-ldap --enable-ldapdb<br>
configure:6925: checking security/pam_appl.h usability<br>configure:6961: checking security/pam_appl.h presence<br>configure:7033: checking for security/pam_appl.h<br>configure:6925: checking pam/pam_appl.h usability<br>configure:6986:26: error: pam/pam_appl.h: No such file or directory<br>
| #include <pam/pam_appl.h><br>configure:6961: checking pam/pam_appl.h presence<br>configure:6988:26: error: pam/pam_appl.h: No such file or directory<br>| #include <pam/pam_appl.h><br>configure:7033: checking for pam/pam_appl.h<br>
configure:7054: checking for pam_start<br>/usr/local/src/cyrus-sasl2_2.1.23.dfsg1/configure:7115: undefined reference to `pam_start'<br>/tmp/ccebUB6u.o:(.data+0x0): undefined reference to `pam_start'<br>| which can conflict with char pam_start (); below.<br>
| char pam_start ();<br>| #if defined (__stub_pam_start) || defined (__stub___pam_start)<br>| char (*f) () = pam_start;<br>| return f != pam_start;<br>configure:7162: gcc -o conftest -Wall -W -g -O2 -I/usr/local/mysql/include/mysql -I/usr/include/security/include -L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm -L/usr/include/security/lib conftest.c -lpam >&5<br>
configure:7169: error: 'pam_handle_t' undeclared (first use in this function)<br>configure:7169: error: 'pamh' undeclared (first use in this function)<br>configure:7172: warning: implicit declaration of function 'pam_start'<br>
| #include <pam/pam_appl.h><br>| #include <security/pam_appl.h><br>| pam_handle_t *pamh;<br>| struct pam_conv *conv;<br>| baz = pam_start(service, user, conv, &pamh);<br>configure:17004: running /bin/sh './configure' --prefix=/usr/local '--enable-anon' '--enable-pam' '--enable-plain' '--enable-login' '--enable-sql' '--disable-krb4' '--disable-otp' '--disable-cram' '--disable-digest' '--with-mysql=/usr/local/mysql/lib/mysql' '--with-pam=/usr/include/security' '--with-pwcheck=/var/state/saslauthd' '--with-openssl=/usr/local/ssl' '--with-dblib=berkeley' '--with-plugindir=/usr/local/lib/sasl2' '--with-bdblibdir=/usr/local/berkeley/lib' '--with-bdb-incdir=/usr/local/berkeley/include' '--with-dbpath=/var/lib/sasl/sasldb2' '--with-saslauthd=/var/state/saslauthd' '--with-ldap' '--enable-ldapdb' 'CPPFLAGS=-I/usr/local/mysql/include/mysql' 'LDFLAGS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm' --cache-file=.././config.cache --srcdir=.<br>
ac_cv_func_pam_start=no<br>ac_cv_header_pam_pam_appl_h=no<br>ac_cv_header_security_pam_appl_h=yes<br><br>Couls this be the problem and How can i fix this.<br><br> It is really problematic<br><br>Thanx<br>Moses<br><br><br>