PHP 4.0 Bug #5107: Function names appear to have changed in libmcrypt 2.4.4
| From: | eshicks at hotmail dot com | Date: | Sun, 18 Jun 2000 00:48:29 +0000 |
| Subject: | PHP 4.0 Bug #5107: Function names appear to have changed in libmcrypt 2.4.4 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21657@lists.php.net to get a copy of this message | ||
From: eshicks@hotmail.com
Operating system: Redhat Linux 6.2
PHP version: 4.0.0 Release
PHP Bug Type: mcrypt related
Bug description: Function names appear to have changed in libmcrypt 2.4.4
I have copies of both libmcrypt 2.2.7 and 2.4.4. libmcrypt 2.2.7 compiles into PHP ok except most
of the functions that use it crash the thread when you try to use them. (This bug already has a
report open, though)
When I tried to compile 2.4.4 in, I get a lot of errors saying that the functions mcrypt.c are
trying to call don't exist. I opened up /usr/local/include/mcrypt.h and found that the names
of many of the functions are different from the ones in 2.2.7. It seems that PHP is looking for
corrent names for 2.2.7, yet they're different in 2.4.4.
Here is a list of the errors I got when trying to compile PHP with libmcrypt 2.4.4:
mcrypt.c: In function `php_minit_mcrypt':
mcrypt.c:134: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
mcrypt.c:134: (Each undeclared identifier is reported only once
mcrypt.c:134: for each function it appears in.)
mcrypt.c:135: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:136: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:137: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:138: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:139: `MCRYPT_SAFER_64' undeclared (first use in this function)
mcrypt.c:140: `MCRYPT_SAFER_128' undeclared (first use in this function)
mcrypt.c:141: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:142: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:143: `MCRYPT_RC2_1024' undeclared (first use in this function)
mcrypt.c:144: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
mcrypt.c:145: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
mcrypt.c:146: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
mcrypt.c:147: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
mcrypt.c:148: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
mcrypt.c:149: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
mcrypt.c:150: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:151: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:152: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:153: `MCRYPT_SERPENT_128' undeclared (first use in this function)
mcrypt.c:154: `MCRYPT_SERPENT_192' undeclared (first use in this function)
mcrypt.c:155: `MCRYPT_SERPENT_256' undeclared (first use in this function)
mcrypt.c:156: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:157: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:158: warning: passing arg 3 of `zend_register_long_constant' makes integer from
pointer without a cast
mcrypt.c:159: `MCRYPT_RC2_256' undeclared (first use in this function)
mcrypt.c:160: `MCRYPT_RC2_128' undeclared (first use in this function)
mcrypt.c:161: `MCRYPT_RC6_256' undeclared (first use in this function)
mcrypt.c:162: `MCRYPT_IDEA' undeclared (first use in this function)
mcrypt.c:163: `MCRYPT_RC6_128' undeclared (first use in this function)
mcrypt.c:164: `MCRYPT_RC6_192' undeclared (first use in this function)
mcrypt.c:165: `MCRYPT_RC4' undeclared (first use in this function)
mcrypt.c: In function `php_if_mcrypt_get_cipher_name':
mcrypt.c:240: warning: assignment makes pointer from integer without a cast
make[3]: *** [mcrypt.lo] Error 1