|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-22 03:33 UTC] mikael at synd dot info
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 02:00:01 2025 UTC |
Description: ------------ Your config.m4 is hardcoded to look in {prefix}/lib/ for libpam.so, but on 64bit machines it is located in {prefix}/lib64/ I've applied the attached patch file and compiled on my 64b machine. The module compiles just fine and loads into the running PHP perfectly. --- config.m4.orig 2006-11-13 01:47:40.000000000 -0600 +++ config.m4 2007-09-21 22:39:01.000000000 -0500 @@ -21,7 +21,9 @@ for i in $PHP_PAM /usr/local /usr /; do if test -f $i/lib/libpam.$SHLIB_SUFFIX_NAME; then - PAM_DIR=$i + PAM_DIR=$i/lib + elif test -f $i/lib64/libpam.$SHLIB_SUFFIX_NAME; then + PAM_DIR=$i/lib64 fi done @@ -33,7 +35,7 @@ AC_MSG_ERROR([failed to find and link against libpam]) ],-L$PAM_DIR/lib) - PHP_ADD_LIBRARY_WITH_PATH(pam, $PAM_DIR/lib, PAM_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(pam, $PAM_DIR, PAM_SHARED_LIBADD) PHP_ADD_INCLUDE($PAM_DIR/include) PHP_SUBST(PAM_SHARED_LIBADD)