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 &lt;pam/pam_appl.h&gt;<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 &lt;pam/pam_appl.h&gt;<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&#39;<br>/tmp/ccebUB6u.o:(.data+0x0): undefined reference to `pam_start&#39;<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  &gt;&amp;5<br>
configure:7169: error: &#39;pam_handle_t&#39; undeclared (first use in this function)<br>configure:7169: error: &#39;pamh&#39; undeclared (first use in this function)<br>configure:7172: warning: implicit declaration of function &#39;pam_start&#39;<br>
| #include &lt;pam/pam_appl.h&gt;<br>| #include &lt;security/pam_appl.h&gt;<br>| pam_handle_t *pamh;<br>| struct pam_conv *conv;<br>| baz = pam_start(service, user, conv, &amp;pamh);<br>configure:17004: running /bin/sh &#39;./configure&#39; --prefix=/usr/local  &#39;--enable-anon&#39; &#39;--enable-pam&#39; &#39;--enable-plain&#39; &#39;--enable-login&#39; &#39;--enable-sql&#39; &#39;--disable-krb4&#39; &#39;--disable-otp&#39; &#39;--disable-cram&#39; &#39;--disable-digest&#39; &#39;--with-mysql=/usr/local/mysql/lib/mysql&#39; &#39;--with-pam=/usr/include/security&#39; &#39;--with-pwcheck=/var/state/saslauthd&#39; &#39;--with-openssl=/usr/local/ssl&#39; &#39;--with-dblib=berkeley&#39; &#39;--with-plugindir=/usr/local/lib/sasl2&#39; &#39;--with-bdblibdir=/usr/local/berkeley/lib&#39; &#39;--with-bdb-incdir=/usr/local/berkeley/include&#39; &#39;--with-dbpath=/var/lib/sasl/sasldb2&#39; &#39;--with-saslauthd=/var/state/saslauthd&#39; &#39;--with-ldap&#39; &#39;--enable-ldapdb&#39; &#39;CPPFLAGS=-I/usr/local/mysql/include/mysql&#39; &#39;LDFLAGS=-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm&#39; --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>