*********** REPLY SEPARATOR *********** On 5/1/2003 at 8:26 PM Gordon Messmer wrote: >Shane C Branch wrote: >> >> 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 > > > >-- >Shrike-list mailing list >Shrike-list@xxxxxxxxxx >https://listman.redhat.com/mailman/listinfo/shrike-list Hmm using apxs -c -lpam -o mod_auth_pam.so mod_auth_pam.c failed with this error: apxs:Error: command failed with rc=65536 When I compiled it successfully yesterday I used: apxs -i -a -n pam mod_auth_pam.la That compiles and installs, it just won't load. regards, shane.