#23782 [Opn->Csd]: configure script doesn't support libmcrypt version > 2.4

From: Date: Fri, 23 May 2003 16:46:37 +0000
Subject: #23782 [Opn->Csd]: configure script doesn't support libmcrypt version > 2.4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40300@lists.php.net to get a copy of this message
ID: 23782 Updated by: derick@php.net Reported By: r dot rignier at libertysurf dot fr -Status: Open +Status: Closed Bug Type: Compile Failure Operating System: linux PHP Version: 4.3.1 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-05-23 11:37:05] r dot rignier at libertysurf dot fr Hello all, I have installed the latest libmcrypt 2.5.7 on /usr/local/libmcrypt in the PHP 4.3.1 source file directory : # ./configure --with-mcrypt=/usr/local/libmcrypt return no errors # make failed with errors It's because configure script doesn't recognize correctly the library version (I think it detects 2.2) in ext/mcryt/mcrypt.c I had to manually add: #undef HAVE_LIBMCRYPT22 #define HAVE_LIBMCRYPT24 to force libmcrypt 2.4 compatibility then it compiles OK here is a part of the config.log for mcrypt : ------------------------------------------------------------ configure:41314: checking for mcrypt support configure:41374: checking for mcrypt_module_open in -lmcrypt configure:41393: gcc -o conftest -g -O2 -L/usr/local/libmcrypt/lib -lltdl conftest.c -lmcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 /usr/bin/ld: cannot find -lltdl collect2: ld returned 1 exit status configure: failed program was: #line 41382 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mcrypt_module_open(); int main() { mcrypt_module_open() ; return 0; } configure:41510: checking for init_mcrypt in -lmcrypt configure:41529: gcc -o conftest -g -O2 -L/usr/local/libmcrypt/lib conftest.c -lmcrypt -lcrypt -lresolv -lm -ldl -lnsl -lcrypt 1>&5 ------------------------------------------------------------ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23782&edit=1

« previous php.bugs (#40300) next »