php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10399 Problem with mcrypt
Submitted: 2001-04-19 08:47 UTC Modified: 2001-04-19 10:14 UTC
From: ofourdan at jetmultimedia dot fr Assigned:
Status: Closed Package: Compile Failure
PHP Version: Earlier? Upgrade first! OS: Linux
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: ofourdan at jetmultimedia dot fr
New email:
PHP Version: OS:

 

 [2001-04-19 08:47 UTC] ofourdan at jetmultimedia dot fr
I've installed mcrypt 2.4.10 (yes, I used --disable-posix-threads)

I need to compile PHP3 (yes, I need PHP3, not PHP4). The ./configure (LIBS="-ljpeg -lgssapi_krb5 -lkrb5 -lk5crypto -L/usr/kerberos/lib/" ./configure --with-gd=/usr/local --with-apxs=/u/httpd/bin/apxs --with-mysql --enable-versioning --with-ttf --with-jpeg-dir=/usr --with-imap --with-xml --with-kerberos --with-mcrypt=/usr --with-mhash=/usr) gives no error, however, when I compile, I get a whole bunch or errors :

[snip]
gcc -g -O2 -DLINUX=2 -DMOD_SSL=206103 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -O2 -fpic -DSHARED_MODULE  -I. -I.   -I/u/httpd/include                  -I/usr/include/imap -I/usr/local/include -I/usr/local/include/mysql -I/u/httpd/include    -c functions/mcrypt.c -o functions/mcrypt.o
functions/mcrypt.c:120: warning: `MCRYPT_FAILED' redefined
/usr/include/mcrypt.h:30: warning: this is the location of the previous definition
functions/mcrypt.c: In function `php_minit_mcrypt':
functions/mcrypt.c:139: `MCRYPT_BLOWFISH_448' undeclared (first use in this function)
functions/mcrypt.c:139: (Each undeclared identifier is reported only once
functions/mcrypt.c:139: for each function it appears in.)
functions/mcrypt.c:140: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:141: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:142: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:143: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:144: `MCRYPT_SAFER_64' undeclared (first use in this function)
functions/mcrypt.c:145: `MCRYPT_SAFER_128' undeclared (first use in this function)
functions/mcrypt.c:146: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:147: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:148: `MCRYPT_RC2_1024' undeclared (first use in this function)
functions/mcrypt.c:149: `MCRYPT_TWOFISH_128' undeclared (first use in this function)
functions/mcrypt.c:150: `MCRYPT_TWOFISH_192' undeclared (first use in this function)
functions/mcrypt.c:151: `MCRYPT_TWOFISH_256' undeclared (first use in this function)
functions/mcrypt.c:152: `MCRYPT_BLOWFISH_128' undeclared (first use in this function)
functions/mcrypt.c:153: `MCRYPT_BLOWFISH_192' undeclared (first use in this function)
functions/mcrypt.c:154: `MCRYPT_BLOWFISH_256' undeclared (first use in this function)
functions/mcrypt.c:155: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:156: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:157: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:158: `MCRYPT_SERPENT_128' undeclared (first use in this function)
functions/mcrypt.c:159: `MCRYPT_SERPENT_192' undeclared (first use in this function)
functions/mcrypt.c:160: `MCRYPT_SERPENT_256' undeclared (first use in this function)
functions/mcrypt.c:161: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:162: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:163: warning: passing arg 3 of `php3_register_long_constant' makes integer from pointer without a cast
functions/mcrypt.c:164: `MCRYPT_RC2_256' undeclared (first use in this function)
functions/mcrypt.c:165: `MCRYPT_RC2_128' undeclared (first use in this function)
functions/mcrypt.c:166: `MCRYPT_RC6_256' undeclared (first use in this function)
functions/mcrypt.c:167: `MCRYPT_IDEA' undeclared (first use in this function)
functions/mcrypt.c:168: `MCRYPT_RC6_128' undeclared (first use in this function)
functions/mcrypt.c:169: `MCRYPT_RC6_192' undeclared (first use in this function)
functions/mcrypt.c:170: `MCRYPT_RC4' undeclared (first use in this function)
functions/mcrypt.c: In function `php3_mcrypt_get_cipher_name':
functions/mcrypt.c:243: warning: assignment makes pointer from integer without a cast
make: *** [functions/mcrypt.o] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-19 08:53 UTC] derick@php.net
Which version of PHP do you use? You need atleast PHP 4.0.3 to let mcrypt 2.4 work. If you are upgrading, I recommend to wait for 4.0.5, because a lot of annyoing bugs in the php extension.
 [2001-04-19 08:55 UTC] derick@php.net
I just read you use PHP3. Libmcrypt 2.4 won't work with it. Try a 2.2.x version of it. That should work fine.
 [2001-04-19 10:14 UTC] derick@php.net
User reported that it works fine with version 2.2
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 00:01:29 2025 UTC