ID:               23782
 Comment by:       perske at uni-muenster dot de
 Reported By:      r dot rignier at libertysurf dot fr
 Status:           Closed
 Bug Type:         Compile Failure
 Operating System: linux
 PHP Version:      4.3.1
 New Comment:

Hello.

Same bug still appears with PHP 4.3.3, libmcrypt 2.5.7 on AIX 5.1. No
problem (except known bugs appearing at "make test") with libmcrypt
2.4.22. What information do you need for further analysis? (I will not
be able to reply before next monday.)

Thank you for your great work


Previous Comments:
------------------------------------------------------------------------

[2003-05-23 11:46:36] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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

Reply via email to