php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22631 Won't compile with --with-mcrypt
Submitted: 2003-03-11 04:12 UTC Modified: 2003-03-11 22:08 UTC
From: php at actionweb dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2003-03-11 04:12 UTC] php at actionweb dot com
I see someone else reported this exact same error (see Bug #22073), prior to the release of 4.1.3.  According to the thread connected to that bug report, the latest CVS snapshot fixed the problem.  However, that was prior to the release of 4.1.3, so I'm assuming the same bug is back.
Configure line used:

./configure --with-mysql=/usr/local/mysql --with-xml --enable-track-vars --with-config-file-path=/etc/httpd --with-mcrypt --with-gd=../gd-1.8.4/ --with-zlib --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/bin --enable-force-cgi-redirect --with-imap --enable-bcmath

make fails with the following errors:

/php-4.3.1 -I/usr2/sblib/packages/build/apache-install/php-4.3.1/Zend -I/usr/local/include -I/usr2/sblib/packages/build/apache-install/gd-1.8.4 -I/usr/local/mysql/include -I/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/xml/expat  -I/usr2/sblib/packages/build/apache-install/php-4.3.1/TSRM  -g -O2  -c /usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.o  && echo > ext/mcrypt/mcrypt.lo
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:229: warning: `MCRYPT_FAILED' redefined
/usr/local/include/mcrypt.h:31: warning: this is the location of the previous definition
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt':
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:279: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier is reported only once
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:281: for each function it appears in.)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:285: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:290: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:303: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:310: warning: passing arg 3 of `zend_register_long_constant' makes integer from pointer without a cast
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c: In function `zif_mcrypt_get_cipher_name':
/usr2/sblib/packages/build/apache-install/php-4.3.1/ext/mcrypt/mcrypt.c:1503: warning: assignment makes pointer from integer without a cast
make: *** [ext/mcrypt/mcrypt.lo] Error 1

I have tried both libmcrypt-2.5.6 and libmcrypt-2.5.7 with the exact same result.

Please let me know if there's any other information that I can provide that would be helpful.

Thanks!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-11 21:02 UTC] sniper@php.net
Please don't report same bug many times.
And try reading the NEWS file every once and a while..
There were NO bug fixes except the security fix in 4.3.1.
The fix will be in 4.3.2 (if there aren't any other
"emergency" releases before it)

 [2003-03-11 22:08 UTC] php at actionweb dot com
Sorry, I didn't realize that I was reporting a duplicate bug... I thought it was something that had been fixed and had since broke again.  I should not have assumed that 4.3.1 included fixes made prior to it's release.  

Anyhow, the comments related to Bug #22073 say this was fixed by installing from the current CVS snapshot.  I also tried that prior to (re)posting this bug, and still got the same error message.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 22:01:33 2024 UTC