php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6833 mcrypt 2.4.4 compilation fails
Submitted: 2000-09-21 13:41 UTC Modified: 2000-09-26 22:07 UTC
From: polone at aeonsolutions dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: RH6.2
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: polone at aeonsolutions dot com
New email:
PHP Version: OS:

 

 [2000-09-21 13:41 UTC] polone at aeonsolutions dot com
Compilation of PHP 4.0.2 with mcrypt support fails:

The error results from $SRCDIR/ext/mcrypt.c.

The lines:

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)

The command issued:

LDFLAGS="-s" CFLAGS="-O2" ./configure --with-mysql --with-apxs \
                                      --with-pcre --with-dom --with-mcrypt=/usr/local/lib \
                                      --disable-debug --with-imap \
                                      --with-xml

I compiled libmcrypt-2.4.4 with --disable-posix-threads. To correct the issue, I commented out the entire #if ... #endif pair. However, when trying to start Apache, module libmcrypt.so.4 could not be loaded. I check the /etc/ld.so.conf file and added the path for /usr/local/lib. I then issued ldconfig -v. The module was found but contained an error to an undefined reference: lt_dlerror and would not run. Any ideas?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-25 04:40 UTC] derick@php.net
Are you sure you are using php 4.0.2? This problem occurred when compiling libmcrypt 2.4.4 with php < 4.0.2,
because it wasn't supported. If you compiled with 4.0.2, please grab a freshsource, and try to compile again.
 [2000-09-26 22:07 UTC] sniper@php.net
User reported problem solved after deleting config.cache.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Oct 12 09:00:02 2026 UTC