syntax error on line 261 of .../httpd.conf: Cannot load .../mod_auth_pam.so into server: .../mod_auth_pam.so: undefined symbol: pam_end
You have to link mod_auth_pam against pam, explicitly. Compile it either with this command:
apxs -c -lpam -o mod_auth_pam.so mod_auth_pam.c
...or use the attached spec file.
%define pkg_name mod_auth_pam %define pkg_ver 1.1.1 %define pkg_rel 1 %define pkg_copy Apache Software License Summary: pluggable authentication module for Apache Source: %{pkg_name}-%{pkg_ver}.tar.gz Source1: pam.httpd URL: http://pam.sourceforge.net/mod_auth_pam/ Group: System Environment/Daemons Name: %{pkg_name} Version: %{pkg_ver} Release: %{pkg_rel} Copyright: %{pkg_copy} BuildRoot: %{_tmppath}/%{pkg_name}-root BuildPrereq: apache-devel Requires: webserver %description The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library. Thereby it supports standard unix passwd, shadow, NIS, SMB auth and radius (-> complete list of modules) authentication transparently and easily interchangeable, wherever the HTTP protocol allows it. %prep %setup %build %{_sbindir}/apxs -c -lpam -o %{name}.so %{name}.c %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir}/apache install -m755 %{name}.so $RPM_BUILD_ROOT%{_libdir}/apache/ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/httpd %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README doc %{_libdir}/apache/*.so %config %{_sysconfdir}/pam.d/httpd %changelog * Wed Apr 09 2003 Gordon Messmer <yinyang@xxxxxxxxx> - explicitly link against libpam * Mon Apr 22 2002 Gordon Messmer <yinyang@xxxxxxxxx> - Built 1.0a release