skarcha/tests — Issue #23: 32 - PAM is not detected on FreeBSD 
Author: skarcha
Created: 2011-10-19 23:07:36+00:00
State: open

If I try to build Cherokee's trunk version on FreeBSD 7.0 it doesn't detect
PAM after doing the configure script.

Here's my config.log |grep pam

$ ./configure --prefix=/usr/local/cherokee --sysconfdir=/usr/local/etc
--localstatedir=/var --enable-tls=openssl --enable-pam --disable-ipv6
configure:34789: checking for pam_start in -lpam
configure:34824: gcc -o conftest -g -O2 conftest.c -lpam >&5
configure:34856: checking for _pam_dispatch in -lpam
configure:34891: gcc -o conftest -g -O2 conftest.c -lpam >&5
/usr/home/bluegod/cherokee-0.6.0b1223/conftest.c:147: undefined reference
to `_pam_dispatch'
| char _pam_dispatch ();
| return _pam_dispatch ();
configure:34933: checking security/pam_modules.h usability
configure:34974: checking security/pam_modules.h presence
configure:35042: checking for security/pam_modules.h
configure:35076: checking security/_pam_macros.h usability
conftest.c:169:34: error: security/_pam_macros.h: No such file or directory
| #include <security/_pam_macros.h>
configure:35117: checking security/_pam_macros.h presence
conftest.c:136:34: error: security/_pam_macros.h: No such file or directory
| #include <security/_pam_macros.h>
configure:35185: checking for security/_pam_macros.h
configure:35076: checking security/pam_appl.h usability
configure:35117: checking security/pam_appl.h presence
configure:35185: checking for security/pam_appl.h
ac_cv_header_security__pam_macros_h=no
ac_cv_header_security_pam_appl_h=yes
ac_cv_header_security_pam_modules_h=yes
ac_cv_lib_pam__pam_dispatch=no
ac_cv_lib_pam_pam_start=yes

Original link: http://code.google.com/p/cherokee/issues/detail?id=32