#41254 [NEW]: 64bit libmcrypt not found after bug #39935 fixed
| From: | jason at ionzoft dot com | Date: | Tue, 01 May 2007 16:54:53 +0000 |
| Subject: | #41254 [NEW]: 64bit libmcrypt not found after bug #39935 fixed | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-112147@lists.php.net to get a copy of this message | ||
From: jason at ionzoft dot com
Operating system: RedHat ES 4
PHP version: 5.2.1
PHP Bug Type: *Configuration Issues
Bug description: 64bit libmcrypt not found after bug #39935 fixed
Description:
------------
This is not a bug.
It is documentation of a problem encountered when using libmcrypt on 64
bit machines and upgrading PHP to 5.2.1.
---------------------------------------
In reference to Bug #39935 (extensions tidy,mcrypt,mhash,pdo_sqlite
ignores --with-libdir), I have encountered an error post-compile.
Previously, mcrypt ignored --with-libdir, and naturally looked in
/usr/local/lib for libmcrtpy.so.4.
After bug #39935 was fixed, libmcrypt began to look in the right place
(which I have specified as /lib64 on 64 bit machines).
A potential solution is to compile libmcrypt with --libdir=/lib64.
It took a lot of hunting to find this answer, and perhaps there is a place
that this information could be posted.
Thanks.
Jason Garber
Reproduce code:
---------------
./configure \
--with-libdir=lib64 \
--with-apxs2=/usr/sbin/apxs \
--with-config-file-path=/etc \
--enable-sigchild \
--with-openssl \
--enable-bcmath \
--with-curl \
--with-mcrypt \
--with-mysql \
--with-mysqli=/usr/bin/mysql_config \
--enable-sockets \
--with-gd \
--with-jpeg-dir=lib64 \
--with-png-dir \
--with-freetype-dir \
--with-zlib
make
make test
Expected result:
----------------
{successful tests}
Actual result:
--------------
/usr/local/src/ServerSoftware/PHP/php-5.2.1/sapi/cli/php: error while
loading shared libraries: libmcrypt.so.4: cannot open shared object file:
No such file or directory
make: [test] Error 127 (ignored)
--
Edit bug report at http://bugs.php.net/?id=41254&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41254&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41254&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41254&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41254&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41254&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41254&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41254&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41254&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41254&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41254&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41254&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41254&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41254&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41254&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41254&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41254&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41254&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41254&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41254&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41254&r=mysqlcfg