php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57844 No 64-bit support
Submitted: 2007-09-21 23:48 UTC Modified: 2007-09-22 03:33 UTC
From: fedora at theholbrooks dot org Assigned:
Status: Closed Package: PAM (PECL)
PHP Version: 5.2.1 OS: Fedora7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fedora at theholbrooks dot org
New email:
PHP Version: OS:

 

 [2007-09-21 23:48 UTC] fedora at theholbrooks dot org
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)




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-22 03:33 UTC] mikael at synd dot info
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/PAM

Thanks for your feedback, the new release 1.0.1 includes the fix.

//Mikael
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC