can't compile mcrypt support for dl

From: Date: Sat, 11 Aug 2001 03:25:37 +0000
Subject: can't compile mcrypt support for dl
Groups: php.install 
Request: Send a blank email to php-install+get-3935@lists.php.net to get a copy of this message
I downloaded libmcrypt 2.4.15 and compiled with the --disable-posix-threads option. Then I proceed to compile a loadable module for PHP 4.0.4pl1 using the following line: ./configure --with-apxs --with-mcrypt=shared ./make It returns the following error: make[3]: Entering directory `/tmp/php-4.0.4pl1/ext/mcrypt' /bin/sh /tmp/php-4.0.4pl1/libtool --silent --mode=compile gcc -I. -I/tmp/php-4.0.4pl1/ext/mcrypt -I/tmp/php-4.0.4pl1/main -I/tmp/php- 4.0.4pl1 -I/usr/include/apache -I/tmp/php-4.0.4pl1/Zend -I/usr/local/include -I/tmp/php-4.0.4pl1/ext/mysql/libmysql -I/tmp/php-4.0.4pl1/ext/xml/expat/xm ltok -I/tmp/php-4.0.4pl1/ext/xml/expat/xmlparse -I/tmp/php-4.0.4pl1/TSRM -D LINUX=22 -DDEV_RANDOM=/dev/random -DEAPI -DEAPI_MM -DUSE_EXPAT -DXML_BYTE_OR DER=12 -g -O2 -c mcrypt.c && touch mcrypt.slo mcrypt.c: In function `php_minit_mcrypt': mcrypt.c:260: `MCRYPT_BLOWFISH_448' undeclared (first use in this function) mcrypt.c:260: (Each undeclared identifier is reported only once mcrypt.c:260: for each function it appears in.) mcrypt.c:261: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:262: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:263: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:264: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:265: `MCRYPT_SAFER_64' undeclared (first use in this function) mcrypt.c:266: `MCRYPT_SAFER_128' undeclared (first use in this function) mcrypt.c:267: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:268: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:269: `MCRYPT_RC2_1024' undeclared (first use in this function) mcrypt.c:270: `MCRYPT_TWOFISH_128' undeclared (first use in this function) mcrypt.c:271: `MCRYPT_TWOFISH_192' undeclared (first use in this function) mcrypt.c:272: `MCRYPT_TWOFISH_256' undeclared (first use in this function) mcrypt.c:273: `MCRYPT_BLOWFISH_128' undeclared (first use in this function) mcrypt.c:274: `MCRYPT_BLOWFISH_192' undeclared (first use in this function) mcrypt.c:275: `MCRYPT_BLOWFISH_256' undeclared (first use in this function) mcrypt.c:276: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:277: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:278: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:279: `MCRYPT_SERPENT_128' undeclared (first use in this function) mcrypt.c:280: `MCRYPT_SERPENT_192' undeclared (first use in this function) mcrypt.c:281: `MCRYPT_SERPENT_256' undeclared (first use in this function) mcrypt.c:282: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:283: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:284: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast mcrypt.c:285: `MCRYPT_RC2_256' undeclared (first use in this function) mcrypt.c:286: `MCRYPT_RC2_128' undeclared (first use in this function) mcrypt.c:287: `MCRYPT_RC6_256' undeclared (first use in this function) mcrypt.c:288: `MCRYPT_IDEA' undeclared (first use in this function) mcrypt.c:289: `MCRYPT_RC6_128' undeclared (first use in this function) mcrypt.c:290: `MCRYPT_RC6_192' undeclared (first use in this function) mcrypt.c:291: `MCRYPT_RC4' undeclared (first use in this function) mcrypt.c: In function `php_if_mcrypt_get_cipher_name': mcrypt.c:1500: warning: assignment makes pointer from integer without a cast make[3]: *** [mcrypt.slo] Error 1 make[3]: Leaving directory `/tmp/php-4.0.4pl1/ext/mcrypt' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/php-4.0.4pl1/ext/mcrypt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/php-4.0.4pl1/ext' make: *** [all-recursive] Error 1 What's the damn problem?

« previous php.install (#3935) next »