Author Topic: Can't install mcrypt extension  (Read 2253 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can't install mcrypt extension
« on: October 19, 2021, 12:43:40 PM »
Hello, i tried to rebuild php 8.0.11 using mcrypt extension, but it throws errors while reading the log file.

Quote
creating libtool
appending configuration tag "CXX" to libtool
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
/bin/sh /usr/local/src/mcrypt-1.0.1/libtool --mode=compile cc -I. -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/src/mcrypt-1.0.1/include -I/usr/local/src/mcrypt-1.0.1/main -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/local/src/mcrypt-1.0.1/mcrypt.c -o mcrypt.lo
mkdir .libs
 cc -I. -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/src/mcrypt-1.0.1/include -I/usr/local/src/mcrypt-1.0.1/main -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/local/src/mcrypt-1.0.1/mcrypt.c  -fPIC -DPIC -o .libs/mcrypt.o
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:634:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mdecrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:688:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic_deinit':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:767:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:770:1: error: expected ';' before '}' token
 }
 ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:781:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:781:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:783:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:795:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:795:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:797:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:809:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:809:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:811:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1145:14: error: invalid storage class for function 'php_mcrypt_get_key_size_str'
 static char *php_mcrypt_get_key_size_str(
              ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1182:18: error: invalid storage class for function 'php_mcrypt_is_valid_key_size'
 static zend_bool php_mcrypt_is_valid_key_size(
                  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1206:12: error: invalid storage class for function 'php_mcrypt_ensure_valid_key_size'
 static int php_mcrypt_ensure_valid_key_size(MCRYPT td, int key_size) /* {{{ */
            ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1233:12: error: invalid storage class for function 'php_mcrypt_ensure_valid_iv'
 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size) /* {{{ */
            ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1262:13: error: invalid storage class for function 'php_mcrypt_do_crypt'
 static void php_mcrypt_do_crypt(char* cipher, const char *key, size_t key_len, const char *data, size_t data_len, char *mode, const char *iv, size_t iv_len, size_t dencrypt, zval* return_value) /* {{{ */
             ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
 }
 ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic_deinit':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mdecrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
make: *** [mcrypt.lo] Error 1
/bin/sh /usr/local/src/mcrypt-1.0.1/libtool --mode=compile cc -I. -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/src/mcrypt-1.0.1/include -I/usr/local/src/mcrypt-1.0.1/main -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/local/src/mcrypt-1.0.1/mcrypt.c -o mcrypt.lo
 cc -I. -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/src/mcrypt-1.0.1/include -I/usr/local/src/mcrypt-1.0.1/main -I/usr/local/src/mcrypt-1.0.1 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -c /usr/local/src/mcrypt-1.0.1/mcrypt.c  -fPIC -DPIC -o .libs/mcrypt.o
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:634:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mdecrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:688:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic_deinit':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:767:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:770:1: error: expected ';' before '}' token
 }
 ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:781:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:781:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:783:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:795:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:795:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:797:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:809:2: error: expected ';' before '}' token
  } else {
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:809:4: error: expected '}' before 'else'
  } else {
    ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:811:2: error: expected ';' before '}' token
  }
  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1145:14: error: invalid storage class for function 'php_mcrypt_get_key_size_str'
 static char *php_mcrypt_get_key_size_str(
              ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1182:18: error: invalid storage class for function 'php_mcrypt_is_valid_key_size'
 static zend_bool php_mcrypt_is_valid_key_size(
                  ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1206:12: error: invalid storage class for function 'php_mcrypt_ensure_valid_key_size'
 static int php_mcrypt_ensure_valid_key_size(MCRYPT td, int key_size) /* {{{ */
            ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1233:12: error: invalid storage class for function 'php_mcrypt_ensure_valid_iv'
 static int php_mcrypt_ensure_valid_iv(MCRYPT td, const char *iv, int iv_size) /* {{{ */
            ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1262:13: error: invalid storage class for function 'php_mcrypt_do_crypt'
 static void php_mcrypt_do_crypt(char* cipher, const char *key, size_t key_len, const char *data, size_t data_len, char *mode, const char *iv, size_t iv_len, size_t dencrypt, zval* return_value) /* {{{ */
             ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
 }
 ^
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_enc_is_block_algorithm_mode':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic_deinit':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mdecrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
/usr/local/src/mcrypt-1.0.1/mcrypt.c: In function 'zif_mcrypt_generic':
/usr/local/src/mcrypt-1.0.1/mcrypt.c:1422:1: error: expected declaration or statement at end of input
make: *** [mcrypt.lo] Error 1
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Offline
*
Re: Can't install mcrypt extension
« Reply #1 on: October 19, 2021, 03:20:04 PM »
Is the problem that PHP 8.0.11 does not support mcrypt?