php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30738 mcrypt extension does not compile
Submitted: 2004-11-09 21:56 UTC Modified: 2004-11-10 09:52 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pauls at amersel dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.9 OS: FreeBSD 4.10-STABLE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pauls at amersel dot com
New email:
PHP Version: OS:

 

 [2004-11-09 21:56 UTC] pauls at amersel dot com
Description:
------------
make fails when trying to build php with mcrypt support.  (configure runs just fine, no complaints or warnings)

Configure line used:

--
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local --with-mm=../mm-1.3.1 --with-xml --with-openssl=/usr/local/ssl --enable-ftp --with-sockets --with-mcrypt --with-zip --with-pdf --with-expat
--

Tail end of make outpout starting from compile line which generates the failure:

--
/bin/sh /usr/build/php-4.3.9/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/mcrypt/ -I/usr/build/php-4.
3.9/ext/mcrypt/ -DPHP_ATOM_INC -I/usr/build/php-4.3.9/include -I/usr/build/php-4.3.9/main -I/usr/build/php-4.3.9 -I/usr
/build/php-4.3.9/Zend -I/usr/local/ssl/include -I/usr/local/include -I/usr/local/include/mysql -I/usr/build/php-4.3.9/e
xt/xml/expat  -I/usr/build/php-4.3.9/TSRM  -g -O2  -prefer-pic -c /usr/build/php-4.3.9/ext/mcrypt/mcrypt.c -o ext/mcryp
t/mcrypt.lo
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:229: warning: `MCRYPT_FAILED' redefined
/usr/local/include/mcrypt.h:31: warning: this is the location of the previous definition
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c: In function `zm_startup_mcrypt':
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:280: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:281: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: (Each undeclared identifier is reported only once
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:282: for each function it appears in.)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:283: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:284: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:285: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:286: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:287: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:288: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:289: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:290: `MCRYPT_IDEA' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:291: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:292: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:293: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:294: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:295: `MCRYPT_RC2_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:296: `MCRYPT_RC2_256' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:297: `MCRYPT_RC2_1024' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:298: `MCRYPT_RC4' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:299: `MCRYPT_RC6_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:300: `MCRYPT_RC6_192' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:301: `MCRYPT_RC6_256' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:302: `MCRYPT_SAFER_64' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:303: `MCRYPT_SAFER_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:304: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:305: `MCRYPT_SERPENT_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:306: `MCRYPT_SERPENT_192' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:307: `MCRYPT_SERPENT_256' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:308: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:309: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:310: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:311: warning: passing arg 3 of `zend_register_long_constant' makes integer fro
m pointer without a cast
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c: In function `zif_mcrypt_get_cipher_name':
/usr/build/php-4.3.9/ext/mcrypt/mcrypt.c:1505: warning: assignment makes pointer from integer without a cast
*** Error code 1

Stop in /usr/build/php-4.3.9.
--

I've also tried both with just the --with-mcrypt as well as --with-mcrypt=/usr/local, specifying the path that mcrypt lib resides in.

And, yes, I am compiled mcrypt with --disable-posix-threads

Any ideas?



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-09 23:52 UTC] derick@php.net
You don't have to compile with --disable-posix-threads anymore and this error most likely is caused by having two different sets of mcrypt headers. Remove all mcrypt headers and reinstall it from source.
 [2004-11-10 01:11 UTC] pauls at amersel dot com
i have tried removing and reinstalling libmcrypt, to no avail... do you know which header files I should look for?  I can do a find for them and get rid of any lingering libs...
 [2004-11-10 09:52 UTC] tony2001@php.net
You should look for mcrypt.h.
Marking this report bogus, as it seems to be not a PHP problem.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 14:01:33 2025 UTC