php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22898 Impossible to compile PHP with "--with-mcrypt"
Submitted: 2003-03-26 07:34 UTC Modified: 2003-04-02 10:40 UTC
From: syn_uw at hotmail dot com Assigned:
Status: Closed Package: mcrypt related
PHP Version: 4.3.1 OS: Debian GNU/Linux 3.0r1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
48 - 20 = ?
Subscribe to this entry?

 
 [2003-03-26 07:34 UTC] syn_uw at hotmail dot com
I am trying to compile PHP 4.3.1 on a Linux box with support for mcrypt (--with-mcrypt) using the latest version of the mcrypt library which is 2.5.7.

The problem is that when I use "--with-mcrypt" the compile fails with the following error:

...<snip>...
/bin/sh libtool --silent --mode=compile gcc  -Iext/mcrypt/ -I/opt/source/php-4.3.1/ext/mcrypt/ -DPHP_ATOM_INC -I/opt/source/php-4.3.1/include -I/opt/source/php-4.3.1/main -I/opt/source/php-4.3.1 -I/opt/source/php-4.3.1/Zend -I/opt/openssl/include -I/usr/include/freetype2 -I/opt/source/imap-2002b/c-client -I/opt/openldap-client/include -I/opt/mcryptlib/include -I/opt/pdflib/include -I/opt/pgsqllib/include -I/opt/source/php-4.3.1/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208114 -DUSE_HSREGEX -DEAPI -DEAPI_MM -DUSE_EXPAT -I/opt/source/php-4.3.1/TSRM  -g -O2  -prefer-pic -c /opt/source/php-4.3.1/ext/mcrypt/mcrypt.c -o ext/mcrypt/mcrypt.lo
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:229: warning: `MCRYPT_FAILED' redefined
/opt/mcryptlib/include/mcrypt.h:31: warning: this is the location of the previous definition
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt':
/opt/source/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
/opt/source/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
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: (Each undeclared identifier is reported only once
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:281: for each function it appears in.)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/opt/source/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
/opt/source/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
/opt/source/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
/opt/source/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
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:289: `MCRYPT_IDEA' undeclared (first use in this function)
/opt/source/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
/opt/source/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
/opt/source/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
/opt/source/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
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:294: `MCRYPT_RC2_128' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_256' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_1024' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC4' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC6_128' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_192' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_256' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:301: `MCRYPT_SAFER_64' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_128' undeclared (first use in this function)
/opt/source/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
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:304: `MCRYPT_SERPENT_128' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_192' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_256' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:307: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
/opt/source/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
/opt/source/php-4.3.1/ext/mcrypt/mcrypt.c: In function `zif_mcrypt_get_cipher_name':
/opt/source/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've seen that bug #22073 dealt with the same problem so as told in that bug I've tryed to use the latest STABLE snapshot of PHP but unfortunately still the same result. So I may thought I should open a bug.

Feel free to mail me for any more details...

Thank you in advance for your help and investigation...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-01 10:15 UTC] aspeitia at sells dot com
Have you tried to update the linker table before compiling php.

I had the same problem in MAC OSX 10.2.4 and just user the linker utility ranlib /usr/local/lib/libmcrypt.a

all was fine afterwards

Ray A.
aspeitia@sells.com
 [2003-04-02 10:40 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 14:01:30 2024 UTC