#41254 [Com]: 64bit libmcrypt not found after bug #39935 fixed

From: Date: Tue, 01 May 2007 21:46:25 +0000
Subject: #41254 [Com]: 64bit libmcrypt not found after bug #39935 fixed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112152@lists.php.net to get a copy of this message
ID: 41254 Comment by: judas dot iscariote at gmail dot com Reported By: jason at ionzoft dot com Status: Open Bug Type: *Configuration Issues Operating System: RedHat ES 4 PHP Version: 5.2.1 New Comment: My patch is correct, linux distributions on x86_64 are usually biarch, /usr/lib contains 32 bit libraries and /usr/lib64 64 bit ones. If you wrongly installed a 64 bit libmcrypt in /usr/lib you need to recompile it to install shared libraries in the proper location.. if your linux distribution is pure 64 bit, then libmcrypt may be installed in /usr/lib and php should be compiled --with-libdir=lib as all system libraries will reside there in that case.. This is not a PHP problem. Previous Comments: ------------------------------------------------------------------------ [2007-05-01 16:54:53] jason at ionzoft dot com 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 this bug report at http://bugs.php.net/?id=41254&edit=1

« previous php.bugs (#112152) next »