#23782 [NEW]: configure script doesn't support libmcrypt version > 2.4

From: Date: Fri, 23 May 2003 16:37:05 +0000
Subject: #23782 [NEW]: configure script doesn't support libmcrypt version > 2.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40299@lists.php.net to get a copy of this message
From: r dot rignier at libertysurf dot fr Operating system: linux PHP version: 4.3.1 PHP Bug Type: Compile Failure Bug description: configure script doesn't support libmcrypt version > 2.4 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 bug report at http://bugs.php.net/?id=23782&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23782&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23782&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23782&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23782&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23782&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23782&r=support Expected behavior: http://bugs.php.net/fix.php?id=23782&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23782&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23782&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23782&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23782&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23782&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23782&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23782&r=gnused

« previous php.bugs (#40299) next »